aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2025-02-19 02:33:31 +0000
committerJakub Kicinski <[email protected]>2025-02-19 02:33:32 +0000
commita92c3228766429fe175ecc815f895043ea505587 (patch)
tree1e47db05f7a5332144f6f601fd7e5c778adb81b6 /net/unix/af_unix.c
parentnet: pse-pd: pd692x0: Fix power limit retrieval (diff)
parentdev: Use rtnl_net_dev_lock() in unregister_netdev(). (diff)
downloadkernel-a92c3228766429fe175ecc815f895043ea505587.tar.gz
kernel-a92c3228766429fe175ecc815f895043ea505587.zip
Merge branch 'net-fix-race-of-rtnl_net_lock-dev_net-dev'
Kuniyuki Iwashima says: ==================== net: Fix race of rtnl_net_lock(dev_net(dev)). Yael Chemla reported that commit 7fb1073300a2 ("net: Hold rtnl_net_lock() in (un)?register_netdevice_notifier_dev_net().") started to trigger KASAN's use-after-free splat. The problem is that dev_net(dev) fetched before rtnl_net_lock() might be different after rtnl_net_lock(). The patch 2 fixes the issue by checking dev_net(dev) after rtnl_net_lock(), and the patch 3 fixes the same potential issue that would emerge once RTNL is removed. v4: https://lore.kernel.org/[email protected] v3: https://lore.kernel.org/[email protected] v2: https://lore.kernel.org/[email protected] v1: https://lore.kernel.org/[email protected] ==================== Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions