]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bch2_ioctl_subvolume_destroy(): fix locking
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 14 Nov 2023 23:52:42 +0000 (18:52 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2024 18:14:30 +0000 (19:14 +0100)
commitdc610c441b0e072ee01abf8910fda350df5136fa
tree67dc56c9c6f318cd9e8c714b4544ddc2566b624c
parent9b9a2f1a67f26a3ed66e672b7bad8f369a4b4a02
bch2_ioctl_subvolume_destroy(): fix locking

commit bbe6a7c899e7f265c5a6d01a178336a405e98ed6 upstream.

make it use user_path_locked_at() to get the normal directory protection
for modifications, as well as stable ->d_parent and ->d_name in victim

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/bcachefs/fs-ioctl.c