]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fix locking in efi_secret_unlink()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 14 May 2024 14:48:58 +0000 (08:48 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:25:51 +0000 (16:25 +0200)
commitff3e154e0d5abc8a9878c8b63f2674f60787b8c2
tree3e5e4667692084552d8ef19702e4cb511da1f61a
parent3beaa57870b4de42aaaad53db2449dfcbc9fccbf
fix locking in efi_secret_unlink()

[ Upstream commit 2c58d42de71f9c73e40afacc9d062892d2cc8862 ]

We used to need securityfs_remove() to undo simple_pin_fs() done when
the file had been created and to drop the second extra reference
taken at the same time.  Now that neither is needed (or done by
securityfs_remove()), we can simply call simple_unlink() and be done
with that - the broken games with locking had been there only for the
sake of securityfs_remove().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/virt/coco/efi_secret/efi_secret.c