syzbot


WARNING in input_unregister_device (2)

Status: upstream: reported C repro on 2024/01/09 18:22
Subsystems: input usb
[Documentation on labels]
Reported-by: syzbot+617f4ccb03b9869f6494@syzkaller.appspotmail.com
First crash: 104d, last: 39d
Cause bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] Monthly input report (Mar 2024) 0 (1) 2024/03/19 12:48
[syzbot] [kernel?] WARNING in input_unregister_device (2) 1 (4) 2024/02/24 02:30
[syzbot] Monthly input report (Feb 2024) 0 (1) 2024/02/17 20:23
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in input_unregister_device input usb C error unreliable 10 599d 1071d 0/26 auto-obsoleted due to no activity on 2022/12/24 01:52
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/03/08 11:29 18m retest repro upstream report log
2024/03/08 11:29 17m retest repro upstream report log
2024/03/08 11:29 16m retest repro upstream report log
2024/02/24 01:21 23m eadavis@qq.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log

Sample crash report:
input: HID 045e:07da as /devices/platform/dummy_hcd.0/usb1/1-1/1-1:0.0/0003:045E:07DA.0060/input/input100
microsoft 0003:045E:07DA.0060: input,hidraw0: USB HID v0.00 Device [HID 045e:07da] on usb-dummy_hcd.0-1/input0
usb 1-1: USB disconnect, device number 97
------------[ cut here ]------------
add_uevent_var: buffer size too small
WARNING: CPU: 1 PID: 5106 at lib/kobject_uevent.c:671 add_uevent_var+0x2d5/0x450 lib/kobject_uevent.c:671
Modules linked in:
CPU: 1 PID: 5106 Comm: kworker/1:0 Not tainted 6.8.0-rc5-syzkaller-00121-g1c892cdd8fe0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Workqueue: usb_hub_wq hub_event
RIP: 0010:add_uevent_var+0x2d5/0x450 lib/kobject_uevent.c:671
Code: 0f b6 04 27 84 c0 0f 85 28 01 00 00 48 8b 44 24 18 01 18 31 c0 eb 2b e8 79 e7 38 f6 90 48 c7 c7 e0 e2 c5 8c e8 3c f2 fc f5 90 <0f> 0b 90 90 b8 f4 ff ff ff 49 bc 00 00 00 00 00 fc ff df 4c 8b 6c
RSP: 0018:ffffc90003b9ef20 EFLAGS: 00010246
RAX: 9d1faa279d3e9500 RBX: 00000000000007f5 RCX: ffff888023bad940
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90003b9f050 R08: ffffffff81577ab2 R09: 1ffff110172a51a2
R10: dffffc0000000000 R11: ffffed10172a51a3 R12: 000000000000000b
R13: 000000000000000b R14: 1ffff1100f831c43 R15: 1ffff1100f831d43
FS:  0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efd175910f0 CR3: 000000002c152000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kobject_uevent_env+0x520/0x8f0 lib/kobject_uevent.c:588
 device_del+0x812/0xa30 drivers/base/core.c:3846
 input_unregister_device+0xa3/0x100 drivers/input/input.c:2440
 hidinput_disconnect+0x26c/0x300 drivers/hid/hid-input.c:2388
 hid_disconnect drivers/hid/hid-core.c:2280 [inline]
 hid_hw_stop+0x75/0x1e0 drivers/hid/hid-core.c:2329
 ms_remove+0x23/0xa0 drivers/hid/hid-microsoft.c:409
 hid_device_remove+0x225/0x370
 device_remove drivers/base/dd.c:567 [inline]
 __device_release_driver drivers/base/dd.c:1272 [inline]
 device_release_driver_internal+0x4a9/0x7c0 drivers/base/dd.c:1295
 bus_remove_device+0x34f/0x420 drivers/base/bus.c:574
 device_del+0x580/0xa30 drivers/base/core.c:3828
 hid_remove_device drivers/hid/hid-core.c:2867 [inline]
 hid_destroy_device+0x68/0x100 drivers/hid/hid-core.c:2887
 usbhid_disconnect+0x9e/0xc0 drivers/hid/usbhid/hid-core.c:1456
 usb_unbind_interface+0x1d4/0x850 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+0x503/0x7c0 drivers/base/dd.c:1295
 bus_remove_device+0x34f/0x420 drivers/base/bus.c:574
 device_del+0x580/0xa30 drivers/base/core.c:3828
 usb_disable_device+0x3bf/0x850 drivers/usb/core/message.c:1416
 usb_disconnect+0x340/0x950 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+0x1e62/0x50f0 drivers/usb/core/hub.c:5865
 process_one_work kernel/workqueue.c:2633 [inline]
 process_scheduled_works+0x913/0x1420 kernel/workqueue.c:2706
 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2787
 kthread+0x2ef/0x390 kernel/kthread.c:388
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:242
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/23 07:32 upstream 1c892cdd8fe0 8d446f15 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in input_unregister_device
2024/02/23 04:16 upstream 1c892cdd8fe0 8d446f15 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in input_unregister_device
2024/02/17 12:01 upstream c1ca10ceffbb 578f7538 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in input_unregister_device
2024/01/03 13:43 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing e7d3b9f28654 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in input_unregister_device
* Struck through repros no longer work on HEAD.