summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorVidhu Sarwal <vidhu.linux@gmail.com>2026-07-13 14:11:40 +0530
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2026-10-13 15:44:58 +0200
commit2727ac2ba87af3d5469a17648207fcfd72f6be7f (patch)
treea50604bb802743f191495ee0d01786ac869f4646 /tools/lib/python
parent86ba91170c03e02eee767d82a9a7f2048e51a5e4 (diff)
downloadlinux-next-2727ac2ba87af3d5469a17648207fcfd72f6be7f.tar.gz
linux-next-2727ac2ba87af3d5469a17648207fcfd72f6be7f.zip
fs/ntfs3: prevent positive E_NTFS_NONRESIDENT from reaching writeback error handling
attr_data_write_resident() returns the internal positive status code E_NTFS_NONRESIDENT when the DATA attribute becomes non-resident. ntfs_writepages() propagates this value into generic writeback error handling, which expects a standard negative errno and triggers WARN_ON_ONCE(err > 0). Translate positive E_NTFS_* status codes to -EIO before recording the writeback error. This prevents positive internal status codes from reaching generic writeback code while preserving the existing behaviour of treating this path as a writeback error. Reported-by: syzbot+57f9327d593d301ce2a2@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=57f9327d593d301ce2a2 Signed-off-by: Vidhu Sarwal <vidhu.linux@gmail.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions