Warning: Permanently added '10.128.1.99' (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 executing program executing program executing program executing program syzkaller login: [ 71.762202][ T8518] [ 71.764563][ T8518] ====================================================== [ 71.771822][ T8518] WARNING: possible circular locking dependency detected [ 71.778915][ T8518] 5.14.0-rc5-syzkaller #0 Not tainted [ 71.784371][ T8518] ------------------------------------------------------ [ 71.791384][ T8518] systemd-udevd/8518 is trying to acquire lock: [ 71.797600][ T8518] ffffffff8c487be8 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 71.806030][ T8518] [ 71.806030][ T8518] but task is already holding lock: [ 71.813384][ T8518] ffffffff8c1f4188 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 71.822874][ T8518] [ 71.822874][ T8518] which lock already depends on the new lock. [ 71.822874][ T8518] [ 71.833441][ T8518] [ 71.833441][ T8518] the existing dependency chain (in reverse order) is: [ 71.842787][ T8518] [ 71.842787][ T8518] -> #3 (major_names_lock){+.+.}-{3:3}: [ 71.850519][ T8518] __mutex_lock+0x12a/0x10a0 [ 71.855648][ T8518] __register_blkdev+0x2b/0x3e0 [ 71.861210][ T8518] register_mtd_blktrans+0x85/0x3c0 [ 71.866975][ T8518] do_one_initcall+0x103/0x650 [ 71.872521][ T8518] kernel_init_freeable+0x6b8/0x741 [ 71.878237][ T8518] kernel_init+0x1a/0x1d0 [ 71.883102][ T8518] ret_from_fork+0x1f/0x30 [ 71.888050][ T8518] [ 71.888050][ T8518] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 71.895692][ T8518] __mutex_lock+0x12a/0x10a0 [ 71.900888][ T8518] blktrans_open+0x69/0x600 [ 71.905906][ T8518] blkdev_get_whole+0xa1/0x420 [ 71.911182][ T8518] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 71.917242][ T8518] blkdev_open+0x295/0x300 [ 71.922186][ T8518] do_dentry_open+0x4c8/0x11d0 [ 71.927556][ T8518] path_openat+0x1c23/0x27f0 [ 71.932660][ T8518] do_filp_open+0x1aa/0x400 [ 71.937688][ T8518] do_sys_openat2+0x16d/0x420 [ 71.943146][ T8518] __x64_sys_open+0x119/0x1c0 [ 71.948438][ T8518] do_syscall_64+0x35/0xb0 [ 71.953546][ T8518] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 71.960149][ T8518] [ 71.960149][ T8518] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 71.968131][ T8518] __mutex_lock+0x12a/0x10a0 [ 71.973345][ T8518] del_gendisk+0x8b/0x770 [ 71.978229][ T8518] loop_control_ioctl+0x3b5/0x450 [ 71.983769][ T8518] __x64_sys_ioctl+0x193/0x200 [ 71.989058][ T8518] do_syscall_64+0x35/0xb0 [ 71.994077][ T8518] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 72.000485][ T8518] [ 72.000485][ T8518] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 72.008034][ T8518] __lock_acquire+0x2a07/0x54a0 [ 72.013421][ T8518] lock_acquire+0x1ab/0x510 [ 72.018441][ T8518] __mutex_lock+0x12a/0x10a0 [ 72.023548][ T8518] loop_add+0x9c/0x8c0 [ 72.028131][ T8518] loop_probe+0x6a/0x80 [ 72.032808][ T8518] blk_request_module+0x111/0x1d0 [ 72.038350][ T8518] blkdev_get_no_open+0x1d5/0x250 [ 72.043898][ T8518] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 72.050377][ T8518] blkdev_open+0x295/0x300 [ 72.055325][ T8518] do_dentry_open+0x4c8/0x11d0 [ 72.060605][ T8518] path_openat+0x1c23/0x27f0 [ 72.066315][ T8518] do_filp_open+0x1aa/0x400 [ 72.071777][ T8518] do_sys_openat2+0x16d/0x420 [ 72.076971][ T8518] __x64_sys_open+0x119/0x1c0 [ 72.082177][ T8518] do_syscall_64+0x35/0xb0 [ 72.087129][ T8518] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 72.093548][ T8518] [ 72.093548][ T8518] other info that might help us debug this: [ 72.093548][ T8518] [ 72.103773][ T8518] Chain exists of: [ 72.103773][ T8518] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 72.103773][ T8518] [ 72.116799][ T8518] Possible unsafe locking scenario: [ 72.116799][ T8518] [ 72.124332][ T8518] CPU0 CPU1 [ 72.129691][ T8518] ---- ---- [ 72.135046][ T8518] lock(major_names_lock); [ 72.139561][ T8518] lock(mtd_table_mutex); [ 72.146695][ T8518] lock(major_names_lock); [ 72.153839][ T8518] lock(loop_ctl_mutex); [ 72.158470][ T8518] [ 72.158470][ T8518] *** DEADLOCK *** [ 72.158470][ T8518] [ 72.166873][ T8518] 1 lock held by systemd-udevd/8518: [ 72.172148][ T8518] #0: ffffffff8c1f4188 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 72.182199][ T8518] [ 72.182199][ T8518] stack backtrace: [ 72.188099][ T8518] CPU: 0 PID: 8518 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 72.196683][ T8518] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 72.206906][ T8518] Call Trace: [ 72.210180][ T8518] dump_stack_lvl+0xcd/0x134 [ 72.214776][ T8518] check_noncircular+0x25f/0x2e0 [ 72.219710][ T8518] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 72.225696][ T8518] ? print_circular_bug+0x1e0/0x1e0 [ 72.230899][ T8518] ? lock_chain_count+0x20/0x20 [ 72.235857][ T8518] ? lockdep_lock+0xc6/0x200 [ 72.240546][ T8518] ? call_rcu_zapped+0xb0/0xb0 [ 72.245319][ T8518] __lock_acquire+0x2a07/0x54a0 [ 72.250358][ T8518] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 72.256385][ T8518] lock_acquire+0x1ab/0x510 [ 72.260899][ T8518] ? loop_add+0x9c/0x8c0 [ 72.265163][ T8518] ? lock_release+0x720/0x720 [ 72.269931][ T8518] ? path_openat+0x1c23/0x27f0 [ 72.274729][ T8518] ? do_filp_open+0x1aa/0x400 [ 72.279497][ T8518] ? do_sys_openat2+0x16d/0x420 [ 72.284373][ T8518] ? __x64_sys_open+0x119/0x1c0 [ 72.289252][ T8518] __mutex_lock+0x12a/0x10a0 [ 72.293846][ T8518] ? loop_add+0x9c/0x8c0 [ 72.298106][ T8518] ? loop_add+0x9c/0x8c0 [ 72.302345][ T8518] ? mutex_lock_io_nested+0xf00/0xf00 [ 72.307724][ T8518] ? rcu_read_lock_sched_held+0x3a/0x70 [ 72.313273][ T8518] loop_add+0x9c/0x8c0 [ 72.317334][ T8518] ? find_inode_fast+0x16f/0x220 [ 72.322274][ T8518] loop_probe+0x6a/0x80 [ 72.327145][ T8518] ? loop_add+0x8c0/0x8c0 [ 72.331667][ T8518] blk_request_module+0x111/0x1d0 [ 72.336787][ T8518] blkdev_get_no_open+0x1d5/0x250 [ 72.341915][ T8518] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 72.347458][ T8518] ? devcgroup_check_permission+0x1bb/0x410 [ 72.353377][ T8518] blkdev_open+0x295/0x300 [ 72.357992][ T8518] do_dentry_open+0x4c8/0x11d0 [ 72.362756][ T8518] ? blkdev_get_by_dev+0x80/0x80 [ 72.367704][ T8518] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 72.373947][ T8518] ? may_open+0x1f6/0x420 [ 72.378274][ T8518] path_openat+0x1c23/0x27f0 [ 72.382880][ T8518] ? path_lookupat+0x860/0x860 [ 72.387642][ T8518] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 72.393621][ T8518] do_filp_open+0x1aa/0x400 [ 72.398125][ T8518] ? may_open_dev+0xf0/0xf0 [ 72.402628][ T8518] ? rwlock_bug.part.0+0x90/0x90 [ 72.407560][ T8518] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 72.413799][ T8518] ? _find_next_bit+0x1e3/0x260 [ 72.418647][ T8518] ? _raw_spin_unlock+0x24/0x40 [ 72.423496][ T8518] ? alloc_fd+0x2f0/0x670 [ 72.428036][ T8518] do_sys_openat2+0x16d/0x420 [ 72.432826][ T8518] ? build_open_flags+0x6f0/0x6f0 [ 72.437858][ T8518] ? __context_tracking_exit+0xb8/0xe0 [ 72.443342][ T8518] __x64_sys_open+0x119/0x1c0 [ 72.448370][ T8518] ? do_sys_open+0x140/0x140 [ 72.452974][ T8518] ? __secure_computing+0x104/0x360 [ 72.458183][ T8518] do_syscall_64+0x35/0xb0 [ 72.462622][ T8518] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 72.468602][ T8518] RIP: 0033:0x7f1286e48840 [ 72.473017][ T8518] 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 [ 72.492905][ T8518] RSP: 002b:00007ffd86ace4a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 72.501313][ T8518] RAX: ffffffffffffffda RBX: 000055965deea810 RCX: 00007f1286e48840 executing program executing program executing program [ 72.509279][ T8518] RDX: 000055965d006fe3 RSI: 00000000000a0800 RDI: 000055965deef1b0 [ 72.517587][ T8518] RBP: 00007ffd86ace620 R08: 000055965d006670 R09: 0000000000000010 [ 72.525549][ T8518] R10: 000055965d006d0c R11: 0000000000000246 R12: 00007ffd86ace570 [ 72.533725][ T8518] R13: 000055965def0e10 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