diff options
author | Guoyu Ou <benogy@gmail.com> | 2024-01-28 11:46:17 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-29 05:41:09 +0300 |
commit | 6bb3f7f4c3f4da8e09de188f2f63e8f741bba3bd (patch) | |
tree | 277e3ed77f266e3cc04b6f78f4ee9680113b14d3 /security/landlock | |
parent | eba38cc7578bef94865341c73608bdf49193a51d (diff) | |
download | linux-6bb3f7f4c3f4da8e09de188f2f63e8f741bba3bd.tar.xz |
bcachefs: unlock parent dir if entry is not found in subvolume deletion
Parent dir is locked by user_path_locked_at() before validating the
required dentry. It should be unlocked if we can not perform the
deletion.
This fixes the problem:
$ bcachefs subvolume delete not-exist-entry
BCH_IOCTL_SUBVOLUME_DESTROY ioctl error: No such file or directory
$ bcachefs subvolume delete not-exist-entry
the second will stuck because the parent dir is locked in the previous
deletion.
Signed-off-by: Guoyu Ou <benogy@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'security/landlock')
0 files changed, 0 insertions, 0 deletions