[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <d5067a639f2341e6cce0a48f810c22d2e36c33a8.1760688719.git.xiaopei01@kylinos.cn>
Date: Fri, 17 Oct 2025 16:13:55 +0800
From: Pei Xiao <xiaopei01@...inos.cn>
To: syzbot+4b717071f1eecb2972df@...kaller.appspotmail.com
Cc: jfs-discussion@...ts.sourceforge.net,
linux-kernel@...r.kernel.org,
shaggy@...nel.org,
syzkaller-bugs@...glegroups.com,
Pei Xiao <xiaopei01@...inos.cn>
Subject: [PATCH] jfs: test syz test
diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c
index cdfa699cd7c8..9d26c5dc4efd 100644
--- a/fs/jfs/jfs_dmap.c
+++ b/fs/jfs/jfs_dmap.c
@@ -1435,6 +1435,11 @@ dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, s64 * results)
blkno &= ~(MAXL1SIZE - 1);
else /* bmp->db_aglevel == 0 */
blkno &= ~(MAXL0SIZE - 1);
+
+ if (unlikely(budmin < 0)) {
+ WARN_ON_ONCE(1);
+ budmin = 0;
+ }
blkno +=
((s64) (ti - le32_to_cpu(dcp->leafidx))) << budmin;
--
2.25.1
Powered by blists - more mailing lists