syzbot


INFO: trying to register non-static key in ida_destroy

Status: fixed on 2019/12/13 00:31
Subsystems: usb media
[Documentation on labels]
Reported-by: syzbot+c86454eb3af9e8a4da20@syzkaller.appspotmail.com
Fix commit: 8c279e9394ca media: uvcvideo: Fix error path in control parsing failure
First crash: 1964d, last: 1841d
Discussions (10)
Title Replies (including bot) Last reply
[PATCH 4.19 000/306] 4.19.87-stable review 359 (359) 2020/01/28 13:29
[PATCH 4.14 000/211] 4.14.157-stable review 220 (220) 2019/11/29 18:48
[PATCH 5.4 00/66] 5.4.1-stable review 75 (75) 2019/11/29 08:52
[PATCH 4.9 000/151] 4.9.204-stable review 156 (156) 2019/11/29 00:03
[PATCH 5.3 00/95] 5.3.14-stable review 100 (100) 2019/11/28 21:29
Reminder: 67 active syzbot reports in usb subsystem 1 (1) 2019/10/04 03:38
Reminder: 52 active syzbot reports in usb subsystem 4 (4) 2019/09/19 19:01
Reminder: 52 active syzbot reports in usb subsystem 1 (1) 2019/08/22 03:28
[PATCH] media: uvc: Fix error path in control parsing failure 1 (1) 2019/08/14 15:28
INFO: trying to register non-static key in ida_destroy 0 (1) 2019/07/29 16:58

Sample crash report:
usb 1-1: config 0 has no interface number 0
usb 1-1: New USB device found, idVendor=174f, idProduct=5212, bcdDevice=1e.19
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 1-1: config 0 descriptor??
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 1 PID: 22 Comm: kworker/1:1 Not tainted 5.4.0-rc6+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0xca/0x13e lib/dump_stack.c:113
 assign_lock_key kernel/locking/lockdep.c:881 [inline]
 register_lock_class+0x1022/0x11d0 kernel/locking/lockdep.c:1190
 __lock_acquire+0xfc/0x3b60 kernel/locking/lockdep.c:3837
 lock_acquire+0x127/0x320 kernel/locking/lockdep.c:4487
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x32/0x50 kernel/locking/spinlock.c:159
 ida_destroy+0xb0/0x3a0 lib/idr.c:551
 media_device_cleanup+0x15/0x70 drivers/media/mc/mc-device.c:722
 uvc_delete+0x8e/0x2f0 drivers/media/usb/uvc/uvc_driver.c:1872
 kref_put include/linux/kref.h:65 [inline]
 uvc_probe+0xf95/0x64e4 drivers/media/usb/uvc/uvc_driver.c:2223
 usb_probe_interface+0x305/0x7a0 drivers/usb/core/driver.c:361
 really_probe+0x281/0x6d0 drivers/base/dd.c:548
 driver_probe_device+0x104/0x210 drivers/base/dd.c:721
 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:828
 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:430
 __device_attach+0x217/0x360 drivers/base/dd.c:894
 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:490
 device_add+0xae6/0x16f0 drivers/base/core.c:2202
 usb_set_configuration+0xdf6/0x1670 drivers/usb/core/message.c:2023
 generic_probe+0x9d/0xd5 drivers/usb/core/generic.c:210
 usb_probe_device+0x99/0x100 drivers/usb/core/driver.c:266
 really_probe+0x281/0x6d0 drivers/base/dd.c:548
 driver_probe_device+0x104/0x210 drivers/base/dd.c:721
 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:828
 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:430
 __device_attach+0x217/0x360 drivers/base/dd.c:894
 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:490
 device_add+0xae6/0x16f0 drivers/base/core.c:2202
 usb_new_device.cold+0x6a4/0xe79 drivers/usb/core/hub.c:2537
 hub_port_connect drivers/usb/core/hub.c:5184 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5324 [inline]
 port_event drivers/usb/core/hub.c:5470 [inline]
 hub_event+0x1df8/0x3800 drivers/usb/core/hub.c:5552
 process_one_work+0x92b/0x1530 kernel/workqueue.c:2269

Crashes (4272):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/15 18:56 https://github.com/google/kasan.git usb-fuzzer 3183c03757f8 79248ee8 .config console log report syz C ci2-upstream-usb
2019/11/06 21:33 https://github.com/google/kasan.git usb-fuzzer d60bbfea36c1 da505f84 .config console log report syz C ci2-upstream-usb
2019/11/05 20:43 https://github.com/google/kasan.git usb-fuzzer b1aa9d834830 af5c522d .config console log report syz C ci2-upstream-usb
2019/11/05 18:31 https://github.com/google/kasan.git usb-fuzzer b1aa9d834830 af5c522d .config console log report syz C ci2-upstream-usb
2019/10/29 21:13 https://github.com/google/kasan.git usb-fuzzer ff6409a6ec35 5ea87a66 .config console log report syz C ci2-upstream-usb
2019/10/22 23:00 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 4ee855e7 .config console log report syz C ci2-upstream-usb
2019/10/02 17:27 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 2e29b534 .config console log report syz C ci2-upstream-usb
2019/09/20 17:08 https://github.com/google/kasan.git usb-fuzzer e0bd8d794fc9 d96e88f3 .config console log report syz C ci2-upstream-usb
2019/08/15 00:55 https://github.com/google/kasan.git usb-fuzzer d0847550e22d 0d298d6b .config console log report syz C ci2-upstream-usb
2019/08/09 06:37 https://github.com/google/kasan.git usb-fuzzer e96407b49762 ede31a9b .config console log report syz C ci2-upstream-usb
2019/08/07 17:18 https://github.com/google/kasan.git usb-fuzzer e96407b49762 e6ebef88 .config console log report syz C ci2-upstream-usb
2019/07/29 15:41 https://github.com/google/kasan.git usb-fuzzer 7f7867ff95bf f67095ee .config console log report syz C ci2-upstream-usb
2019/11/29 15:04 https://github.com/google/kasan.git usb-fuzzer da06441bb485 4f7e1d0f .config console log report ci2-upstream-usb
2019/11/29 13:54 https://github.com/google/kasan.git usb-fuzzer da06441bb485 4f7e1d0f .config console log report ci2-upstream-usb
2019/11/29 12:53 https://github.com/google/kasan.git usb-fuzzer da06441bb485 4f7e1d0f .config console log report ci2-upstream-usb
2019/11/29 11:47 https://github.com/google/kasan.git usb-fuzzer da06441bb485 4f7e1d0f .config console log report ci2-upstream-usb
2019/11/29 11:40 https://github.com/google/kasan.git usb-fuzzer da06441bb485 4f7e1d0f .config console log report ci2-upstream-usb
2019/11/29 09:49 https://github.com/google/kasan.git usb-fuzzer da06441bb485 76357d6f .config console log report ci2-upstream-usb
2019/11/29 08:20 https://github.com/google/kasan.git usb-fuzzer da06441bb485 76357d6f .config console log report ci2-upstream-usb
2019/11/29 07:11 https://github.com/google/kasan.git usb-fuzzer da06441bb485 76357d6f .config console log report ci2-upstream-usb
2019/11/29 05:46 https://github.com/google/kasan.git usb-fuzzer da06441bb485 76357d6f .config console log report ci2-upstream-usb
2019/11/29 04:15 https://github.com/google/kasan.git usb-fuzzer da06441bb485 76357d6f .config console log report ci2-upstream-usb
2019/11/29 03:14 https://github.com/google/kasan.git usb-fuzzer da06441bb485 76357d6f .config console log report ci2-upstream-usb
2019/11/29 01:14 https://github.com/google/kasan.git usb-fuzzer da06441bb485 76357d6f .config console log report ci2-upstream-usb
2019/11/29 00:13 https://github.com/google/kasan.git usb-fuzzer da06441bb485 76357d6f .config console log report ci2-upstream-usb
2019/11/28 22:58 https://github.com/google/kasan.git usb-fuzzer da06441bb485 76357d6f .config console log report ci2-upstream-usb
2019/11/28 21:15 https://github.com/google/kasan.git usb-fuzzer da06441bb485 97264cb1 .config console log report ci2-upstream-usb
2019/11/28 20:03 https://github.com/google/kasan.git usb-fuzzer da06441bb485 97264cb1 .config console log report ci2-upstream-usb
2019/11/28 19:38 https://github.com/google/kasan.git usb-fuzzer da06441bb485 97264cb1 .config console log report ci2-upstream-usb
2019/11/28 18:31 https://github.com/google/kasan.git usb-fuzzer da06441bb485 97264cb1 .config console log report ci2-upstream-usb
2019/11/28 17:26 https://github.com/google/kasan.git usb-fuzzer da06441bb485 97264cb1 .config console log report ci2-upstream-usb
2019/11/28 16:17 https://github.com/google/kasan.git usb-fuzzer da06441bb485 97264cb1 .config console log report ci2-upstream-usb
2019/11/28 16:14 https://github.com/google/kasan.git usb-fuzzer da06441bb485 97264cb1 .config console log report ci2-upstream-usb
2019/11/28 15:07 https://github.com/google/kasan.git usb-fuzzer da06441bb485 97264cb1 .config console log report ci2-upstream-usb
2019/11/28 13:27 https://github.com/google/kasan.git usb-fuzzer da06441bb485 97264cb1 .config console log report ci2-upstream-usb
2019/11/28 12:15 https://github.com/google/kasan.git usb-fuzzer da06441bb485 97264cb1 .config console log report ci2-upstream-usb
2019/11/28 11:00 https://github.com/google/kasan.git usb-fuzzer da06441bb485 97264cb1 .config console log report ci2-upstream-usb
2019/11/28 08:43 https://github.com/google/kasan.git usb-fuzzer da06441bb485 0d63f89c .config console log report ci2-upstream-usb
2019/11/28 07:22 https://github.com/google/kasan.git usb-fuzzer da06441bb485 0d63f89c .config console log report ci2-upstream-usb
2019/11/28 05:51 https://github.com/google/kasan.git usb-fuzzer da06441bb485 0d63f89c .config console log report ci2-upstream-usb
2019/11/28 04:41 https://github.com/google/kasan.git usb-fuzzer da06441bb485 0d63f89c .config console log report ci2-upstream-usb
2019/11/28 03:12 https://github.com/google/kasan.git usb-fuzzer da06441bb485 0d63f89c .config console log report ci2-upstream-usb
2019/11/28 02:19 https://github.com/google/kasan.git usb-fuzzer da06441bb485 0d63f89c .config console log report ci2-upstream-usb
2019/11/28 00:39 https://github.com/google/kasan.git usb-fuzzer da06441bb485 0d63f89c .config console log report ci2-upstream-usb
2019/11/27 22:31 https://github.com/google/kasan.git usb-fuzzer da06441bb485 0d63f89c .config console log report ci2-upstream-usb
2019/11/27 21:16 https://github.com/google/kasan.git usb-fuzzer da06441bb485 0d63f89c .config console log report ci2-upstream-usb
2019/11/27 19:38 https://github.com/google/kasan.git usb-fuzzer da06441bb485 0d63f89c .config console log report ci2-upstream-usb
2019/11/27 19:14 https://github.com/google/kasan.git usb-fuzzer da06441bb485 0d63f89c .config console log report ci2-upstream-usb
2019/11/27 18:04 https://github.com/google/kasan.git usb-fuzzer da06441bb485 0d63f89c .config console log report ci2-upstream-usb
2019/11/27 16:52 https://github.com/google/kasan.git usb-fuzzer da06441bb485 0d63f89c .config console log report ci2-upstream-usb
2019/11/27 14:37 https://github.com/google/kasan.git usb-fuzzer da06441bb485 1048481f .config console log report ci2-upstream-usb
2019/11/27 13:27 https://github.com/google/kasan.git usb-fuzzer da06441bb485 1048481f .config console log report ci2-upstream-usb
2019/11/27 12:24 https://github.com/google/kasan.git usb-fuzzer da06441bb485 1048481f .config console log report ci2-upstream-usb
* Struck through repros no longer work on HEAD.