]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: add TIME_WAIT logic to sk_to_full_sk()
authorEric Dumazet <edumazet@google.com>
Thu, 10 Oct 2024 17:48:13 +0000 (17:48 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Oct 2024 00:39:36 +0000 (17:39 -0700)
commit78e2baf3d96edd21c6f26d8afc0e68d02ec2c51c
tree1e2bc7edfdc0b93abf08ad7955c5deff577e08ec
parent76d37e4fd638a582cf13bec243ebab0af3658d07
net: add TIME_WAIT logic to sk_to_full_sk()

TCP will soon attach TIME_WAIT sockets to some ACK and RST.

Make sure sk_to_full_sk() detects this and does not return
a non full socket.

v3: also changed sk_const_to_full_sk()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Martin KaFai Lau <martin.lau@kernel.org>
Reviewed-by: Brian Vazquez <brianvv@google.com>
Link: https://patch.msgid.link/20241010174817.1543642-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/bpf-cgroup.h
include/net/inet_sock.h
net/core/filter.c