aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorThéo Lebrun <theo.lebrun@bootlin.com>2026-09-25 15:15:08 +0200
committerJakub Kicinski <kuba@kernel.org>2026-09-30 16:48:02 -0700
commit0ac396fbc25cb67bd75f887da5c0a01acebd94c0 (patch)
treec1d04193f26423b205c1a47e4a6859f6ca3bc4fd /scripts/Makefile.thinlto
parentnet/smc: Serialize link activation with teardown (diff)
net: macb: init workqueues before register_netdev()
register_netdev() exposes the interface to userspace which might trigger operations like close on it. Those access the HRESP/LPI tasks and might therefore use them uninitialised. Fix this race by initialising both `struct work_struct` before register_netdev(). Theoretical bugfix. The main reason for fix is to avoid future Sashiko reports which triggers if we grow the race condition (by touching those workqueues at open for example). The likeliness of this bug sounds tiny, but I've not spent any time trying to reproduce it. Cc: stable+noautosel@kernel.org # fix for an unproven driver init path race Fixes: c5092ba3155e ("net: macb: Convert tasklet API to new bottom half workqueue mechanism") Reported-by: sashiko <sashiko@sashiko.dev> Link: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260918-macb-close-v1-0-05e32ce98813%40bootlin.com Link: https://lore.kernel.org/netdev/179010942347.2160803.5970158668197373074@kernel.org/ Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de> Link: https://patch.msgid.link/20260925-macb-netdev-register-race-v1-1-752f90ce1c39@bootlin.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions