From: Edward Adam Davis <eadavis@qq.com>
To: syzbot+41ba9c82bce8d7101765@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [hfs?] KASAN: out-of-bounds Read in hfs_bnode_move
Date: Thu, 24 Jul 2025 17:40:57 +0800 [thread overview]
Message-ID: <tencent_71A2963037984AD4740F774567DC3C213609@qq.com> (raw)
In-Reply-To: <68811963.050a0220.248954.0005.GAE@google.com>
#syz test
diff --git a/fs/hfs/brec.c b/fs/hfs/brec.c
index 896396554bcc..763b6209a198 100644
--- a/fs/hfs/brec.c
+++ b/fs/hfs/brec.c
@@ -208,7 +208,7 @@ int hfs_brec_remove(struct hfs_find_data *fd)
}
hfs_bnode_write_u16(node, offsetof(struct hfs_bnode_desc, num_recs), node->num_recs);
- if (rec_off == end_off)
+ if (rec_off <= end_off)
goto skip;
size = fd->keylength + fd->entrylength;
next prev parent reply other threads:[~2025-07-24 9:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-23 17:18 syzbot
2025-07-23 17:26 ` Viacheslav Dubeyko
2025-07-24 1:52 ` Forwarded: " syzbot
2025-07-24 9:40 ` Edward Adam Davis [this message]
2025-07-24 10:17 ` syzbot
2025-07-24 11:46 ` Edward Adam Davis
2025-07-24 15:06 ` syzbot
2025-07-24 15:08 ` [PATCH] hfs: Prevent the use of bnodes without entries Edward Adam Davis
2025-07-24 20:06 ` Viacheslav Dubeyko
2025-08-27 9:54 ` [syzbot] [hfs?] KASAN: out-of-bounds Read in hfs_bnode_move syzbot
[not found] <20250724015303.3332384-1-lizhi.xu@windriver.com>
2025-07-24 3:11 ` 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=tencent_71A2963037984AD4740F774567DC3C213609@qq.com \
--to=eadavis@qq.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+41ba9c82bce8d7101765@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
all inboxes | Powered by JetHome®