]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tcp: fix passive TFO socket having invalid NAPI ID
authorDavid Wei <dw@davidwei.uk>
Tue, 17 Jun 2025 21:21:02 +0000 (14:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:39 +0000 (11:07 +0100)
commit9eaabb0d77c5f50f9b46b9ae69b082169a73f800
tree861dec73d1c81c10850f8ee13df1fbbae03118da
parent05d332ba075753d569d66333d62d60fff5f57ad8
tcp: fix passive TFO socket having invalid NAPI ID

[ Upstream commit dbe0ca8da1f62b6252e7be6337209f4d86d4a914 ]

There is a bug with passive TFO sockets returning an invalid NAPI ID 0
from SO_INCOMING_NAPI_ID. Normally this is not an issue, but zero copy
receive relies on a correct NAPI ID to process sockets on the right
queue.

Fix by adding a sk_mark_napi_id_set().

Fixes: e5907459ce7e ("tcp: Record Rx hash and NAPI ID in tcp_child_process")
Signed-off-by: David Wei <dw@davidwei.uk>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250617212102.175711-5-dw@davidwei.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/tcp_fastopen.c