summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2026-09-22 16:34:55 +0000
committerJakub Kicinski <kuba@kernel.org>2026-09-25 16:28:54 -0700
commit9396e37c4860822fbc354fa438bb18e1437e0c9c (patch)
tree6835fb0704ed337bdbaf443a8db6fc6246f34fff /tools/lib/python
parent42a9fb3382fc2573e92f41d203b095d9a372cfc9 (diff)
net: synchronize proc_do_rss_key() with netdev_rss_key_fill()
proc_do_rss_key() reads netdev_rss_key[] without synchronization, so a concurrent reader of /proc/sys/net/core/netdev_rss_key can observe a partially populated key while netdev_rss_key_fill() is initializing it. Publish a boolean flag after an smp_wmb() once netdev_rss_key_fill() has populated netdev_rss_key[], and pair it with an smp_rmb() in proc_do_rss_key(), printing zero bytes until the flag is set. Fixes: 960fb622f851 ("net: provide a per host RSS key generic infrastructure") Signed-off-by: Eric Dumazet <edumazet@google.com> Link: https://patch.msgid.link/20260922163458.3900996-2-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions