From: Prithvi Tambewagh <activprithvi@gmail.com>
To: syzbot+0be47376a6acbcba7f0d@syzkaller.appspotmail.com
Cc: jfs-discussion@lists.sourceforge.net,
linux-kernel@vger.kernel.org, shaggy@kernel.org,
syzkaller-bugs@googlegroups.com,
Prithvi Tambewagh <activprithvi@gmail.com>
Subject: Re: Syakaller testing for KASAN: slab-out-of-bounds Read in dbAllocBits bug
Date: Wed, 26 Nov 2025 00:58:24 +0530 [thread overview]
Message-ID: <20251125192824.151904-1-activprithvi@gmail.com> (raw)
In-Reply-To: <00000000000042f5d90618054116@google.com>
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 7367539ad4b0f8f9b396baf02110962333719a48
Signed-off-by: Prithvi Tambewagh <activprithvi@gmail.com>
---
fs/jfs/jfs_dmap.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c
index cb3cda1390ad..8dba15c83a49 100644
--- a/fs/jfs/jfs_dmap.c
+++ b/fs/jfs/jfs_dmap.c
@@ -2142,6 +2142,11 @@ static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
int size;
s8 *leaf;
+ if(blkno >= le64_to_cpu(bmp->db_mapsize)) {
+ jfs_error(bmp->db_ipbmap->i_sb, "Allocation request out of bounds\n");
+ return;
+ }
+
/* pick up a pointer to the leaves of the dmap tree */
leaf = dp->tree.stree + LEAFIND;
base-commit: 7367539ad4b0f8f9b396baf02110962333719a48
--
2.34.1
next prev parent reply other threads:[~2025-11-25 19:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-09 13:18 [syzbot] [jfs?] KASAN: slab-out-of-bounds Read in dbAllocBits syzbot
2025-11-25 19:28 ` Prithvi Tambewagh [this message]
2025-11-25 19:49 ` syzbot
2026-03-22 12:51 ` Forwarded: [PATCH v2] jfs: fix slab-out-of-bounds in dbAllocBits and dbFreeBits syzbot
2026-03-22 13:12 ` syzbot
2026-03-22 13:32 ` syzbot
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=20251125192824.151904-1-activprithvi@gmail.com \
--to=activprithvi@gmail.com \
--cc=jfs-discussion@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=shaggy@kernel.org \
--cc=syzbot+0be47376a6acbcba7f0d@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.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