diff options
| author | Hyunchul Lee <hyc.lee@gmail.com> | 2026-10-28 17:42:48 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-29 17:50:11 +0900 |
| commit | 4b927614d92d7326f265d22b50ba7b4a33966e48 (patch) | |
| tree | 34cacc012890a76873ab9554b6abe695d002041f /scripts/Makefile.thinlto | |
| parent | 1f3c5ba3c55c112a0b33c03caa9d5f88bb9e7759 (diff) | |
| download | linux-next-4b927614d92d7326f265d22b50ba7b4a33966e48.tar.gz linux-next-4b927614d92d7326f265d22b50ba7b4a33966e48.zip | |
ntfs: avoid overflow when limiting attribute read length
ntfs_inode_attr_pread() limits a read to the attribute size using
pos + count. A large count can overflow the signed sum and bypass
the attribute EOF boundary check. Compare count with isize - pos
instead, after validating pos, so the read length limit cannot wrap.
Fixes: af0db57d4293 ("ntfs: update inode operations")
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Reviewed-by: Baolin Liu <liubaolin@kylinos.cn>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
