aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorWeiming Shi <bestswngs@gmail.com>2026-06-25 01:52:58 -0700
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2026-09-14 09:31:25 +0200
commita32e893a077a4b0d3b04c86cb7f69e354a187995 (patch)
treeae8174b6c5b82d7904367de3a1494a5a43b7ca76 /scripts/Makefile.thinlto
parentfs/ntfs3: update ctime only on successful setxattr (diff)
fs/ntfs3: zero frame pages on read error
ni_read_frame() marks every frame page uptodate at the 'out:' label regardless of the return value. The pages come from ntfs_lock_new_page() and are not zeroed, and several error paths reach 'out:' before anything is written to them (e.g. a failed decompress_lznt()/decompress_lzx_xpress() on a corrupted chunk, or an allocation failure). A page marked uptodate is served directly from the page cache, so a later read() of the file returns the uninitialized page contents to userspace. On a crafted compressed image this leaks kernel memory, including pointers. Zero each page on the error path before marking it uptodate. The success path is unchanged. Fixes: 4342306f0f0d ("fs/ntfs3: Add file operations and implementation") Reported-by: Xiang Mei <xmei5@asu.edu> Assisted-by: Claude:claude-opus-4-8 Signed-off-by: Weiming Shi <bestswngs@gmail.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions