]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: use tcp_eat_recv_skb in __tcp_close()
authorEric Dumazet <edumazet@google.com>
Wed, 3 Sep 2025 08:47:20 +0000 (08:47 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 5 Sep 2025 02:13:41 +0000 (19:13 -0700)
commitb13592d20b210976a0946adf027b7bd9d7734326
treeb83135ebde6b5642a94d59ba94cd9ee108721113
parent8bc316cf3a9e235a11f8424e2cfb2ade1baa94ff
tcp: use tcp_eat_recv_skb in __tcp_close()

Small change to use tcp_eat_recv_skb() instead
of __kfree_skb(). This can help if an application
under attack has to close many sockets with unread data.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Neal Cardwell <ncardwell@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Link: https://patch.msgid.link/20250903084720.1168904-4-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp.c