Warning: Permanently added '10.128.0.194' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 81.214688][ T8488] [ 81.217099][ T8488] ====================================================== [ 81.224096][ T8488] WARNING: possible circular locking dependency detected [ 81.231091][ T8488] 5.14.0-rc5-syzkaller #0 Not tainted [ 81.236436][ T8488] ------------------------------------------------------ [ 81.243425][ T8488] systemd-udevd/8488 is trying to acquire lock: [ 81.249640][ T8488] ffffffff8c487be8 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 81.258066][ T8488] [ 81.258066][ T8488] but task is already holding lock: [ 81.265405][ T8488] ffffffff8c1f4188 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 81.274863][ T8488] [ 81.274863][ T8488] which lock already depends on the new lock. [ 81.274863][ T8488] [ 81.285249][ T8488] [ 81.285249][ T8488] the existing dependency chain (in reverse order) is: [ 81.294236][ T8488] [ 81.294236][ T8488] -> #3 (major_names_lock){+.+.}-{3:3}: [ 81.301943][ T8488] __mutex_lock+0x12a/0x10a0 [ 81.307049][ T8488] __register_blkdev+0x2b/0x3e0 [ 81.312404][ T8488] register_mtd_blktrans+0x85/0x3c0 [ 81.318105][ T8488] do_one_initcall+0x103/0x650 [ 81.323384][ T8488] kernel_init_freeable+0x6b8/0x741 [ 81.329087][ T8488] kernel_init+0x1a/0x1d0 [ 81.333914][ T8488] ret_from_fork+0x1f/0x30 [ 81.338847][ T8488] [ 81.338847][ T8488] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 81.346460][ T8488] __mutex_lock+0x12a/0x10a0 [ 81.351563][ T8488] blktrans_open+0x69/0x600 [ 81.356577][ T8488] blkdev_get_whole+0xa1/0x420 [ 81.361845][ T8488] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 81.367897][ T8488] blkdev_open+0x295/0x300 [ 81.372831][ T8488] do_dentry_open+0x4c8/0x11d0 [ 81.378113][ T8488] path_openat+0x1c23/0x27f0 [ 81.383215][ T8488] do_filp_open+0x1aa/0x400 [ 81.388223][ T8488] do_sys_openat2+0x16d/0x420 [ 81.393404][ T8488] __x64_sys_open+0x119/0x1c0 [ 81.398596][ T8488] do_syscall_64+0x35/0xb0 [ 81.403528][ T8488] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 81.409927][ T8488] [ 81.409927][ T8488] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 81.417719][ T8488] __mutex_lock+0x12a/0x10a0 [ 81.422815][ T8488] del_gendisk+0x8b/0x770 [ 81.427647][ T8488] loop_control_ioctl+0x3b5/0x450 [ 81.433180][ T8488] __x64_sys_ioctl+0x193/0x200 [ 81.438445][ T8488] do_syscall_64+0x35/0xb0 [ 81.443381][ T8488] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 81.449779][ T8488] [ 81.449779][ T8488] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 81.457326][ T8488] __lock_acquire+0x2a07/0x54a0 [ 81.462765][ T8488] lock_acquire+0x1ab/0x510 [ 81.467769][ T8488] __mutex_lock+0x12a/0x10a0 [ 81.472877][ T8488] loop_add+0x9c/0x8c0 [ 81.477450][ T8488] loop_probe+0x6a/0x80 [ 81.482114][ T8488] blk_request_module+0x111/0x1d0 [ 81.487642][ T8488] blkdev_get_no_open+0x1d5/0x250 [ 81.493165][ T8488] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 81.499122][ T8488] blkdev_open+0x295/0x300 [ 81.504038][ T8488] do_dentry_open+0x4c8/0x11d0 [ 81.509323][ T8488] path_openat+0x1c23/0x27f0 [ 81.514437][ T8488] do_filp_open+0x1aa/0x400 [ 81.519457][ T8488] do_sys_openat2+0x16d/0x420 [ 81.524639][ T8488] __x64_sys_open+0x119/0x1c0 [ 81.529820][ T8488] do_syscall_64+0x35/0xb0 [ 81.534740][ T8488] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 81.541133][ T8488] [ 81.541133][ T8488] other info that might help us debug this: [ 81.541133][ T8488] [ 81.551335][ T8488] Chain exists of: [ 81.551335][ T8488] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 81.551335][ T8488] [ 81.564341][ T8488] Possible unsafe locking scenario: [ 81.564341][ T8488] [ 81.571769][ T8488] CPU0 CPU1 [ 81.577112][ T8488] ---- ---- [ 81.582455][ T8488] lock(major_names_lock); [ 81.586945][ T8488] lock(mtd_table_mutex); [ 81.593858][ T8488] lock(major_names_lock); [ 81.600861][ T8488] lock(loop_ctl_mutex); [ 81.605167][ T8488] [ 81.605167][ T8488] *** DEADLOCK *** [ 81.605167][ T8488] [ 81.613284][ T8488] 1 lock held by systemd-udevd/8488: [ 81.618544][ T8488] #0: ffffffff8c1f4188 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 81.628530][ T8488] [ 81.628530][ T8488] stack backtrace: [ 81.634415][ T8488] CPU: 0 PID: 8488 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 81.642984][ T8488] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 81.653022][ T8488] Call Trace: [ 81.656294][ T8488] dump_stack_lvl+0xcd/0x134 [ 81.660896][ T8488] check_noncircular+0x25f/0x2e0 [ 81.665817][ T8488] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 81.671796][ T8488] ? print_circular_bug+0x1e0/0x1e0 [ 81.676980][ T8488] ? lock_chain_count+0x20/0x20 [ 81.681821][ T8488] ? lockdep_lock+0xc6/0x200 [ 81.686404][ T8488] ? call_rcu_zapped+0xb0/0xb0 [ 81.691160][ T8488] __lock_acquire+0x2a07/0x54a0 [ 81.695997][ T8488] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 81.701964][ T8488] lock_acquire+0x1ab/0x510 [ 81.706459][ T8488] ? loop_add+0x9c/0x8c0 [ 81.710696][ T8488] ? lock_release+0x720/0x720 [ 81.715348][ T8488] ? path_openat+0x1c23/0x27f0 [ 81.720091][ T8488] ? do_filp_open+0x1aa/0x400 [ 81.724747][ T8488] ? do_sys_openat2+0x16d/0x420 [ 81.729580][ T8488] ? __x64_sys_open+0x119/0x1c0 [ 81.734413][ T8488] __mutex_lock+0x12a/0x10a0 [ 81.738993][ T8488] ? loop_add+0x9c/0x8c0 [ 81.743215][ T8488] ? loop_add+0x9c/0x8c0 [ 81.747441][ T8488] ? mutex_lock_io_nested+0xf00/0xf00 [ 81.752825][ T8488] ? rcu_read_lock_sched_held+0x3a/0x70 [ 81.758366][ T8488] loop_add+0x9c/0x8c0 [ 81.762429][ T8488] ? find_inode_fast+0x16f/0x220 [ 81.767349][ T8488] loop_probe+0x6a/0x80 [ 81.771485][ T8488] ? loop_add+0x8c0/0x8c0 [ 81.775805][ T8488] blk_request_module+0x111/0x1d0 [ 81.780812][ T8488] blkdev_get_no_open+0x1d5/0x250 [ 81.785816][ T8488] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 81.791254][ T8488] ? devcgroup_check_permission+0x1bb/0x410 [ 81.797128][ T8488] blkdev_open+0x295/0x300 [ 81.801533][ T8488] do_dentry_open+0x4c8/0x11d0 [ 81.806281][ T8488] ? blkdev_get_by_dev+0x80/0x80 [ 81.811208][ T8488] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 81.817432][ T8488] ? may_open+0x1f6/0x420 [ 81.821752][ T8488] path_openat+0x1c23/0x27f0 [ 81.826338][ T8488] ? path_lookupat+0x860/0x860 [ 81.831082][ T8488] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 81.837047][ T8488] do_filp_open+0x1aa/0x400 [ 81.841528][ T8488] ? may_open_dev+0xf0/0xf0 [ 81.846009][ T8488] ? rwlock_bug.part.0+0x90/0x90 [ 81.850926][ T8488] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 81.857148][ T8488] ? _find_next_bit+0x1e3/0x260 [ 81.861985][ T8488] ? _raw_spin_unlock+0x24/0x40 [ 81.866823][ T8488] ? alloc_fd+0x2f0/0x670 [ 81.871136][ T8488] do_sys_openat2+0x16d/0x420 [ 81.875795][ T8488] ? build_open_flags+0x6f0/0x6f0 [ 81.880802][ T8488] ? __context_tracking_exit+0xb8/0xe0 [ 81.886262][ T8488] __x64_sys_open+0x119/0x1c0 [ 81.890920][ T8488] ? do_sys_open+0x140/0x140 [ 81.895494][ T8488] ? __secure_computing+0x104/0x360 [ 81.900674][ T8488] do_syscall_64+0x35/0xb0 [ 81.905074][ T8488] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 81.910950][ T8488] RIP: 0033:0x7f2b2e93d840 [ 81.915345][ T8488] Code: 73 01 c3 48 8b 0d 68 77 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 89 bb 20 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 1e f6 ff ff 48 89 04 24 [ 81.934930][ T8488] RSP: 002b:00007ffc3dbdd578 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 81.943409][ T8488] RAX: ffffffffffffffda RBX: 0000556b0994c380 RCX: 00007f2b2e93d840 [ 81.951360][ T8488] RDX: 0000556b092cffe3 RSI: 00000000000a0800 RDI: 0000556b0994e140 [ 81.959308][ T8488] RBP: 00007ffc3dbdd6f0 R08: 0000556b092cf670 R09: 0000000000000010 [ 81.967257][ T8488] R10: 0000c08000000000 R11: 0000000000000246 R12: 00007ffc3dbdd640 [ 81.975204][ T8488] R13: 0000556b0994d260 R14: 0000000000000003 R15: 000000000000000e executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program