syzbot


WARNING in __input_unregister_device

Status: upstream: reported C repro on 2024/02/27 16:12
Subsystems: input usb
[Documentation on labels]
Reported-by: syzbot+b03b0fc32e288051502d@syzkaller.appspotmail.com
First crash: 53d, last: 36d
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly input report (Mar 2024) 0 (1) 2024/03/19 12:48
[syzbot] [usb?] [input?] WARNING in __input_unregister_device 0 (1) 2024/02/27 16:12
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/03/11 00:13 21m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/03/11 00:13 19m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/03/11 00:13 19m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/03/11 00:13 18m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log

Sample crash report:
microsoft 0003:045E:07DA.0009: input,hidraw0: USB HID v0.00 Device [HID 045e:07da] on usb-dummy_hcd.0-1/input0
usb 1-1: USB disconnect, device number 10
------------[ cut here ]------------
add_uevent_var: buffer size too small
WARNING: CPU: 1 PID: 1394 at lib/kobject_uevent.c:671 add_uevent_var+0x278/0x3c0
Modules linked in:
CPU: 1 PID: 1394 Comm: kworker/1:2 Tainted: G    B              6.8.0-rc5-syzkaller-g9abbc24128bc #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Workqueue: usb_hub_wq hub_event
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : add_uevent_var+0x278/0x3c0
lr : add_uevent_var+0x274/0x3c0 lib/kobject_uevent.c:671
sp : ffff800098486c80
x29: ffff800098486da0 x28: 000000000000000c x27: ffff700013090d9c
x26: dfff800000000000 x25: ffff0000c8e02a10 x24: 000000000000000c
x23: 00000000000007f4 x22: 000000000000000c x21: ffff0000c8e02218
x20: ffff0000c8e02a1c x19: ffff0000c8e02000 x18: 1fffe00036804796
x17: 0000000000000000 x16: ffff80008ad5bbdc x15: 0000000000000001
x14: 1fffe00036804802 x13: 0000000000000000 x12: 0000000000000000
x11: 0000000000000002 x10: 0000000000ff0100 x9 : c77e75592b5e9e00
x8 : c77e75592b5e9e00 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800098486578 x4 : ffff80008ed715e0 x3 : ffff8000805b98b4
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 00000000fffffff4
Call trace:
 add_uevent_var+0x278/0x3c0
 kobject_uevent_env+0x4f0/0x874 lib/kobject_uevent.c:588
 kobject_uevent+0x2c/0x3c lib/kobject_uevent.c:642
 device_del+0x6a8/0x87c drivers/base/core.c:3846
 __input_unregister_device+0x454/0x5c0 drivers/input/input.c:2232
 input_unregister_device+0xb0/0xfc drivers/input/input.c:2440
 hidinput_disconnect+0x1fc/0x290 drivers/hid/hid-input.c:2388
 hid_disconnect drivers/hid/hid-core.c:2280 [inline]
 hid_hw_stop+0x88/0x1cc drivers/hid/hid-core.c:2329
 ms_remove+0x28/0x94 drivers/hid/hid-microsoft.c:409
 hid_device_remove+0x1c8/0x2fc
 device_remove drivers/base/dd.c:567 [inline]
 __device_release_driver drivers/base/dd.c:1272 [inline]
 device_release_driver_internal+0x3e4/0x6a0 drivers/base/dd.c:1295
 device_release_driver+0x28/0x38 drivers/base/dd.c:1318
 bus_remove_device+0x314/0x3b4 drivers/base/bus.c:574
 device_del+0x480/0x87c drivers/base/core.c:3828
 hid_remove_device drivers/hid/hid-core.c:2867 [inline]
 hid_destroy_device+0x70/0x114 drivers/hid/hid-core.c:2887
 usbhid_disconnect+0xa8/0xf0 drivers/hid/usbhid/hid-core.c:1456
 usb_unbind_interface+0x1a4/0x758 drivers/usb/core/driver.c:461
 device_remove drivers/base/dd.c:569 [inline]
 __device_release_driver drivers/base/dd.c:1272 [inline]
 device_release_driver_internal+0x440/0x6a0 drivers/base/dd.c:1295
 device_release_driver+0x28/0x38 drivers/base/dd.c:1318
 bus_remove_device+0x314/0x3b4 drivers/base/bus.c:574
 device_del+0x480/0x87c drivers/base/core.c:3828
 usb_disable_device+0x354/0x760 drivers/usb/core/message.c:1416
 usb_disconnect+0x290/0x808 drivers/usb/core/hub.c:2267
 hub_port_connect drivers/usb/core/hub.c:5323 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5623 [inline]
 port_event drivers/usb/core/hub.c:5783 [inline]
 hub_event+0x18ec/0x435c drivers/usb/core/hub.c:5865
 process_one_work+0x694/0x1204 kernel/workqueue.c:2633
 process_scheduled_works kernel/workqueue.c:2706 [inline]
 worker_thread+0x938/0xef4 kernel/workqueue.c:2787
 kthread+0x288/0x310 kernel/kthread.c:388
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860
irq event stamp: 71432
hardirqs last  enabled at (71431): [<ffff80008ae4d56c>] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline]
hardirqs last  enabled at (71431): [<ffff80008ae4d56c>] _raw_spin_unlock_irq+0x30/0x80 kernel/locking/spinlock.c:202
hardirqs last disabled at (71432): [<ffff80008ae372c4>] __schedule+0x2bc/0x24b4 kernel/sched/core.c:6625
softirqs last  enabled at (42430): [<ffff80008002189c>] softirq_handle_end kernel/softirq.c:399 [inline]
softirqs last  enabled at (42430): [<ffff80008002189c>] __do_softirq+0xac8/0xce4 kernel/softirq.c:582
softirqs last disabled at (42421): [<ffff80008002ab48>] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:81
---[ end trace 0000000000000000 ]---
usb 1-1: new high-speed USB device number 11 using dummy_hcd
usb 1-1: Using ep0 maxpacket: 16
usb 1-1: config 0 interface 0 altsetting 0 endpoint 0x81 has an invalid bInterval 0, changing to 7
usb 1-1: config 0 interface 0 altsetting 0 has 1 endpoint descriptor, different from the interface descriptor's value: 9
usb 1-1: New USB device found, idVendor=045e, idProduct=07da, bcdDevice= 0.00
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 1-1: config 0 descriptor??
microsoft 0003:045E:07DA.000A: unknown main item tag 0x0
microsoft 0003:045E:07DA.000A: unknown main item tag 0x0
microsoft 0003:045E:07DA.000A: unknown main item tag 0x0
microsoft 0003:045E:07DA.000A: unknown main item tag 0x0
HID 045e:07da: Invalid code 65791 type 1
input: HID 045e:07da as /devices/platform/dummy_hcd.0/usb1/1-1/1-1:0.0/0003:045E:07DA.000A/input/input11
microsoft 0003:045E:07DA.000A: input,hidraw0: USB HID v0.00 Device [HID 045e:07da] on usb-dummy_hcd.0-1/input0
usb 1-1: USB disconnect, device number 11
------------[ cut here ]------------
add_uevent_var: buffer size too small
WARNING: CPU: 1 PID: 1394 at lib/kobject_uevent.c:671 add_uevent_var+0x278/0x3c0
Modules linked in:
CPU: 1 PID: 1394 Comm: kworker/1:2 Tainted: G    B   W          6.8.0-rc5-syzkaller-g9abbc24128bc #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Workqueue: usb_hub_wq hub_event
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : add_uevent_var+0x278/0x3c0
lr : add_uevent_var+0x274/0x3c0 lib/kobject_uevent.c:671
sp : ffff800098486c80
x29: ffff800098486da0 x28: 000000000000000c x27: ffff700013090d9c
x26: dfff800000000000 x25: ffff0001ffb5ea10 x24: 000000000000000c
x23: 00000000000007f4 x22: 000000000000000c x21: ffff0001ffb5e218
x20: ffff0001ffb5ea1c x19: ffff0001ffb5e000 x18: 1fffe00036804796
x17: 0000000000000000 x16: ffff80008ad5bbdc x15: 0000000000000001
x14: 1fffe00036804802 x13: 0000000000000000 x12: 0000000000000000
x11: 0000000000000002 x10: 0000000000ff0100 x9 : c77e75592b5e9e00
x8 : c77e75592b5e9e00 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800098486578 x4 : ffff80008ed715e0 x3 : ffff8000805b98b4
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 00000000fffffff4
Call trace:
 add_uevent_var+0x278/0x3c0
 kobject_uevent_env+0x4f0/0x874 lib/kobject_uevent.c:588
 kobject_uevent+0x2c/0x3c lib/kobject_uevent.c:642
 device_del+0x6a8/0x87c drivers/base/core.c:3846
 __input_unregister_device+0x454/0x5c0 drivers/input/input.c:2232
 input_unregister_device+0xb0/0xfc drivers/input/input.c:2440
 hidinput_disconnect+0x1fc/0x290 drivers/hid/hid-input.c:2388
 hid_disconnect drivers/hid/hid-core.c:2280 [inline]
 hid_hw_stop+0x88/0x1cc drivers/hid/hid-core.c:2329
 ms_remove+0x28/0x94 drivers/hid/hid-microsoft.c:409
 hid_device_remove+0x1c8/0x2fc
 device_remove drivers/base/dd.c:567 [inline]
 __device_release_driver drivers/base/dd.c:1272 [inline]
 device_release_driver_internal+0x3e4/0x6a0 drivers/base/dd.c:1295
 device_release_driver+0x28/0x38 drivers/base/dd.c:1318
 bus_remove_device+0x314/0x3b4 drivers/base/bus.c:574
 device_del+0x480/0x87c drivers/base/core.c:3828
 hid_remove_device drivers/hid/hid-core.c:2867 [inline]
 hid_destroy_device+0x70/0x114 drivers/hid/hid-core.c:2887
 usbhid_disconnect+0xa8/0xf0 drivers/hid/usbhid/hid-core.c:1456
 usb_unbind_interface+0x1a4/0x758 drivers/usb/core/driver.c:461
 device_remove drivers/base/dd.c:569 [inline]
 __device_release_driver drivers/base/dd.c:1272 [inline]
 device_release_driver_internal+0x440/0x6a0 drivers/base/dd.c:1295
 device_release_driver+0x28/0x38 drivers/base/dd.c:1318
 bus_remove_device+0x314/0x3b4 drivers/base/bus.c:574
 device_del+0x480/0x87c drivers/base/core.c:3828
 usb_disable_device+0x354/0x760 drivers/usb/core/message.c:1416
 usb_disconnect+0x290/0x808 drivers/usb/core/hub.c:2267
 hub_port_connect drivers/usb/core/hub.c:5323 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5623 [inline]
 port_event drivers/usb/core/hub.c:5783 [inline]
 hub_event+0x18ec/0x435c drivers/usb/core/hub.c:5865
 process_one_work+0x694/0x1204 kernel/workqueue.c:2633
 process_scheduled_works kernel/workqueue.c:2706 [inline]
 worker_thread+0x938/0xef4 kernel/workqueue.c:2787
 kthread+0x288/0x310 kernel/kthread.c:388
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860
irq event stamp: 71432
hardirqs last  enabled at (71431): [<ffff80008ae4d56c>] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline]
hardirqs last  enabled at (71431): [<ffff80008ae4d56c>] _raw_spin_unlock_irq+0x30/0x80 kernel/locking/spinlock.c:202
hardirqs last disabled at (71432): [<ffff80008ae372c4>] __schedule+0x2bc/0x24b4 kernel/sched/core.c:6625
softirqs last  enabled at (42430): [<ffff80008002189c>] softirq_handle_end kernel/softirq.c:399 [inline]
softirqs last  enabled at (42430): [<ffff80008002189c>] __do_softirq+0xac8/0xce4 kernel/softirq.c:582
softirqs last disabled at (42421): [<ffff80008002ab48>] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:81
---[ end trace 0000000000000000 ]---
usb 1-1: new high-speed USB device number 12 using dummy_hcd
usb 1-1: Using ep0 maxpacket: 16
usb 1-1: config 0 interface 0 altsetting 0 endpoint 0x81 has an invalid bInterval 0, changing to 7
usb 1-1: config 0 interface 0 altsetting 0 has 1 endpoint descriptor, different from the interface descriptor's value: 9
usb 1-1: New USB device found, idVendor=045e, idProduct=07da, bcdDevice= 0.00
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 1-1: config 0 descriptor??
microsoft 0003:045E:07DA.000B: unknown main item tag 0x0
microsoft 0003:045E:07DA.000B: unknown main item tag 0x0
microsoft 0003:045E:07DA.000B: unknown main item tag 0x0
microsoft 0003:045E:07DA.000B: unknown main item tag 0x0
HID 045e:07da: Invalid code 65791 type 1
input: HID 045e:07da as /devices/platform/dummy_hcd.0/usb1/1-1/1-1:0.0/0003:045E:07DA.000B/input/input12
microsoft 0003:045E:07DA.000B: input,hidraw0: USB HID v0.00 Device [HID 045e:07da] on usb-dummy_hcd.0-1/input0

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/25 22:54 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9abbc24128bc 8d446f15 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __input_unregister_device
2024/02/25 20:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9abbc24128bc 8d446f15 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __input_unregister_device
2024/02/25 15:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9abbc24128bc 8d446f15 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __input_unregister_device
2024/02/23 16:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9abbc24128bc 8d446f15 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __input_unregister_device
* Struck through repros no longer work on HEAD.