netfilter: xt_hashlimit: fix lock imbalance
authorEric Dumazet <edumazet@google.com>
Mon, 12 Feb 2018 16:11:48 +0000 (08:11 -0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 16 Feb 2018 14:00:55 +0000 (15:00 +0100)
commitde526f401284e1638d4c97cb5a4c292ac3f37655
treeadce3258de97f6e996bc6abddcb70f961db5bba8
parentdb57ccf0f2f4624b4c4758379f8165277504fbd7
netfilter: xt_hashlimit: fix lock imbalance

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>
net/netfilter/xt_hashlimit.c