syzbot


WARNING in input_register_device (2)

Status: upstream: reported C repro on 2024/02/07 19:54
Subsystems: input usb
[Documentation on labels]
Reported-by: syzbot+8e41bb0c055b209ebbf4@syzkaller.appspotmail.com
First crash: 80d, last: 55d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH riscv64] kobject: fix WARNING in input_register_device 11 (11) 2024/02/13 13:13
[syzbot] [input?] [usb?] WARNING in input_register_device (2) 1 (3) 2024/02/08 09:36
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in input_register_device input usb C error done 11 1116d 1267d 20/26 fixed on 2021/11/10 00:50
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/02/25 22:41 37m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes report log
2024/02/25 22:41 36m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes report log
2024/02/25 22:41 53m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes report log
2024/02/25 22:41 40m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes report log
2024/02/08 08:57 38m eadavis@qq.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log

Sample crash report:
WARNING: CPU: 1 PID: 903 at lib/kobject_uevent.c:671 add_uevent_var+0x282/0x296 lib/kobject_uevent.c:671
Modules linked in:
CPU: 1 PID: 903 Comm: kworker/1:2 Not tainted 6.8.0-rc1-syzkaller-00008-g3951f6add519 #0
Hardware name: riscv-virtio,qemu (DT)
Workqueue: usb_hub_wq hub_event
epc : add_uevent_var+0x282/0x296 lib/kobject_uevent.c:671
 ra : add_uevent_var+0x282/0x296 lib/kobject_uevent.c:671
epc : ffffffff85832d34 ra : ffffffff85832d34 sp : ff20000001e41b20
 gp : ffffffff8863e380 tp : ff60000014659a00 t0 : f51012d0afc81779
 t1 : ffebffff0f9a10e2 t2 : ff6000001465a4f8 s0 : ff20000001e41c00
 s1 : ff60000012da2000 a0 : 0000000000000001 a1 : 0000000000000000
 a2 : 0000000000000002 a3 : ffffffff800b6c76 a4 : 0000000000000000
 a5 : 0000000000000000 a6 : 0000000000000003 a7 : ff6000007cd08713
 s2 : 0000000000000004 s3 : 1fe40000003c8368 s4 : 1fec0000025b4443
 s5 : ff60000012da2218 s6 : 0000000000000006 s7 : 00000000000007fc
 s8 : ff60000012da2a1c s9 : 1fec0000025b4543 s10: ffffffff88537800
 s11: ffffffff86b9c700 t3 : 0000000000000004 t4 : ffebffff0f9a10e2
 t5 : ffebffff0f9a10e3 t6 : ff20000001e416d8
