netfilter: ipset: Missing nfnl_lock()/nfnl_unlock() is added to ip_set_net_exit()
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sat, 6 Jan 2018 14:24:18 +0000 (15:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Apr 2018 06:55:07 +0000 (08:55 +0200)
commit17da5b1d0a467ebeb72647ce77bfe4cc263fdb57
tree90f5508df4632fdbe0c9547ae8d7f0262cc0332f
parent7b3f3fa2bdeb7c2e240dac86561da10160b22f86
netfilter: ipset: Missing nfnl_lock()/nfnl_unlock() is added to ip_set_net_exit()

commit f998b6b10144cd9809da6af02758615f789e8aa1 upstream.

Patch "netfilter: ipset: use nfnl_mutex_is_locked" is added the real
mutex locking check, which revealed the missing locking in ip_set_net_exit().

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Reported-by: syzbot+36b06f219f2439fe62e1@syzkaller.appspotmail.com
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/ipset/ip_set_core.c