From: Edward Adam Davis <eadavis@qq.com>
To: syzbot+217eb327242d08197efb@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [hfs?] KMSAN: uninit-value in hfsplus_bnode_find
Date: Wed, 15 Apr 2026 08:52:29 +0800 [thread overview]
Message-ID: <tencent_2F53798361497643AF245F9762F76546D005@qq.com> (raw)
In-Reply-To: <69decbd0.a00a0220.468cb.006b.GAE@google.com>
#syz test
diff --git a/fs/hfsplus/bnode.c b/fs/hfsplus/bnode.c
index 250a226336ea..56a046ba4d54 100644
--- a/fs/hfsplus/bnode.c
+++ b/fs/hfsplus/bnode.c
@@ -576,7 +576,10 @@ struct hfs_bnode *hfs_bnode_find(struct hfs_btree *tree, u32 num)
goto node_error;
}
- rec_off = tree->node_size - 2;
+ if (tree->node_size < 2)
+ goto node_error;
+ else
+ rec_off = tree->node_size - 2;
off = hfs_bnode_read_u16(node, rec_off);
if (off != sizeof(struct hfs_bnode_desc))
goto node_error;
next prev parent reply other threads:[~2026-04-15 0:52 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-14 23:20 syzbot
2026-04-15 0:52 ` Edward Adam Davis [this message]
2026-04-15 4:10 ` syzbot
2026-04-15 8:29 ` [PATCH] hfsplus: Add a sanity check for catalog btree node size Edward Adam Davis
2026-04-15 22:32 ` Viacheslav Dubeyko
2026-04-16 4:09 ` Edward Adam Davis
2026-04-16 9:53 ` [PATCH v2] hfsplus: Add a sanity check for " Edward Adam Davis
2026-04-16 22:16 ` Viacheslav Dubeyko
2026-04-16 23:38 ` Edward Adam Davis
2026-04-16 23:44 ` [PATCH v3] " Edward Adam Davis
2026-04-16 23:52 ` Viacheslav Dubeyko
2026-04-17 10:12 ` Forwarded: [PATCH] hfsplus: initialize data in hfs_bnode_read_u16 and syzbot
2026-04-17 16:21 ` Forwarded: Re: [syzbot] KMSAN: uninit-value in hfs_bnode_read_u16 syzbot
2026-04-18 13:39 ` Forwarded: Re: [syzbot] [hfs?] " syzbot
2026-04-30 22:42 ` Forwarded: Re: [syzbot] [hfs?] KMSAN: uninit-value in hfsplus_bnode_find syzbot
2026-05-01 0:00 ` Forwarded: #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master syzbot
2026-05-05 11:12 ` Forwarded: Re: [syzbot] KMSAN: uninit-value in hfs_bnode_read syzbot
[not found] <20260417101217.2490473-1-tristmd@gmail.com>
2026-04-17 12:18 ` [syzbot] [hfs?] KMSAN: uninit-value in hfsplus_bnode_find syzbot
[not found] <177644286465.3789313.1865189663709823603@talencesecurity.com>
2026-04-17 19:31 ` syzbot
[not found] <177651957444.1706453.2476231728393088995@gmail.com>
2026-04-18 14:30 ` syzbot
[not found] <177758891864.181316.16374417280386974180@gmail.com>
2026-05-01 0:38 ` syzbot
[not found] <177759362684.3834952.14956792532776253256@talencesecurity.com>
2026-05-01 2:03 ` syzbot
[not found] <69f9d0b2.5d0a0220.151130.ee17@mx.google.com>
2026-05-05 16:28 ` 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_2F53798361497643AF245F9762F76546D005@qq.com \
--to=eadavis@qq.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+217eb327242d08197efb@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
Powered by JetHome