Re: [PATCH] ntfs: validate $FILE_NAME length before converting the name

From: Bryam Vargas

Date: Thu Jun 04 2026 - 06:36:25 EST


Hi Hyunchul,

> There is already a patch that validates this in ntfs_attr_lookup().
> https://lore.kernel.org/all/20260530143514.3083601-2-charsyam@xxxxxxxxx

Right -- DaeMyung Kang's "[PATCH v4 1/6] ntfs: validate attribute values on
lookup" already rejects a $FILE_NAME whose file_name_length overruns the
resident value_length (ntfs_file_name_attr_value_is_valid()), and does it in
ntfs_attr_lookup() so every caller is covered, not just
ntfs_is_extended_system_file(). That subsumes this patch -- please drop it.
I'll leave the fs/ntfs attribute-value hardening to that series.

Bryam