aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2025-02-13 14:50:18 +0000
committerGreg Kroah-Hartman <[email protected]>2025-02-15 16:46:32 +0000
commit400188ae361a9d9a72a47a6cedaf2d2efcc84aa8 (patch)
treea1c6ee54247791f6b519b2f7e15a5d827bf99d74 /security/selinux/hooks.c
parentLinux 6.14-rc2 (diff)
downloadkernel-400188ae361a9d9a72a47a6cedaf2d2efcc84aa8.tar.gz
kernel-400188ae361a9d9a72a47a6cedaf2d2efcc84aa8.zip
kernfs: Acquire kernfs_rwsem in kernfs_notify_workfn().
kernfs_notify_workfn() dereferences kernfs_node::name and passes it later to fsnotify(). If the node is renamed then the previously observed name pointer becomes invalid. Acquire kernfs_root::kernfs_rwsem to block renames of the node. Acked-by: Tejun Heo <[email protected]> Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions