summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorBaolin Liu <liubaolin@kylinos.cn>2026-09-23 14:02:38 +0800
committerNamjae Jeon <linkinjeon@kernel.org>2026-10-20 18:45:58 +0900
commit7973cd834dbd01b778c134e264daabfda08c150a (patch)
tree61823936f2f855d66114f07216ad9ac21cb3e4aa /scripts/Makefile.thinlto
parentb3dd259d838016b605418cbaace3af777499824a (diff)
downloadlinux-7973cd834dbd01b778c134e264daabfda08c150a.tar.gz
linux-7973cd834dbd01b778c134e264daabfda08c150a.zip
ntfs: validate EA chains and link zero-terminated tails
A zero next-entry offset terminates an EA list. Appending an entry without linking the old tail makes the new entry unreachable. Invalid entries are also treated as missing names, allowing setters to proceed on corrupt metadata. Validate the entire chain before modifying it and connect a zero tail to the append position. Check name terminators and retain the full tail span when removing an entry. Return EUCLEAN for malformed EA structures and inconsistent information lengths, preserving that error through the get, set and list paths. Keep ENOENT for a missing name and translate it to ENODATA only at the xattr read boundary. Preserve lower-level read errors. Reuse the same full-chain validation in ntfs_listxattr(), including size-only queries, before copying names. Reject malformed lists with EUCLEAN instead of returning an empty or partial list. Signed-off-by: Baolin Liu <liubaolin@kylinos.cn> Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions