summaryrefslogtreecommitdiff
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2025-02-13 17:50:18 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-15 19:46:32 +0300
commit400188ae361a9d9a72a47a6cedaf2d2efcc84aa8 (patch)
treea1c6ee54247791f6b519b2f7e15a5d827bf99d74 /security/selinux/hooks.c
parenta64dcfb451e254085a7daee5fe51bf22959d52d3 (diff)
downloadlinux-400188ae361a9d9a72a47a6cedaf2d2efcc84aa8.tar.xz
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 <tj@kernel.org> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Link: https://lore.kernel.org/r/20250213145023.2820193-2-bigeasy@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions