]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
securityfs: don't pin dentries twice, once is enough...
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 9 May 2025 03:38:01 +0000 (23:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:25:52 +0000 (16:25 +0200)
commitc2eabec8a6789fc2f37f0601f9b585efe2fa52f4
tree1f7afcf75f21f5140d60689dd16a1bd166c47db4
parentff3e154e0d5abc8a9878c8b63f2674f60787b8c2
securityfs: don't pin dentries twice, once is enough...

[ Upstream commit 27cd1bf1240d482e4f02ca4f9812e748f3106e4f ]

incidentally, securityfs_recursive_remove() is broken without that -
it leaks dentries, since simple_recursive_removal() does not expect
anything of that sort.  It could be worked around by dput() in
remove_one() callback, but it's easier to just drop that double-get
stuff.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
security/inode.c