Re: [syzbot] [usb?] KMSAN: kernel-infoleak in iowarrior_read

From: Jeongjun Park
Date: Sat Sep 14 2024 - 16:32:40 EST


#syz test git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master

---
drivers/usb/misc/iowarrior.c | 6 ------
1 file changed, 6 deletions(-)

diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c
index 6d28467ce352..c36eb831e3db 100644
--- a/drivers/usb/misc/iowarrior.c
+++ b/drivers/usb/misc/iowarrior.c
@@ -182,12 +182,6 @@ static void iowarrior_callback(struct urb *urb)
&& (dev->interface->cur_altsetting->desc.bInterfaceNumber == 0)) {
/* + 1 for serial number */
offset = aux_idx * (dev->report_size + 1);
- if (!memcmp
- (dev->read_queue + offset, urb->transfer_buffer,
- dev->report_size)) {
- /* equal values on interface 0 will be ignored */
- goto exit;
- }
}

/* aux_idx become next intr_idx */
--