]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bonding: annotate data-races in sysfs and procfs
authorEric Dumazet <edumazet@google.com>
Tue, 2 Jun 2026 15:27:48 +0000 (15:27 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 5 Jun 2026 01:03:07 +0000 (18:03 -0700)
commit4dc5a40b3bc90815efac0558d82f80ca597957dd
treed61736806a51181df1e5541b1621d8f36c41db81
parent07c4bca9d92e51ab6b46797a86c6ea559812351a
bonding: annotate data-races in sysfs and procfs

bonding sysfs and procfs read parameters locklessly,
while drivers/net/bonding/bond_options.c can write over them.

Add missing READ_ONCE()/WRITE_ONCE() annotations.

This came as a prereq to avoid RTNL in bond_fill_info().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260602152748.2564393-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bonding/bond_options.c
drivers/net/bonding/bond_procfs.c
drivers/net/bonding/bond_sysfs.c