aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorBaolin Liu <liubaolin@kylinos.cn>2026-09-04 17:00:50 +0800
committerNamjae Jeon <linkinjeon@kernel.org>2026-10-20 18:41:41 +0900
commit41001a72daa35ead23d74ee7b6f2373f237c0d72 (patch)
tree4047c2829e613929b027550fee92520ccb1888ac /scripts/Makefile.thinlto
parentntfs: remove unreachable code in load_and_init_attrdef/upcase (diff)
ntfs: return -EINVAL from ntfs_collate_ntofs_ulongs() on bad length
ntfs_collate_ntofs_ulongs() returns -1 when the key lengths differ or are not a multiple of 4. But -1 is also what cmp_int() returns for "collates before", so the error is indistinguishable from an ordinary result. ntfs_ie_lookup() acts on that difference: it maps -EINVAL to -ERANGE, but treats -1 as a tree-descent hint and breaks out of the loop. A malformed entry in $Reparse/$R or $ObjId/$O is therefore silently taken as a lookup miss. Return -EINVAL, as the sibling ntfs_collate_ntofs_ulong() already does. Well-formed keys are unaffected; both indexes use key sizes that are multiples of 4. Fixes: 5218cd102aec ("ntfs: update misc operations") 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