summaryrefslogtreecommitdiff
path: root/include/linux/vmalloc.h
diff options
context:
space:
mode:
authorDaeMyung Kang <charsyam@gmail.com>2026-05-30 17:35:12 +0300
committerNamjae Jeon <linkinjeon@kernel.org>2026-06-05 18:20:38 +0300
commitb3f6cd1d54aa279cc4f47aa27939ebe517a2c390 (patch)
tree73b1169d0760ac89ddb2770721e9de9016372cb1 /include/linux/vmalloc.h
parent45dd046ced0f5982a6d64ca449de3a61f5f15669 (diff)
downloadlinux-b3f6cd1d54aa279cc4f47aa27939ebe517a2c390.tar.xz
ntfs: validate resident volume name values on lookup
The shared lookup-time attribute validator now has a safe caller path for $VOLUME_NAME corruption: ntfs_write_volume_label() no longer treats lookup errors as an absent label, and the mount path reinitializes its search context before continuing to $VOLUME_INFORMATION. Add $VOLUME_NAME-specific resident value validation. A volume name is stored as a UTF-16LE string, so reject odd byte lengths, and reject values longer than the NTFS volume label limit. Empty labels remain valid. Also reject non-resident $VOLUME_NAME records. $VOLUME_NAME is required to be resident, like $FILE_NAME; a crafted non-resident record would otherwise pass lookup and ntfs_write_volume_label() would remove it as if it were a normal resident attribute. Cc: stable@vger.kernel.org # v7.1 Signed-off-by: DaeMyung Kang <charsyam@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'include/linux/vmalloc.h')
0 files changed, 0 insertions, 0 deletions