[ovs-discuss] ovs-master crashes due to double locking of ofproto_mutex.

Anil Kumar Koli anilkumar.k at altencalsoftlabs.com
Wed Apr 3 10:06:36 UTC 2019

Hello OVS team,


OVS crash is observed in ovs-master when controller sends a packet with
packet-out (output port as OFPP_TABLE) and any of the openflow table entry
which gets hit results into a learn action.


Steps to reproduce:

1. Start the ovs-vswitchd in dpdk mode.

2. Configure the following flows

ovs-ofctl -OOpenflow13 add-flow br-int "table=0, priority=50,
ct_state=-trk,ip, in_port=10 actions=ct(table=0)"

ovs-ofctl -OOpenflow13 add-flow br-int "table=0, priority=50,
ct_state=+trk,ip, in_port=10 actions=ct(commit),resubmit(,1)"

ovs-ofctl -OOpenflow13 add-flow br-int "table=1
]->NXM_NX_REG0[0..15], output:NXM_NX_REG0[0..15]),resubmit(,2)"

3. Send a packet with output as OFPP_TABLE

ovs-ofctl -OOpenflow13 packet-out br-int 'in_port=10
008000a0000000000000000500200002e7d0000, actions=TABLE'


This leads to a crash which is a case of double locking of oproto_mutex in
handle_packet_out and ofproto_flow_mod_learn. 

Can some one provide more insight of introducing ofproto_mutex lock in
handle_packet_out which is the cause for above crash? 


Please find the backtrace in the attachment.


Thanks & Regards,

Anil Kumar.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20190403/706f6e54/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: crash.txt
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20190403/706f6e54/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5540 bytes
Desc: not available
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20190403/706f6e54/attachment.p7s>

More information about the discuss mailing list