Warning: Permanently added '10.128.1.22' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 38.466433][ T83] usb 1-1: new high-speed USB device number 2 using dummy_hcd [ 38.716816][ T83] usb 1-1: Using ep0 maxpacket: 16 [ 38.836472][ T83] usb 1-1: config 0 has an invalid interface number: 133 but max is 0 [ 38.844850][ T83] usb 1-1: config 0 has no interface number 0 [ 38.851230][ T83] usb 1-1: New USB device found, idVendor=0841, idProduct=0001, bcdDevice=c5.d0 [ 38.860347][ T83] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 38.869934][ T83] usb 1-1: config 0 descriptor?? [ 38.907956][ T83] rio500 1-1:0.133: USB Rio found at address 2 [ 39.106625][ T1722] [ 39.108973][ T1722] ====================================================== [ 39.115960][ T1722] WARNING: possible circular locking dependency detected [ 39.122948][ T1722] 5.3.0-rc7+ #0 Not tainted [ 39.127418][ T1722] ------------------------------------------------------ [ 39.134405][ T1722] syz-executor220/1722 is trying to acquire lock: [ 39.140783][ T1722] 00000000ff068a1b (rio500_mutex){+.+.}, at: open_rio+0x16/0xe0 [ 39.148394][ T1722] [ 39.148394][ T1722] but task is already holding lock: [ 39.155727][ T1722] 00000000a02b2d74 (minor_rwsem){++++}, at: usb_open+0x23/0x270 [ 39.163344][ T1722] [ 39.163344][ T1722] which lock already depends on the new lock. [ 39.163344][ T1722] [ 39.173714][ T1722] [ 39.173714][ T1722] the existing dependency chain (in reverse order) is: [ 39.182695][ T1722] [ 39.182695][ T1722] -> #1 (minor_rwsem){++++}: [ 39.189447][ T1722] down_write+0x92/0x150 [ 39.194191][ T1722] usb_register_dev+0x131/0x670 [ 39.199530][ T1722] probe_rio.cold+0x53/0x237 [ 39.204613][ T1722] usb_probe_interface+0x305/0x7a0 [ 39.210213][ T1722] really_probe+0x281/0x6d0 [ 39.215222][ T1722] driver_probe_device+0x101/0x1b0 [ 39.220826][ T1722] __device_attach_driver+0x1c2/0x220 [ 39.226687][ T1722] bus_for_each_drv+0x162/0x1e0 [ 39.232028][ T1722] __device_attach+0x217/0x360 [ 39.237284][ T1722] bus_probe_device+0x1e4/0x290 [ 39.242628][ T1722] device_add+0xae6/0x16f0 [ 39.247538][ T1722] usb_set_configuration+0xdf6/0x1670 [ 39.253404][ T1722] generic_probe+0x9d/0xd5 [ 39.258311][ T1722] usb_probe_device+0x99/0x100 [ 39.263566][ T1722] really_probe+0x281/0x6d0 [ 39.268559][ T1722] driver_probe_device+0x101/0x1b0 [ 39.274209][ T1722] __device_attach_driver+0x1c2/0x220 [ 39.280116][ T1722] bus_for_each_drv+0x162/0x1e0 [ 39.285458][ T1722] __device_attach+0x217/0x360 [ 39.290768][ T1722] bus_probe_device+0x1e4/0x290 [ 39.296110][ T1722] device_add+0xae6/0x16f0 [ 39.301035][ T1722] usb_new_device.cold+0x6a4/0xe79 [ 39.306634][ T1722] hub_event+0x1b5c/0x3640 [ 39.311543][ T1722] process_one_work+0x92b/0x1530 [ 39.316970][ T1722] worker_thread+0x96/0xe20 [ 39.321963][ T1722] kthread+0x318/0x420 [ 39.326524][ T1722] ret_from_fork+0x24/0x30 [ 39.331428][ T1722] [ 39.331428][ T1722] -> #0 (rio500_mutex){+.+.}: [ 39.338250][ T1722] __lock_acquire+0x1f7c/0x3b50 [ 39.343590][ T1722] lock_acquire+0x127/0x320 [ 39.348602][ T1722] __mutex_lock+0x158/0x1360 [ 39.353683][ T1722] open_rio+0x16/0xe0 [ 39.358156][ T1722] usb_open+0x1df/0x270 [ 39.362803][ T1722] chrdev_open+0x219/0x5c0 [ 39.367715][ T1722] do_dentry_open+0x494/0x1120 [ 39.372969][ T1722] path_openat+0x1430/0x3f50 [ 39.378048][ T1722] do_filp_open+0x1a1/0x280 [ 39.383057][ T1722] do_sys_open+0x3c0/0x580 [ 39.387963][ T1722] do_syscall_64+0xb7/0x580 [ 39.392958][ T1722] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.399352][ T1722] [ 39.399352][ T1722] other info that might help us debug this: [ 39.399352][ T1722] [ 39.409551][ T1722] Possible unsafe locking scenario: [ 39.409551][ T1722] [ 39.416970][ T1722] CPU0 CPU1 [ 39.422305][ T1722] ---- ---- [ 39.427639][ T1722] lock(minor_rwsem); [ 39.431676][ T1722] lock(rio500_mutex); [ 39.438316][ T1722] lock(minor_rwsem); [ 39.444870][ T1722] lock(rio500_mutex); [ 39.449007][ T1722] [ 39.449007][ T1722] *** DEADLOCK *** [ 39.449007][ T1722] [ 39.457123][ T1722] 1 lock held by syz-executor220/1722: [ 39.462563][ T1722] #0: 00000000a02b2d74 (minor_rwsem){++++}, at: usb_open+0x23/0x270 [ 39.470604][ T1722] [ 39.470604][ T1722] stack backtrace: [ 39.476466][ T1722] CPU: 1 PID: 1722 Comm: syz-executor220 Not tainted 5.3.0-rc7+ #0 [ 39.484323][ T1722] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.494350][ T1722] Call Trace: [ 39.497613][ T1722] dump_stack+0xca/0x13e [ 39.501842][ T1722] check_noncircular+0x345/0x3e0 [ 39.506753][ T1722] ? print_circular_bug+0x1b0/0x1b0 [ 39.511923][ T1722] ? graph_lock+0x80/0x180 [ 39.516310][ T1722] ? hlock_class+0x120/0x120 [ 39.520886][ T1722] ? mark_lock+0xbc/0x1130 [ 39.525276][ T1722] ? print_shortest_lock_dependencies+0x80/0x80 [ 39.531486][ T1722] __lock_acquire+0x1f7c/0x3b50 [ 39.536323][ T1722] ? mark_held_locks+0xe0/0xe0 [ 39.541056][ T1722] ? hlock_class+0x120/0x120 [ 39.545635][ T1722] ? find_first_zero_bit+0x94/0xb0 [ 39.550731][ T1722] lock_acquire+0x127/0x320 [ 39.555211][ T1722] ? open_rio+0x16/0xe0 [ 39.559346][ T1722] __mutex_lock+0x158/0x1360 [ 39.563958][ T1722] ? open_rio+0x16/0xe0 [ 39.568089][ T1722] ? open_rio+0x16/0xe0 [ 39.572221][ T1722] ? mutex_trylock+0x2c0/0x2c0 [ 39.576965][ T1722] ? lock_acquire+0x127/0x320 [ 39.581631][ T1722] ? usb_open+0x23/0x270 [ 39.585844][ T1722] ? down_read+0x113/0x3f0 [ 39.590230][ T1722] ? m_show+0x4f0/0x4f0 [ 39.594360][ T1722] ? down_read_killable+0x430/0x430 [ 39.599539][ T1722] ? probe_rio+0x70/0x70 [ 39.603753][ T1722] ? open_rio+0x16/0xe0 [ 39.607878][ T1722] open_rio+0x16/0xe0 [ 39.611832][ T1722] ? probe_rio+0x70/0x70 [ 39.616043][ T1722] usb_open+0x1df/0x270 [ 39.620170][ T1722] ? usb_devnode+0xa0/0xa0 [ 39.624558][ T1722] chrdev_open+0x219/0x5c0 [ 39.628949][ T1722] ? cdev_put.part.0+0x50/0x50 [ 39.633682][ T1722] do_dentry_open+0x494/0x1120 [ 39.638419][ T1722] ? cdev_put.part.0+0x50/0x50 [ 39.643166][ T1722] ? chmod_common+0x3c0/0x3c0 [ 39.647831][ T1722] ? inode_permission+0xbe/0x3a0 [ 39.652739][ T1722] path_openat+0x1430/0x3f50 [ 39.657299][ T1722] ? save_stack+0x1b/0x80 [ 39.661630][ T1722] ? do_sys_open+0x294/0x580 [ 39.666207][ T1722] ? do_syscall_64+0xb7/0x580 [ 39.670865][ T1722] ? path_lookupat.isra.0+0x8d0/0x8d0 [ 39.676214][ T1722] ? __lock_acquire+0x145e/0x3b50 [ 39.681211][ T1722] do_filp_open+0x1a1/0x280 [ 39.685686][ T1722] ? may_open_dev+0xf0/0xf0 [ 39.690162][ T1722] ? __alloc_fd+0x46d/0x600 [ 39.694649][ T1722] ? _raw_spin_unlock+0x1f/0x30 [ 39.699468][ T1722] ? __alloc_fd+0x46d/0x600 [ 39.703956][ T1722] do_sys_open+0x3c0/0x580 [ 39.708344][ T1722] ? filp_open+0x70/0x70 [ 39.712558][ T1722] ? switch_fpu_return+0x1c2/0x430 [ 39.717640][ T1722] ? hrtimer_nanosleep+0x510/0x510 [ 39.722809][ T1722] ? trace_hardirqs_off_caller+0x55/0x1e0 [ 39.728501][ T1722] do_syscall_64+0xb7/0x580 [ 39.732978][ T1722] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.738839][ T1722] RIP: 0033:0x401880 [ 39.742707][ T1722] Code: 01 f0 ff ff 0f 83 80 0d 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d 0d 05 2d 00 00 75 14 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 54 0d 00 00 c3 48 83 ec 08 e8 ba 02 00 00 [ 39.762280][ T1722] RSP: 002b:00007ffcfca5b718 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 39.770660][ T1722] RAX: ffffffffffffffda RBX: 00007ffcfca5bbd0 RCX: 0000000000401880 [ 39.778603][ T1722] RDX: 0000000000000000 RSI: 0000000000000002 RDI: 00007ffcfca5b730 [ 39.786559][ T1722] RBP: 0000000000000000 R08: 0000000000000000 R09: 000000000000000f [ 39.794554][ T1722] R10: 0000000000000064 R11: 0000000000000246 R12: 0000000000402a60 [ 39.802502][ T1722] R13: 0000000000402af0 R14: 0000000000000000 R15: 0000000000