status: 0000000200000120 badaddr: 0000000000000000 cause: 0000000000000003
[<ffffffff85832d34>] add_uevent_var+0x282/0x296 lib/kobject_uevent.c:671
[<ffffffff85834424>] kobject_uevent_env+0xb0c/0x1378 lib/kobject_uevent.c:602
[<ffffffff85834cb2>] kobject_uevent+0x22/0x2e lib/kobject_uevent.c:642
[<ffffffff8254325a>] device_add+0x10d2/0x186e drivers/base/core.c:3606
[<ffffffff83703a0c>] input_register_device+0x606/0xe9a drivers/input/input.c:2379
[<ffffffff83fac148>] hidinput_connect+0x4c72/0x88a4 drivers/hid/hid-input.c:2355
[<ffffffff83f9da78>] hid_connect+0x11e0/0x15e0 drivers/hid/hid-core.c:2194
[<ffffffff83f9df2e>] hid_hw_start drivers/hid/hid-core.c:2309 [inline]
[<ffffffff83f9df2e>] hid_hw_start+0xb6/0x13c drivers/hid/hid-core.c:2300
[<ffffffff84025ce8>] ms_probe+0x15e/0x4f0 drivers/hid/hid-microsoft.c:391
[<ffffffff83f9e5dc>] __hid_device_probe drivers/hid/hid-core.c:2633 [inline]
[<ffffffff83f9e5dc>] hid_device_probe+0x2a4/0x3f2 drivers/hid/hid-core.c:2670
[<ffffffff8254d476>] call_driver_probe drivers/base/dd.c:579 [inline]
[<ffffffff8254d476>] really_probe+0x234/0xbbc drivers/base/dd.c:658
[<ffffffff8254dfd2>] __driver_probe_device+0x1d4/0x458 drivers/base/dd.c:800
[<ffffffff8254e2b6>] driver_probe_device+0x60/0x1ce drivers/base/dd.c:830
[<ffffffff8254e608>] __device_attach_driver+0x1e4/0x2fe drivers/base/dd.c:958
[<ffffffff82547caa>] bus_for_each_drv+0x142/0x1da drivers/base/bus.c:457
[<ffffffff8254f22a>] __device_attach+0x1c4/0x462 drivers/base/dd.c:1030
[<ffffffff8254f850>] device_initial_probe+0x1c/0x26 drivers/base/dd.c:1079
[<ffffffff8254a72c>] bus_probe_device+0x15c/0x192 drivers/base/bus.c:532
[<ffffffff825432b4>] device_add+0x112c/0x186e drivers/base/core.c:3625
[<ffffffff83f973a4>] hid_add_device+0x374/0x9b2 drivers/hid/hid-core.c:2816
[<ffffffff840dcb3a>] usbhid_probe+0xa50/0xf84 drivers/hid/usbhid/hid-core.c:1429
[<ffffffff830a2008>] usb_probe_interface+0x2d4/0x8a2 drivers/usb/core/driver.c:399
[<ffffffff8254d476>] call_driver_probe drivers/base/dd.c:579 [inline]
[<ffffffff8254d476>] really_probe+0x234/0xbbc drivers/base/dd.c:658
[<ffffffff8254dfd2>] __driver_probe_device+0x1d4/0x458 drivers/base/dd.c:800
[<ffffffff8254e2b6>] driver_probe_device+0x60/0x1ce drivers/base/dd.c:830
[<ffffffff8254e608>] __device_attach_driver+0x1e4/0x2fe drivers/base/dd.c:958
[<ffffffff82547caa>] bus_for_each_drv+0x142/0x1da drivers/base/bus.c:457
[<ffffffff8254f22a>] __device_attach+0x1c4/0x462 drivers/base/dd.c:1030
[<ffffffff8254f850>] device_initial_probe+0x1c/0x26 drivers/base/dd.c:1079
[<ffffffff8254a72c>] bus_probe_device+0x15c/0x192 drivers/base/bus.c:532
[<ffffffff825432b4>] device_add+0x112c/0x186e drivers/base/core.c:3625
[<ffffffff8309b9fc>] usb_set_configuration+0xfe0/0x1b10 drivers/usb/core/message.c:2207
[<ffffffff830c449e>] usb_generic_driver_probe+0xae/0x128 drivers/usb/core/generic.c:254
[<ffffffff830a0d4e>] usb_probe_device+0xd6/0x340 drivers/usb/core/driver.c:294
[<ffffffff8254d476>] call_driver_probe drivers/base/dd.c:579 [inline]
[<ffffffff8254d476>] really_probe+0x234/0xbbc drivers/base/dd.c:658
[<ffffffff8254dfd2>] __driver_probe_device+0x1d4/0x458 drivers/base/dd.c:800
[<ffffffff8254e2b6>] driver_probe_device+0x60/0x1ce drivers/base/dd.c:830
[<ffffffff8254e608>] __device_attach_driver+0x1e4/0x2fe drivers/base/dd.c:958
[<ffffffff82547caa>] bus_for_each_drv+0x142/0x1da drivers/base/bus.c:457
[<ffffffff8254f22a>] __device_attach+0x1c4/0x462 drivers/base/dd.c:1030
[<ffffffff8254f850>] device_initial_probe+0x1c/0x26 drivers/base/dd.c:1079
[<ffffffff8254a72c>] bus_probe_device+0x15c/0x192 drivers/base/bus.c:532
[<ffffffff825432b4>] device_add+0x112c/0x186e drivers/base/core.c:3625
[<ffffffff83077f46>] usb_new_device+0x960/0x1648 drivers/usb/core/hub.c:2596
[<ffffffff8307e390>] hub_port_connect drivers/usb/core/hub.c:5465 [inline]
[<ffffffff8307e390>] hub_port_connect_change drivers/usb/core/hub.c:5605 [inline]
[<ffffffff8307e390>] port_event drivers/usb/core/hub.c:5765 [inline]
[<ffffffff8307e390>] hub_event+0x2954/0x4756 drivers/usb/core/hub.c:5847
[<ffffffff80123766>] process_one_work+0x7ce/0x179c kernel/workqueue.c:2633
[<ffffffff80125210>] process_scheduled_works kernel/workqueue.c:2706 [inline]
[<ffffffff80125210>] worker_thread+0xadc/0x10f8 kernel/workqueue.c:2787
[<ffffffff801446d0>] kthread+0x28c/0x3a6 kernel/kthread.c:388
[<ffffffff85928e6a>] ret_from_fork+0xe/0x1c arch/riscv/kernel/entry.S:229

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/11 22:38 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 3951f6add519 77b23aa1 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 WARNING in input_register_device
2024/02/11 17:43 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 3951f6add519 77b23aa1 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 WARNING in input_register_device
2024/02/11 12:44 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 3951f6add519 77b23aa1 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 WARNING in input_register_device
2024/02/06 22:26 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 6613476e225e 6404acf9 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 WARNING in input_register_device
2024/03/03 03:12 upstream 5ad3cb0ed525 25905f5d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING in input_register_device
* Struck through repros no longer work on HEAD.