syzbot


WARNING in input_unregister_device

Status: auto-obsoleted due to no activity on 2022/12/24 01:52
Subsystems: input usb
[Documentation on labels]
Reported-by: syzbot+96f19ddb26662d2cd6f5@syzkaller.appspotmail.com
First crash: 1245d, last: 769d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) [no-op commit]:
commit 30326f9577342aac257ed9c036608de666b06389
Author: Zhu Lingshan <lingshan.zhu@intel.com>
Date: Thu Aug 12 03:24:53 2021 +0000

  vDPA/ifcvf: introduce get_dev_type() which returns virtio dev id

  
Discussions (2)
Title Replies (including bot) Last reply
Re: [syzbot] WARNING in input_unregister_device 1 (1) 2023/12/25 07:55
[syzbot] WARNING in input_unregister_device 0 (1) 2021/05/11 14:50
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in input_unregister_device (2) usb input C error done 4 138d 267d 0/28 auto-obsoleted due to no activity on 2024/08/25 23:23
Last patch testing requests (5)
Created Duration User Patch Repo Result
2022/12/04 09:30 22m retest repro upstream OK log
2022/12/04 08:30 20m retest repro upstream OK log
2022/12/04 02:30 17m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing OK log
2022/12/04 06:30 21m retest repro upstream OK log
2022/12/04 02:30 22m retest repro upstream OK log
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2021/12/14 16:41 4h52m bisect fix upstream OK (1) job log
2021/11/14 15:23 22m bisect fix upstream OK (0) job log log
2021/10/15 04:48 22m bisect fix upstream OK (0) job log log
2021/08/29 00:23 21m bisect fix upstream OK (0) job log log
2021/07/16 10:56 23m bisect fix upstream OK (0) job log log

Sample crash report:
input: HID 045e:07da as /devices/platform/dummy_hcd.0/usb1/1-1/1-1:0.0/0003:045E:07DA.007F/input/input131
microsoft 0003:045E:07DA.007F: input,hidraw0: USB HID v0.00 Device [HID 045e:07da] on usb-dummy_hcd.0-1/input0
usb 1-1: USB disconnect, device number 2
------------[ cut here ]------------
add_uevent_var: buffer size too small
WARNING: CPU: 0 PID: 5 at lib/kobject_uevent.c:671 add_uevent_var+0x311/0x380 lib/kobject_uevent.c:671
Modules linked in:
CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 5.14.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
RIP: 0010:add_uevent_var+0x311/0x380 lib/kobject_uevent.c:671
Code: 48 c7 c7 a0 53 e6 89 e8 c8 0b f7 04 0f 0b 41 bd f4 ff ff ff e9 55 ff ff ff e8 1b 01 84 fd 48 c7 c7 40 54 e6 89 e8 aa 0b f7 04 <0f> 0b 41 bd f4 ff ff ff e9 37 ff ff ff 4c 89 ee 48 c7 c7 80 b2 27
RSP: 0018:ffffc90000ebf2e0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff8880240fe000 RCX: 0000000000000000
RDX: ffff88801109e140 RSI: ffffffff815c9d15 RDI: fffff520001d7e4e
RBP: ffffc90000ebf3d0 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815c3b1e R11: 0000000000000000 R12: 1ffff920001d7e5f
R13: 00000000000007de R14: ffff8880240fe218 R15: 00000000000007de
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb9c1780000 CR3: 000000000b68e000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 kobject_uevent_env+0xdd4/0x1650 lib/kobject_uevent.c:605
 device_del+0x7eb/0xd40 drivers/base/core.c:3552
 input_unregister_device+0xb4/0xf0 drivers/input/input.c:2379
 hidinput_disconnect+0x15e/0x3d0 drivers/hid/hid-input.c:2040
 hid_disconnect+0x13f/0x1a0 drivers/hid/hid-core.c:2032
 hid_hw_stop+0x12/0x70 drivers/hid/hid-core.c:2079
 ms_remove+0x12/0x90 drivers/hid/hid-microsoft.c:409
 hid_device_remove+0xbf/0x1f0 drivers/hid/hid-core.c:2316
 __device_release_driver+0x3bd/0x6f0 drivers/base/dd.c:1201
 device_release_driver_internal drivers/base/dd.c:1232 [inline]
 device_release_driver+0x26/0x40 drivers/base/dd.c:1255
 bus_remove_device+0x2eb/0x5a0 drivers/base/bus.c:529
 device_del+0x502/0xd40 drivers/base/core.c:3542
 hid_remove_device drivers/hid/hid-core.c:2487 [inline]
 hid_destroy_device+0xe1/0x150 drivers/hid/hid-core.c:2506
 usbhid_disconnect+0x9f/0xe0 drivers/hid/usbhid/hid-core.c:1444
 usb_unbind_interface+0x1d8/0x8d0 drivers/usb/core/driver.c:458
 __device_release_driver+0x3bd/0x6f0 drivers/base/dd.c:1201
 device_release_driver_internal drivers/base/dd.c:1232 [inline]
 device_release_driver+0x26/0x40 drivers/base/dd.c:1255
 bus_remove_device+0x2eb/0x5a0 drivers/base/bus.c:529
 device_del+0x502/0xd40 drivers/base/core.c:3542
 usb_disable_device+0x35b/0x7b0 drivers/usb/core/message.c:1419
 usb_disconnect.cold+0x27a/0x78e drivers/usb/core/hub.c:2225
 hub_port_connect drivers/usb/core/hub.c:5199 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5488 [inline]
 port_event drivers/usb/core/hub.c:5634 [inline]
 hub_event+0x1c9c/0x4330 drivers/usb/core/hub.c:5716
 process_one_work+0x98d/0x1630 kernel/workqueue.c:2276
 worker_thread+0x658/0x11f0 kernel/workqueue.c:2422
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/29 07:03 upstream 4010a528219e 9a4781d4 .config console log report syz C ci-upstream-kasan-gce-selinux-root WARNING in input_unregister_device
2021/07/23 08:49 upstream 9bead1b58c4c bc5f1d88 .config console log report syz C ci-upstream-kasan-gce WARNING in input_unregister_device
2021/06/16 08:31 upstream 94f0b2d4a1d0 990d3cbe .config console log report syz C ci-upstream-kasan-gce-smack-root WARNING in input_unregister_device
2021/06/09 11:57 upstream 4c8684fe555e 5c2fe346 .config console log report syz C ci-upstream-kasan-gce-root WARNING in input_unregister_device
2021/05/07 11:53 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 83a9d2a05296 f6da8120 .config console log report syz C ci2-upstream-usb WARNING in input_unregister_device
2021/05/14 23:00 upstream bd3c9cdb21a2 8bdd5343 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in input_unregister_device
2022/08/26 01:52 linux-next b5d939c95186 9b5bf4cd .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in input_unregister_device
2021/09/15 04:48 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ae8709b296d8 07e953c1 .config console log report info ci2-upstream-usb WARNING in input_unregister_device
2021/05/07 08:40 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 83a9d2a05296 f6da8120 .config console log report info ci2-upstream-usb WARNING in input_unregister_device
2021/05/06 15:16 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 8404c9fbc84b 06585184 .config console log report info ci2-upstream-usb WARNING in input_unregister_device
* Struck through repros no longer work on HEAD.