Files
linux-cix/include/linux
Eric Dumazet 5960f4d873 inet: ipmr: fix data-races
[ Upstream commit 3440fa34ad99d471f1085bc2f4dedeaebc310261 ]

Following fields of 'struct mr_mfc' can be updated
concurrently (no lock protection) from ip_mr_forward()
and ip6_mr_forward()

- bytes
- pkt
- wrong_if
- lastuse

They also can be read from other functions.

Convert bytes, pkt and wrong_if to atomic_long_t,
and use READ_ONCE()/WRITE_ONCE() for lastuse.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20250114221049.1190631-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-02-08 09:52:02 +01:00
..
2024-07-25 09:50:47 +02:00
2024-10-04 16:29:59 +02:00
2024-06-12 11:11:38 +02:00
2024-07-05 09:34:04 +02:00
2024-03-26 18:20:13 -04:00
2024-12-14 19:59:58 +01:00
2024-08-29 17:33:31 +02:00
2025-02-01 18:37:54 +01:00
2025-02-08 09:51:56 +01:00
2024-06-16 13:47:41 +02:00
2024-06-12 11:12:52 +02:00
2025-02-08 09:52:02 +01:00
2025-01-09 13:31:41 +01:00
2025-02-08 09:51:55 +01:00
2024-04-03 15:28:29 +02:00
2024-06-12 11:11:56 +02:00
2025-01-23 17:21:12 +01:00
2024-05-17 12:01:59 +02:00
2025-01-09 13:31:41 +01:00
2025-02-01 18:37:51 +01:00
2024-08-29 17:33:23 +02:00
2024-10-17 15:24:23 +02:00
2024-11-08 16:28:26 +01:00