[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_1C33839ECE1B1A4BC11B35251ABA11BBAC08@qq.com>
Date: Wed, 24 Jul 2024 08:56:16 +0800
From: Edward Adam Davis <eadavis@...com>
To: syzbot+78eccfb8b3c9a85fc6c5@...kaller.appspotmail.com
Cc: linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [sound?] KMSAN: uninit-value in line6_midibuf_read
when alloc buffer for midi_buffer->buf, init mem to 0
#syz test: upstream 2c9b3512402e
diff --git a/sound/usb/line6/midibuf.c b/sound/usb/line6/midibuf.c
index e7f830f7526c..1b699cb3b38d 100644
--- a/sound/usb/line6/midibuf.c
+++ b/sound/usb/line6/midibuf.c
@@ -48,7 +48,7 @@ void line6_midibuf_reset(struct midi_buffer *this)
int line6_midibuf_init(struct midi_buffer *this, int size, int split)
{
- this->buf = kmalloc(size, GFP_KERNEL);
+ this->buf = kzalloc(size, GFP_KERNEL);
if (this->buf == NULL)
return -ENOMEM;
Powered by blists - more mailing lists