Files
linux-stable-mirror/include/net
Eric Dumazet e2b01044d9 net: add dev_net_rcu() helper
[ Upstream commit 482ad2a4ac ]

dev->nd_net can change, readers should either
use rcu_read_lock() or RTNL.

We currently use a generic helper, dev_net() with
no debugging support. We probably have many hidden bugs.

Add dev_net_rcu() helper for callers using rcu_read_lock()
protection.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250205155120.1676781-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 71b8471c93 ("ipv4: use RCU protection in ipv4_default_advmss()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-02-21 13:50:06 +01:00
..
2025-02-21 13:49:02 +01:00
2023-11-20 11:52:15 +01:00
2024-01-31 16:17:04 -08:00
2024-10-17 15:21:27 +02:00
2024-12-19 18:08:53 +01:00
2025-02-21 13:50:06 +01:00
2023-10-10 22:00:46 +02:00
2023-04-13 16:55:23 +02:00
2023-06-14 11:15:20 +02:00
2024-01-10 17:10:27 +01:00
2023-08-11 12:08:17 +02:00