]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: use dst_dev_rcu() in tcp_fastopen_active_disable_ofo_check()
authorEric Dumazet <edumazet@google.com>
Thu, 28 Aug 2025 19:58:22 +0000 (19:58 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Aug 2025 02:36:32 +0000 (19:36 -0700)
commitb62a59c18b692f892dcb8109c1c2e653b2abc95c
tree79dd62f077f3c481b682b7aaf70014c165719ed8
parent50c127a69cd6285300931853b352a1918cfa180f
tcp: use dst_dev_rcu() in tcp_fastopen_active_disable_ofo_check()

Use RCU to avoid a pair of atomic operations and a potential
UAF on dst_dev()->flags.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20250828195823.3958522-8-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_fastopen.c