syzbot


INFO: trying to register non-static key in ni6501_detach

Status: fixed on 2019/05/27 12:48
Subsystems: staging usb
[Documentation on labels]
Reported-by: syzbot+cf4f2b6c24aff0a3edf6@syzkaller.appspotmail.com
Fix commit: 660cf4ce9d0f staging: comedi: ni_usb6501: Fix use of uninitialized mutex
First crash: 2050d, last: 2006d
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 5.0 000/115] 5.0.10-stable review 124 (124) 2019/04/27 06:49
[PATCH 4.9 00/44] 4.9.171-stable review 50 (50) 2019/04/25 21:40
[PATCH 4.19 00/96] 4.19.37-stable review 102 (102) 2019/04/25 19:38
[PATCH 4.14 00/70] 4.14.114-stable review 76 (76) 2019/04/25 19:38
[PATCH 4.4 000/168] 4.4.179-stable review 178 (178) 2019/04/25 19:37
[PATCH 0/2] staging: comedi: ni_usb6501: Fix a couple of bugs 3 (3) 2019/04/15 11:43
INFO: trying to register non-static key in ni6501_detach 0 (1) 2019/04/14 19:56

Sample crash report:
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 1-1: config 0 descriptor??
usb 1-1: string descriptor 0 read error: -71
comedi comedi0: Wrong number of endpoints
ni6501 1-1:0.233: driver 'ni6501' failed to auto-configure device.
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 0 PID: 585 Comm: kworker/0:3 Not tainted 5.1.0-rc4-319354-g9a33b36 #3
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+0xe8/0x16e lib/dump_stack.c:113
 assign_lock_key kernel/locking/lockdep.c:786 [inline]
 register_lock_class+0x11b8/0x1250 kernel/locking/lockdep.c:1095
 __lock_acquire+0xfb/0x37c0 kernel/locking/lockdep.c:3582
 lock_acquire+0x10d/0x2f0 kernel/locking/lockdep.c:4211
 __mutex_lock_common kernel/locking/mutex.c:925 [inline]
 __mutex_lock+0xfe/0x12b0 kernel/locking/mutex.c:1072
 ni6501_detach+0x5b/0x110 drivers/staging/comedi/drivers/ni_usb6501.c:567
 comedi_device_detach+0xed/0x800 drivers/staging/comedi/drivers.c:204
 comedi_device_cleanup.part.0+0x68/0x140 drivers/staging/comedi/comedi_fops.c:156
 comedi_device_cleanup drivers/staging/comedi/comedi_fops.c:187 [inline]
 comedi_free_board_dev.part.0+0x16/0x90 drivers/staging/comedi/comedi_fops.c:190
 comedi_free_board_dev drivers/staging/comedi/comedi_fops.c:189 [inline]
 comedi_release_hardware_device+0x111/0x140 drivers/staging/comedi/comedi_fops.c:2880
 comedi_auto_config.cold+0x124/0x1b0 drivers/staging/comedi/drivers.c:1068
 usb_probe_interface+0x31d/0x820 drivers/usb/core/driver.c:361
 really_probe+0x2da/0xb10 drivers/base/dd.c:509
 driver_probe_device+0x21d/0x350 drivers/base/dd.c:671
 __device_attach_driver+0x1d8/0x290 drivers/base/dd.c:778
 bus_for_each_drv+0x163/0x1e0 drivers/base/bus.c:454
 __device_attach+0x223/0x3a0 drivers/base/dd.c:844
 bus_probe_device+0x1f1/0x2a0 drivers/base/bus.c:514
 device_add+0xad2/0x16e0 drivers/base/core.c:2106
 usb_set_configuration+0xdf7/0x1740 drivers/usb/core/message.c:2021
 generic_probe+0xa2/0xda drivers/usb/core/generic.c:210
 usb_probe_device+0xc0/0x150 drivers/usb/core/driver.c:266
 really_probe+0x2da/0xb10 drivers/base/dd.c:509
 driver_probe_device+0x21d/0x350 drivers/base/dd.c:671
 __device_attach_driver+0x1d8/0x290 drivers/base/dd.c:778
 bus_for_each_drv+0x163/0x1e0 drivers/base/bus.c:454
 __device_attach+0x223/0x3a0 drivers/base/dd.c:844
 bus_probe_device+0x1f1/0x2a0 drivers/base/bus.c:514
 device_add+0xad2/0x16e0 drivers/base/core.c:2106
 usb_new_device.cold+0x537/0xccf drivers/usb/core/hub.c:2534
 hub_port_connect drivers/usb/core/hub.c:5089 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5204 [inline]
 port_event drivers/usb/core/hub.c:5350 [inline]
 hub_event+0x138e/0x3b00 drivers/usb/core/hub.c:5432
 process_one_work+0x90f/0x1580 kernel/workqueue.c:2269
 worker_thread+0x9b/0xe20 kernel/workqueue.c:2415
 kthread+0x313/0x420 kernel/kthread.c:253
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352

