[PATCH RESEND v2 28/51] ntfs3: don't warn when a huge label is written

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Nov 5 11:29:43 PST 2026


> ntfs3_label_write() allocates as many bytes as are written with plain
> kmalloc(). A write that is larger than what kmalloc() can hand out then
> trips the page allocator's warning, which panics a panic_on_warn kernel.
> Use memdup_user(), which fails such an allocation quietly with -ENOMEM
> like before.
> 
> Fixes: 7832e123490a ("fs/ntfs3: Add support /proc/fs/ntfs3/<dev>/volinfo and /proc/fs/ntfs3/<dev>/label")
> Cc: stable at vger.kernel.org
> Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-work-procfs-bugfixes-v2-0-021c84d852e0@kernel.org?part=28




More information about the kexec mailing list