syztest

Arnaud Lecomte posted 1 patch 2 months, 1 week ago
There is a newer version of this series
syztest
Posted by Arnaud Lecomte 2 months, 1 week ago
#syz test

--- a/drivers/comedi/comedi_fops.c
+++ b/drivers/comedi/comedi_fops.c
@@ -1636,7 +1636,7 @@ static int do_insn_ioctl(struct comedi_device *dev,
 		n_data = MAX_SAMPLES;
 	}
 
-	data = kmalloc_array(n_data, sizeof(unsigned int), GFP_KERNEL);
+	data = kcalloc(n_data, sizeof(unsigned int), GFP_KERNEL);
 	if (!data) {
 		ret = -ENOMEM;
 		goto error;
--
Re: [syzbot] [comedi?] KMSAN: kernel-infoleak in do_insn_ioctl
Posted by syzbot 2 months, 1 week ago
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-by: syzbot+a5e45f768aab5892da5d@syzkaller.appspotmail.com
Tested-by: syzbot+a5e45f768aab5892da5d@syzkaller.appspotmail.com

Tested on:

commit:         dd9c1732 Merge tag 'sound-6.16' of git://git.kernel.or..
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=14cc10a2580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=7753c32e11ff6a95
dashboard link: https://syzkaller.appspot.com/bug?extid=a5e45f768aab5892da5d
compiler:       Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7
patch:          https://syzkaller.appspot.com/x/patch.diff?x=13a410a2580000

Note: testing is done by a robot and is best-effort only.