Crashes (127):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/04/13 03:51 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb c402d8f1 .config console log report syz C ci2-upstream-usb
2019/05/27 02:55 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 85c57315 .config console log report ci2-upstream-usb
2019/05/26 22:33 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 85c57315 .config console log report ci2-upstream-usb
2019/05/26 11:23 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 85c57315 .config console log report ci2-upstream-usb
2019/05/26 02:35 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 85c57315 .config console log report ci2-upstream-usb
2019/05/26 00:14 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 85c57315 .config console log report ci2-upstream-usb
2019/05/25 13:35 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 85c57315 .config console log report ci2-upstream-usb
2019/05/24 23:40 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 85c57315 .config console log report ci2-upstream-usb
2019/05/24 13:04 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 0dadcd9d .config console log report ci2-upstream-usb
2019/05/24 05:06 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 0dadcd9d .config console log report ci2-upstream-usb
2019/05/23 07:14 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 0dadcd9d .config console log report ci2-upstream-usb
2019/05/22 23:22 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 84b9d384 .config console log report ci2-upstream-usb
2019/05/22 22:10 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 84b9d384 .config console log report ci2-upstream-usb
2019/05/21 14:40 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 8285069f .config console log report ci2-upstream-usb
2019/05/21 11:25 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 8285069f .config console log report ci2-upstream-usb
2019/05/21 06:13 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 8285069f .config console log report ci2-upstream-usb
2019/05/20 22:49 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce b5641f32 .config console log report ci2-upstream-usb
2019/05/20 11:27 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 5a4461b0 .config console log report ci2-upstream-usb
2019/05/20 04:21 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 5a4461b0 .config console log report ci2-upstream-usb
2019/05/19 02:40 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 5a4461b0 .config console log report ci2-upstream-usb
2019/05/19 01:21 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 5a4461b0 .config console log report ci2-upstream-usb
2019/05/18 20:31 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 5a4461b0 .config console log report ci2-upstream-usb
2019/05/18 15:29 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 5a4461b0 .config console log report ci2-upstream-usb
2019/05/18 14:15 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 5a4461b0 .config console log report ci2-upstream-usb
2019/05/18 08:57 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 5a4461b0 .config console log report ci2-upstream-usb
2019/05/18 04:46 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 40046286 .config console log report ci2-upstream-usb
2019/05/17 16:30 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 2755003a .config console log report ci2-upstream-usb
2019/05/17 09:36 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 2755003a .config console log report ci2-upstream-usb
2019/05/17 05:26 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 7fb690f3 .config console log report ci2-upstream-usb
2019/05/17 01:25 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 7fb690f3 .config console log report ci2-upstream-usb
2019/05/16 08:20 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 051c49fe .config console log report ci2-upstream-usb
2019/05/16 04:25 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 27b25dbc .config console log report ci2-upstream-usb
2019/05/16 02:49 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 27b25dbc .config console log report ci2-upstream-usb
2019/05/15 08:30 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce bd4e3ac7 .config console log report ci2-upstream-usb
2019/05/15 03:00 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 2e630085 .config console log report ci2-upstream-usb
2019/05/15 01:57 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 2e630085 .config console log report ci2-upstream-usb
2019/05/14 23:12 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 2e630085 .config console log report ci2-upstream-usb
2019/05/14 19:27 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 2e630085 .config console log report ci2-upstream-usb
2019/05/14 08:25 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce ada3c44c .config console log report ci2-upstream-usb
2019/05/14 04:58 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 7c305b44 .config console log report ci2-upstream-usb
2019/05/12 21:21 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 5f302c04 .config console log report ci2-upstream-usb
2019/05/12 16:26 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce c017728b .config console log report ci2-upstream-usb
2019/05/12 07:35 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce c017728b .config console log report ci2-upstream-usb
2019/05/12 05:37 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 0637a7f0 .config console log report ci2-upstream-usb
2019/05/12 03:54 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 0637a7f0 .config console log report ci2-upstream-usb
2019/05/11 16:47 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 46caad94 .config console log report ci2-upstream-usb
2019/05/11 11:45 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 46caad94 .config console log report ci2-upstream-usb
2019/05/10 20:18 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 46caad94 .config console log report ci2-upstream-usb
* Struck through repros no longer work on HEAD.