mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+fb4362a104d45ab09cf9@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [comedi?] KMSAN: kernel-infoleak in do_insnlist_ioctl
Date: Thu, 31 Jul 2025 17:39:12 +0800	[thread overview]
Message-ID: <20250731093913.3644-1-hdanton@sina.com> (raw)
In-Reply-To: <688b1b62.a00a0220.26d0e1.0039.GAE@google.com>

> Date: Thu, 31 Jul 2025 00:29:38 -0700	[thread overview]
> syzbot has found a reproducer for the following issue on:
> 
> HEAD commit:    e8d780dcd957 Merge tag 'slab-for-6.17' of git://git.kernel..
> git tree:       upstream
> console+strace: https://syzkaller.appspot.com/x/log.txt?x=154b8f82580000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=30a934bba3cd727
> dashboard link: https://syzkaller.appspot.com/bug?extid=fb4362a104d45ab09cf9
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=10a04ca2580000
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=13a269bc580000

#syz test

--- x/drivers/comedi/comedi_fops.c
+++ y/drivers/comedi/comedi_fops.c
@@ -1566,7 +1566,7 @@ static int do_insnlist_ioctl(struct come
 
 	/* Allocate scratch space for all instruction data. */
 	data = kmalloc_array(max_n_data_required, sizeof(unsigned int),
-			     GFP_KERNEL);
+			     GFP_KERNEL | __GFP_ZERO);
 	if (!data) {
 		ret = -ENOMEM;
 		goto error;
--

  reply	other threads:[~2025-07-31  9:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-21 19:30 [syzbot] [kernel?] " syzbot
2025-07-31  7:29 ` [syzbot] [comedi?] " syzbot
2025-07-31  9:39   ` Hillf Danton [this message]
2025-07-31 11:03     ` 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=20250731093913.3644-1-hdanton@sina.com \
    --to=hdanton@sina.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+fb4362a104d45ab09cf9@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®