Files
linux/net/ipv6
Eric Dumazet e50f29f40b ipv6: np->rxpmtu race annotation
[ Upstream commit 9fba1eb39e ]

Add READ_ONCE() annotations because np->rxpmtu can be changed
while udpv6_recvmsg() and rawv6_recvmsg() read it.

Since this is a very rarely used feature, and that udpv6_recvmsg()
and rawv6_recvmsg() read np->rxopt anyway, change the test order
so that np->rxpmtu does not need to be in a hot cache line.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250916160951.541279-4-edumazet@google.com
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-11-13 15:37:26 -05:00
..
2025-07-02 14:32:30 -07:00
2025-10-15 12:03:48 +02:00
2025-07-02 15:42:29 -07:00
2025-07-02 14:32:30 -07:00
2025-10-15 12:03:49 +02:00
2025-07-02 14:32:30 -07:00
2025-10-15 12:03:48 +02:00
2025-10-15 12:03:48 +02:00
2025-10-15 12:03:48 +02:00
2025-06-23 17:04:03 -07:00
2025-11-13 15:37:26 -05:00
2025-10-15 12:03:48 +02:00
2025-07-02 14:32:30 -07:00
2024-05-30 18:29:38 -07:00
2023-10-27 10:35:46 +01:00
2025-11-13 15:37:26 -05:00