netfilter: xt_hashlimit: fix lock imbalance
authorEric Dumazet <edumazet@google.com>
Mon, 12 Feb 2018 16:11:48 +0000 (08:11 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Mar 2018 09:54:23 +0000 (10:54 +0100)
commit2a7ebc07a1531a6dbe00434d3c69402c615dbd74
treea3799ec6c5a8d07e212d4e72c633361baf77804b
parent4514a597aa4376a024927ecde3570dacac742e70
netfilter: xt_hashlimit: fix lock imbalance

commit de526f401284e1638d4c97cb5a4c292ac3f37655 upstream.

syszkaller found that rcu was not held in hashlimit_mt_common()

We only need to enable BH at this point.

Fixes: bea74641e378 ("netfilter: xt_hashlimit: add rate match mode")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzkaller <syzkaller@googlegroups.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/xt_hashlimit.c