From: Drif Abdelmalek Mohamed Said <drifabdelmalekmohamedsaid@gmail.com>
To: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>,
syzbot+daa4cd155cd8696efe4f@syzkaller.appspotmail.com
Cc: ntfs3@lists.linux.dev, linux-kernel@vger.kernel.org,
Drif Abdelmalek Mohamed Said
<drifabdelmalekmohamedsaid@gmail.com>
Subject: [PATCH] ntfs3: set iomap uptodate bits when zeroing folios beyond i_valid
Date: Sat, 28 Nov 2026 18:55:22 +0100 [thread overview]
Message-ID: <20261128175522.4263-1-drifabdelmalekmohamedsaid@gmail.com> (raw)
syzbot reported this warning in ifs_free():
ifs_is_fully_uptodate(folio, ifs) != folio_test_uptodate(folio)
When ntfs_read_folio() zeroes a folio beyond i_valid, it sets
PG_uptodate but leaves any existing iomap block bitmap unchanged.
Use iomap_folio_mark_uptodate() to keep the two in sync.
Fixes: 099ef9ab9203 ("fs/ntfs3: implement iomap-based file operations")
Reported-by: syzbot+daa4cd155cd8696efe4f@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?id=f47e98cd0b0abcb731eb137d938f08861dbae58a
Signed-off-by: Drif Abdelmalek Mohamed Said <drifabdelmalekmohamedsaid@gmail.com>
---
fs/ntfs3/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ntfs3/inode.c b/fs/ntfs3/inode.c
index 45f894d182dd..1096534ffb98 100644
--- a/fs/ntfs3/inode.c
+++ b/fs/ntfs3/inode.c
@@ -849,7 +849,7 @@ static int ntfs_read_folio(struct file *file, struct folio *folio)
if (ni->i_valid <= vbo) {
folio_zero_range(folio, 0, folio_size(folio));
- folio_mark_uptodate(folio);
+ iomap_folio_mark_uptodate(folio);
folio_unlock(folio);
return 0;
}
--
2.47.3
reply other threads:[~2026-11-28 17:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261128175522.4263-1-drifabdelmalekmohamedsaid@gmail.com \
--to=drifabdelmalekmohamedsaid@gmail.com \
--cc=almaz.alexandrovich@paragon-software.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ntfs3@lists.linux.dev \
--cc=syzbot+daa4cd155cd8696efe4f@syzkaller.appspotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®