Re: [syzbot] Re: [syzbot] [ext4?] WARNING in ext4_journal_check_start (2)
From: syzbot
Date: Thu May 08 2025 - 23:45:12 EST
For archival purposes, forwarding an incoming command email to
linux-kernel@xxxxxxxxxxxxxxx.
***
Subject: Re: [syzbot] [ext4?] WARNING in ext4_journal_check_start (2)
Author: richard120310@xxxxxxxxx
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git c964ced77262
Signed-off-by: I Hsin Cheng <richard120310@xxxxxxxxx>
---
fs/ext4/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 54bdd4884fe6..d799f424f218 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -2806,7 +2806,7 @@ static int ext4_writepages(struct address_space *mapping,
int ret;
int alloc_ctx;
- if (unlikely(ext4_forced_shutdown(sb)))
+ if (unlikely(ext4_forced_shutdown(sb)) || mapping->host->i_sb->s_writers.frozen == SB_FREEZE_COMPLETE)
return -EIO;
alloc_ctx = ext4_writepages_down_read(sb);
--
2.43.0