]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipfrag: really prevent allocation on netns exit
authorPaolo Abeni <pabeni@redhat.com>
Fri, 6 Jul 2018 10:30:20 +0000 (12:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jan 2019 07:12:33 +0000 (08:12 +0100)
commit8c849652804b98ec332ff80287d0cc511983560a
tree9806d7e7addc81b98faa2f46f4233cce631ef916
parent147bb6f52c5fd06ed9e21f9fa6faa3b5a635beb6
ipfrag: really prevent allocation on netns exit

[ Upstream commit f6f2a4a2eb92bc73671204198bb2f8ab53ff59fb ]

Setting the low threshold to 0 has no effect on frags allocation,
we need to clear high_thresh instead.

The code was pre-existent to commit 648700f76b03 ("inet: frags:
use rhashtables for reassembly units"), but before the above,
such assignment had a different role: prevent concurrent eviction
from the worker and the netns cleanup helper.

Fixes: 648700f76b03 ("inet: frags: use rhashtables for reassembly units")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/inet_fragment.c