netfilter: cttimeout: fix deadlock due to erroneous unlock/lock conversion
Subsystems (2)
Florian Westphal
maintainerPATCH 1/1 netfilter: cttimeout: fix deadlock due to erroneous unlock/lock conversion
The spin_unlock call should have been left as-is, revert.
Fixes b16c29191dc89bd ("netfilter: nf_conntrack: use safer way to lock all buckets")
Reported-by kernel test robot <[email protected]>
Signed-off-by Florian Westphal <[email protected]>
--- net/netfilter/nfnetlink_cttimeout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/nfnetlink_cttimeout.c +1 -1
@@ -312,7 +312,7 @@ static void ctnl_untimeout(struct net *net, struct ctnl_timeout *timeout)hlist_nulls_for_each_entry (h, nn, &net->ct.hash[i], hnnode)untimeout (h, timeout); } -nf_conntrack_lock (&nf_conntrack_locks[i %CONNTRACK_LOCKS ]); +spin_unlock (&nf_conntrack_locks[i %CONNTRACK_LOCKS ]); }local_bh_enable (); }
Signature · 1 line
2.4.10
Pablo Neira Ayuso
maintainerQuoted 5 lines · Florian Westphal
The
spin_unlockcall should have been left as-is, revert.Fixes b16c29191dc89bd ("netfilter: nf_conntrack: use safer way to lock all buckets")Reported-by kernel test robot <[email protected]>Signed-off-by Florian Westphal <[email protected]>
Florian, thanks for resolving this problems. Applied, thanks.