Re: [PATCH] ntfs: serialize volume label accesses

From: Namjae Jeon

Date: Tue Jun 02 2026 - 10:24:23 EST


On Tue, Jun 2, 2026 at 1:53 PM Hyunchul Lee <hyc.lee@xxxxxxxxx> wrote:
>
> Protect vol->volume_label with a mutex and snaphost the label before
> copy_to_user. This prevent a use-after-free when FS_IOC_SETFSLABEL
> replaces the vol->volume_label and FS_IOC_GETTSLABEL reads it
> concurrently.
>
> Signed-off-by: Hyunchul Lee <hyc.lee@xxxxxxxxx>
Applied it to #ntfs-next.
Thanks!