public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: syzbot <syzbot+2e6fb1f89ce5e13cd02d@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [syzbot] KMSAN: uninit-value in hfs_free_fork
Date: Mon, 11 Nov 2024 11:50:53 -0800	[thread overview]
Message-ID: <6732601d.050a0220.1fb99c.0153.GAE@google.com> (raw)
In-Reply-To: <00000000000005d7e10617c3a3f5@google.com>

For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.

***

Subject: KMSAN: uninit-value in hfs_free_fork
Author: gianf.trad@gmail.com

#syz test
diff --git a/fs/hfs/bfind.c b/fs/hfs/bfind.c
index ef9498a6e88a..c74d864bc29e 100644
--- a/fs/hfs/bfind.c
+++ b/fs/hfs/bfind.c
@@ -18,7 +18,7 @@ int hfs_find_init(struct hfs_btree *tree, struct 
hfs_find_data *fd)

  	fd->tree = tree;
  	fd->bnode = NULL;
-	ptr = kmalloc(tree->max_key_len * 2 + 4, GFP_KERNEL);
+	ptr = kzalloc(tree->max_key_len * 2 + 4, GFP_KERNEL);
  	if (!ptr)
  		return -ENOMEM;
  	fd->search_key = ptr;


  parent reply	other threads:[~2024-11-11 19:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-06  7:01 [syzbot] [hfs?] KMSAN: uninit-value in hfs_free_fork syzbot
2024-10-22 21:25 ` [syzbot] [syzbot] [hfs?] KMSAN: uninit-value in hfs_free_fork; test if repro still valid syzbot
2024-11-11 19:49 ` [syzbot] KMSAN: uninit-value in hfs_free_fork syzbot
2024-11-11 19:50 ` syzbot [this message]
2024-11-11 19:53 ` 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=6732601d.050a0220.1fb99c.0153.GAE@google.com \
    --to=syzbot+2e6fb1f89ce5e13cd02d@syzkaller.appspotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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