Revision 1f3a090b9033f69de380c03db3ea1a1015c850cf authored by Tonghao Zhang on 12 August 2020, 09:56:39 UTC, committed by David S. Miller on 13 August 2020, 22:53:30 UTC
To avoid some issues, for example RCU usage warning and double free,
we should flush the flows under ovs_lock. This patch refactors
table_instance_destroy and introduces table_instance_flow_flush
which can be invoked by __dp_destroy or ovs_flow_tbl_flush.

Fixes: 50b0e61b32ee ("net: openvswitch: fix possible memleak on destroy flow-table")
Reported-by: Johan Knöös <jknoos@google.com>
Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2020-August/050489.html
Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 88fd1cb
History
File Mode Size
Kconfig -rw-r--r-- 1.2 KB
Makefile -rw-r--r-- 283 bytes
alloc.c -rw-r--r-- 24.3 KB
alloc.h -rw-r--r-- 3.2 KB
bmap.c -rw-r--r-- 14.4 KB
bmap.h -rw-r--r-- 7.8 KB
btnode.c -rw-r--r-- 6.6 KB
btnode.h -rw-r--r-- 1.4 KB
btree.c -rw-r--r-- 62.4 KB
btree.h -rw-r--r-- 2.0 KB
cpfile.c -rw-r--r-- 25.4 KB
cpfile.h -rw-r--r-- 1.1 KB
dat.c -rw-r--r-- 12.7 KB
dat.h -rw-r--r-- 1.7 KB
dir.c -rw-r--r-- 16.6 KB
direct.c -rw-r--r-- 8.7 KB
direct.h -rw-r--r-- 645 bytes
export.h -rw-r--r-- 505 bytes
file.c -rw-r--r-- 3.6 KB
gcinode.c -rw-r--r-- 5.1 KB
ifile.c -rw-r--r-- 5.2 KB
ifile.h -rw-r--r-- 1.1 KB
inode.c -rw-r--r-- 28.5 KB
ioctl.c -rw-r--r-- 35.7 KB
mdt.c -rw-r--r-- 15.5 KB
mdt.h -rw-r--r-- 3.7 KB
namei.c -rw-r--r-- 12.4 KB
nilfs.h -rw-r--r-- 12.0 KB
page.c -rw-r--r-- 13.6 KB
page.h -rw-r--r-- 1.9 KB
recovery.c -rw-r--r-- 23.6 KB
segbuf.c -rw-r--r-- 13.0 KB
segbuf.h -rw-r--r-- 5.5 KB
segment.c -rw-r--r-- 74.2 KB
segment.h -rw-r--r-- 7.8 KB
sufile.c -rw-r--r-- 31.6 KB
sufile.h -rw-r--r-- 4.2 KB
super.c -rw-r--r-- 35.1 KB
sysfs.c -rw-r--r-- 31.3 KB
sysfs.h -rw-r--r-- 5.2 KB
the_nilfs.c -rw-r--r-- 20.6 KB
the_nilfs.h -rw-r--r-- 11.3 KB

back to top