syzbot


KMSAN: uninit-value in iforce_init_device

Status: auto-closed as invalid on 2022/09/14 12:18
Subsystems: input
[Documentation on labels]
First crash: 717d, last: 717d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in iforce_init_device (2) input 3 600d 574d 22/26 fixed on 2023/02/24 13:50

Sample crash report:
iforce 3-1:0.0: usb_submit_urb failed: -32
=====================================================
BUG: KMSAN: uninit-value in iforce_init_device+0x230f/0x2680 drivers/input/joystick/iforce/iforce-main.c:296
 iforce_init_device+0x230f/0x2680 drivers/input/joystick/iforce/iforce-main.c:296
 iforce_usb_probe+0xd55/0x12b0 drivers/input/joystick/iforce/iforce-usb.c:238
 usb_probe_interface+0xe8b/0x1580 drivers/usb/core/driver.c:396
 really_probe+0x6cb/0x1350 drivers/base/dd.c:621
 __driver_probe_device+0x3ed/0x530 drivers/base/dd.c:752
 driver_probe_device+0xb3/0x850 drivers/base/dd.c:782
 __device_attach_driver+0x6b4/0x920 drivers/base/dd.c:899
 bus_for_each_drv+0x2da/0x400 drivers/base/bus.c:427
 __device_attach+0x555/0x880 drivers/base/dd.c:970
 device_initial_probe+0x4e/0x60 drivers/base/dd.c:1017
 bus_probe_device+0x185/0x400 drivers/base/bus.c:487
 device_add+0x1fff/0x26e0 drivers/base/core.c:3405
 usb_set_configuration+0x36bd/0x3cf0 drivers/usb/core/message.c:2170
 usb_generic_driver_probe+0x140/0x300 drivers/usb/core/generic.c:238
 usb_probe_device+0x30f/0x570 drivers/usb/core/driver.c:293
 really_probe+0x6cb/0x1350 drivers/base/dd.c:621
 __driver_probe_device+0x3ed/0x530 drivers/base/dd.c:752
 driver_probe_device+0xb3/0x850 drivers/base/dd.c:782
 __device_attach_driver+0x6b4/0x920 drivers/base/dd.c:899
 bus_for_each_drv+0x2da/0x400 drivers/base/bus.c:427
 __device_attach+0x555/0x880 drivers/base/dd.c:970
 device_initial_probe+0x4e/0x60 drivers/base/dd.c:1017
 bus_probe_device+0x185/0x400 drivers/base/bus.c:487
 device_add+0x1fff/0x26e0 drivers/base/core.c:3405
 usb_new_device+0x1b93/0x2950 drivers/usb/core/hub.c:2566
 hub_port_connect drivers/usb/core/hub.c:5363 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5507 [inline]
 port_event drivers/usb/core/hub.c:5665 [inline]
 hub_event+0x5929/0x88a0 drivers/usb/core/hub.c:5747
 process_one_work+0xe67/0x1860 kernel/workqueue.c:2289
 process_scheduled_works kernel/workqueue.c:2352 [inline]
 worker_thread+0x1761/0x21f0 kernel/workqueue.c:2438
 kthread+0x3c7/0x500 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

Local variable buf created at:
 iforce_init_device+0x96/0x2680 drivers/input/joystick/iforce/iforce-main.c:216
 iforce_usb_probe+0xd55/0x12b0 drivers/input/joystick/iforce/iforce-usb.c:238

CPU: 1 PID: 16872 Comm: kworker/1:4 Not tainted 5.18.0-syzkaller-16253-g2f3064574275 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/13/2022
Workqueue: usb_hub_wq hub_event
=====================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/06/16 12:13 https://github.com/google/kmsan.git master 2f3064574275 1719ee24 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in iforce_init_device
* Struck through repros no longer work on HEAD.