]> git.baikalelectronics.ru Git - kernel.git/commit
net: openvswitch: fixes potential deadlock in dp cleanup code
authorEelco Chaudron <echaudro@redhat.com>
Fri, 24 Jul 2020 08:20:59 +0000 (10:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jul 2020 23:58:38 +0000 (16:58 -0700)
commit7a106103de59f9c3d6cdc5f1037bd88a49eab7fd
treee0a6f2c668074161bcb86722a03fec039397c3c2
parenteff67f0b2e5ca373ebde655f48866ddb9a0a67e9
net: openvswitch: fixes potential deadlock in dp cleanup code

The previous patch introduced a deadlock, this patch fixes it by making
sure the work is canceled without holding the global ovs lock. This is
done by moving the reorder processing one layer up to the netns level.

Fixes: 9b86e35402e7 ("net: openvswitch: reorder masks array based on usage")
Reported-by: syzbot+2c4ff3614695f75ce26c@syzkaller.appspotmail.com
Reported-by: syzbot+bad6507e5db05017b008@syzkaller.appspotmail.com
Reviewed-by: Paolo <pabeni@redhat.com>
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/datapath.c
net/openvswitch/datapath.h