netfilter: ipset: Fix rename concurrency with listing
authorJozsef Kadlecsik <kadlec@netfilter.org>
Tue, 23 Jul 2019 08:25:55 +0000 (10:25 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 29 Jul 2019 19:18:07 +0000 (21:18 +0200)
commit6c1f7e2c1b96ab9b09ac97c4df2bd9dc327206f6
tree7b0d0728d479829760e9fdd27dcb0a27ceb6c7fa
parent1b4a75108d5bc153daf965d334e77e8e94534f96
netfilter: ipset: Fix rename concurrency with listing

Shijie Luo reported that when stress-testing ipset with multiple concurrent
create, rename, flush, list, destroy commands, it can result

ipset <version>: Broken LIST kernel message: missing DATA part!

error messages and broken list results. The problem was the rename operation
was not properly handled with respect of listing. The patch fixes the issue.

Reported-by: Shijie Luo <luoshijie1@huawei.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
net/netfilter/ipset/ip_set_core.c