]> git.baikalelectronics.ru Git - kernel.git/commit
net: openvswitch: silence suspicious RCU usage warning
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Wed, 5 Aug 2020 07:19:11 +0000 (15:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Aug 2020 19:11:46 +0000 (12:11 -0700)
commitf0d1a7aa149416f50e67805a0aafdc2e43e4dc3d
tree61d9d9096654cafb960c283ef02a1487d7a2ddc5
parent5871e1011d9185b9ad993daf203d9caba13dc72d
net: openvswitch: silence suspicious RCU usage warning

ovs_flow_tbl_destroy always is called from RCU callback
or error path. It is no need to check if rcu_read_lock
or lockdep_ovsl_is_held was held.

ovs_dp_cmd_fill_info always is called with ovs_mutex,
So use the rcu_dereference_ovsl instead of rcu_dereference
in ovs_flow_tbl_masks_cache_size.

Fixes: 442ad8fcfe46 ("net: openvswitch: make masks cache size configurable")
Cc: Eelco Chaudron <echaudro@redhat.com>
Reported-by: syzbot+c0eb9e7cdde04e4eb4be@syzkaller.appspotmail.com
Reported-by: syzbot+f612c02823acb02ff9bc@syzkaller.appspotmail.com
Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/flow_table.c