Files
linux/fs/f2fs
Christian Brauner 1afe9e7da8 f2fs: fix freezing filesystem during resize
Using FREEZE_HOLDER_USERSPACE has two consequences:

(1) If userspace freezes the filesystem after mnt_drop_write_file() but
    before freeze_super() was called filesystem resizing will fail
    because the freeze isn't marked as nestable.

(2) If the kernel has successfully frozen the filesystem via
    FREEZE_HOLDER_USERSPACE userspace can simply undo it by using the
    FITHAW ioctl.

Fix both issues by using FREEZE_HOLDER_KERNEL. It will nest with
FREEZE_HOLDER_USERSPACE and cannot be undone by userspace.

And it is the correct thing to do because the kernel temporarily freezes
the filesystem.

Signed-off-by: Christian Brauner <brauner@kernel.org>
2025-05-09 12:41:24 +02:00
..
2023-01-19 09:24:27 +01:00
2025-02-13 17:58:31 +00:00
2025-03-13 18:16:06 +00:00
2021-08-23 10:25:51 -07:00
2025-03-11 19:38:00 +00:00
2025-03-13 18:15:59 +00:00