summaryrefslogtreecommitdiff
path: root/arch/arm/Kconfig
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-04-21 18:32:24 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-06 21:56:20 +0200
commitaac9fda375bbe75e0b8c033874af25e0f7f5a3a4 (patch)
tree2937341d32859675019e9a5d34739f66b4f8e69a /arch/arm/Kconfig
parentfb138c4699c94b16bf9400394142c6d86fe70226 (diff)
downloadlwn-aac9fda375bbe75e0b8c033874af25e0f7f5a3a4.tar.gz
lwn-aac9fda375bbe75e0b8c033874af25e0f7f5a3a4.zip
tcp: fix possible deadlock in tcp_send_fin()
[ Upstream commit d83769a580f1132ac26439f50068a29b02be535e ] Using sk_stream_alloc_skb() in tcp_send_fin() is dangerous in case a huge process is killed by OOM, and tcp_mem[2] is hit. To be able to free memory we need to make progress, so this patch allows FIN packets to not care about tcp_mem[2], if skb allocation succeeded. In a follow-up patch, we might abort tcp_send_fin() infinite loop in case TIF_MEMDIE is set on this thread, as memory allocator did its best getting extra memory already. This patch reverts d22e15371811 ("tcp: fix tcp fin memory accounting") Fixes: d22e15371811 ("tcp: fix tcp fin memory accounting") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/Kconfig')
0 files changed, 0 insertions, 0 deletions