[GIT PULL 06/18 for v7.3] vfs fat

From: Christian Brauner

Date: Fri Aug 14 2026 - 09:12:49 EST


Hey Linus,

/* Summary */

This rejects names longer than NAME_MAX in msdos_format_name(). The VFS
only enforces PATH_MAX rather than the length of an individual
component. open() on such a path component reported success for a name
far longer than NAME_MAX.

/* Testing */

No build failures or warnings were observed.

/* Conflicts */

Merge conflicts with mainline
=============================

No known conflicts.

Merge conflicts with other trees
================================

No known conflicts.

The following changes since commit dc59e4fea9d83f03bad6bddf3fa2e52491777482:

Linux 7.2-rc1 (2026-06-28 12:01:31 -0700)

are available in the Git repository at:

git@xxxxxxxxxxxxxxxxxxx:pub/scm/linux/kernel/git/vfs/vfs tags/vfs-7.3-rc1.fat

for you to fetch changes up to 9d7ed813ee5ff0d469bd99630828ed6fdef4e8da:

fat: reject name longer than NAME_MAX in msdos_format_name() (2026-06-30 13:01:05 +0200)

----------------------------------------------------------------
vfs-7.3-rc1.fat

Please consider pulling these changes from the signed vfs-7.3-rc1.fat tag.

Thanks!
Christian

----------------------------------------------------------------
Zizhi Wo (1):
fat: reject name longer than NAME_MAX in msdos_format_name()

fs/fat/namei_msdos.c | 3 +++
1 file changed, 3 insertions(+)