Warning: Permanently added '10.128.0.61' (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 syzkaller login: [ 75.572867][ T8544] [ 75.575229][ T8544] ====================================================== [ 75.582240][ T8544] WARNING: possible circular locking dependency detected [ 75.589249][ T8544] 5.14.0-rc5-syzkaller #0 Not tainted [ 75.594594][ T8544] ------------------------------------------------------ [ 75.601597][ T8544] systemd-udevd/8544 is trying to acquire lock: [ 75.607810][ T8544] ffffffff8c486b88 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 75.616256][ T8544] [ 75.616256][ T8544] but task is already holding lock: [ 75.623591][ T8544] ffffffff8c1f3fe8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 75.633054][ T8544] [ 75.633054][ T8544] which lock already depends on the new lock. [ 75.633054][ T8544] [ 75.643430][ T8544] [ 75.643430][ T8544] the existing dependency chain (in reverse order) is: [ 75.652419][ T8544] [ 75.652419][ T8544] -> #3 (major_names_lock){+.+.}-{3:3}: [ 75.660124][ T8544] __mutex_lock+0x12a/0x10a0 [ 75.665235][ T8544] __register_blkdev+0x2b/0x3e0 [ 75.670602][ T8544] register_mtd_blktrans+0x85/0x3c0 [ 75.676303][ T8544] do_one_initcall+0x103/0x650 [ 75.681568][ T8544] kernel_init_freeable+0x6b8/0x741 [ 75.687280][ T8544] kernel_init+0x1a/0x1d0 [ 75.692167][ T8544] ret_from_fork+0x1f/0x30 [ 75.697086][ T8544] [ 75.697086][ T8544] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 75.704714][ T8544] __mutex_lock+0x12a/0x10a0 [ 75.709804][ T8544] blktrans_open+0x69/0x600 [ 75.714806][ T8544] blkdev_get_whole+0xa1/0x420 [ 75.720080][ T8544] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 75.726125][ T8544] blkdev_open+0x295/0x300 [ 75.731041][ T8544] do_dentry_open+0x4c8/0x11d0 [ 75.736305][ T8544] path_openat+0x1c23/0x27f0 [ 75.741393][ T8544] do_filp_open+0x1aa/0x400 [ 75.746397][ T8544] do_sys_openat2+0x16d/0x420 [ 75.751576][ T8544] __x64_sys_open+0x119/0x1c0 [ 75.756751][ T8544] do_syscall_64+0x35/0xb0 [ 75.761670][ T8544] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 75.768064][ T8544] [ 75.768064][ T8544] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 75.775854][ T8544] __mutex_lock+0x12a/0x10a0 [ 75.780945][ T8544] del_gendisk+0x8b/0x770 [ 75.785789][ T8544] loop_control_ioctl+0x3b5/0x450 [ 75.791315][ T8544] __do_compat_sys_ioctl+0x1c7/0x290 [ 75.797100][ T8544] __do_fast_syscall_32+0x65/0xf0 [ 75.802627][ T8544] do_fast_syscall_32+0x2f/0x70 [ 75.807990][ T8544] entry_SYSENTER_compat_after_hwframe+0x4d/0x5c [ 75.814833][ T8544] [ 75.814833][ T8544] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 75.822362][ T8544] __lock_acquire+0x2a07/0x54a0 [ 75.827711][ T8544] lock_acquire+0x1ab/0x510 [ 75.832711][ T8544] __mutex_lock+0x12a/0x10a0 [ 75.837813][ T8544] loop_add+0x9c/0x8c0 [ 75.842387][ T8544] loop_probe+0x6a/0x80 [ 75.847053][ T8544] blk_request_module+0x111/0x1d0 [ 75.852579][ T8544] blkdev_get_no_open+0x1d5/0x250 [ 75.858115][ T8544] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 75.864073][ T8544] blkdev_open+0x295/0x300 [ 75.868987][ T8544] do_dentry_open+0x4c8/0x11d0 [ 75.874251][ T8544] path_openat+0x1c23/0x27f0 [ 75.879338][ T8544] do_filp_open+0x1aa/0x400 [ 75.884343][ T8544] do_sys_openat2+0x16d/0x420 [ 75.889520][ T8544] __x64_sys_open+0x119/0x1c0 [ 75.894698][ T8544] do_syscall_64+0x35/0xb0 [ 75.899628][ T8544] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 75.906034][ T8544] [ 75.906034][ T8544] other info that might help us debug this: [ 75.906034][ T8544] [ 75.916235][ T8544] Chain exists of: [ 75.916235][ T8544] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 75.916235][ T8544] [ 75.929237][ T8544] Possible unsafe locking scenario: [ 75.929237][ T8544] [ 75.936660][ T8544] CPU0 CPU1 [ 75.942001][ T8544] ---- ---- [ 75.947341][ T8544] lock(major_names_lock); [ 75.951818][ T8544] lock(mtd_table_mutex); [ 75.958740][ T8544] lock(major_names_lock); [ 75.965735][ T8544] lock(loop_ctl_mutex); [ 75.970037][ T8544] [ 75.970037][ T8544] *** DEADLOCK *** [ 75.970037][ T8544] [ 75.978153][ T8544] 1 lock held by systemd-udevd/8544: [ 75.983426][ T8544] #0: ffffffff8c1f3fe8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 75.993320][ T8544] [ 75.993320][ T8544] stack backtrace: [ 75.999196][ T8544] CPU: 0 PID: 8544 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 76.007763][ T8544] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 76.017810][ T8544] Call Trace: [ 76.021072][ T8544] dump_stack_lvl+0xcd/0x134 [ 76.025648][ T8544] check_noncircular+0x25f/0x2e0 [ 76.030567][ T8544] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 76.036531][ T8544] ? print_circular_bug+0x1e0/0x1e0 [ 76.041706][ T8544] ? lock_chain_count+0x20/0x20 [ 76.046551][ T8544] ? lockdep_lock+0xc6/0x200 [ 76.051126][ T8544] ? call_rcu_zapped+0xb0/0xb0 [ 76.055874][ T8544] __lock_acquire+0x2a07/0x54a0 [ 76.060707][ T8544] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 76.066680][ T8544] lock_acquire+0x1ab/0x510 [ 76.071164][ T8544] ? loop_add+0x9c/0x8c0 [ 76.075398][ T8544] ? lock_release+0x720/0x720 [ 76.080120][ T8544] ? path_openat+0x1c23/0x27f0 [ 76.084878][ T8544] ? do_filp_open+0x1aa/0x400 [ 76.089542][ T8544] ? do_sys_openat2+0x16d/0x420 [ 76.094374][ T8544] ? __x64_sys_open+0x119/0x1c0 [ 76.099211][ T8544] __mutex_lock+0x12a/0x10a0 [ 76.103785][ T8544] ? loop_add+0x9c/0x8c0 [ 76.108006][ T8544] ? loop_add+0x9c/0x8c0 [ 76.112317][ T8544] ? mutex_lock_io_nested+0xf00/0xf00 [ 76.117674][ T8544] ? rcu_read_lock_sched_held+0x3a/0x70 [ 76.123214][ T8544] loop_add+0x9c/0x8c0 [ 76.127263][ T8544] ? find_inode_fast+0x16f/0x220 [ 76.132195][ T8544] loop_probe+0x6a/0x80 [ 76.136343][ T8544] ? loop_add+0x8c0/0x8c0 [ 76.140667][ T8544] blk_request_module+0x111/0x1d0 [ 76.145704][ T8544] blkdev_get_no_open+0x1d5/0x250 [ 76.150723][ T8544] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 76.156166][ T8544] ? devcgroup_check_permission+0x1bb/0x410 [ 76.162062][ T8544] blkdev_open+0x295/0x300 [ 76.166478][ T8544] do_dentry_open+0x4c8/0x11d0 [ 76.171244][ T8544] ? blkdev_get_by_dev+0x80/0x80 [ 76.176180][ T8544] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 76.182510][ T8544] ? may_open+0x1f6/0x420 [ 76.186824][ T8544] path_openat+0x1c23/0x27f0 [ 76.191397][ T8544] ? path_lookupat+0x860/0x860 [ 76.196156][ T8544] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 76.202167][ T8544] do_filp_open+0x1aa/0x400 [ 76.206682][ T8544] ? may_open_dev+0xf0/0xf0 [ 76.211187][ T8544] ? rwlock_bug.part.0+0x90/0x90 [ 76.216107][ T8544] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 76.222355][ T8544] ? _find_next_bit+0x1e3/0x260 [ 76.227203][ T8544] ? _raw_spin_unlock+0x24/0x40 [ 76.232049][ T8544] ? alloc_fd+0x2f0/0x670 [ 76.236376][ T8544] do_sys_openat2+0x16d/0x420 [ 76.241042][ T8544] ? build_open_flags+0x6f0/0x6f0 [ 76.246048][ T8544] ? __context_tracking_exit+0xb8/0xe0 [ 76.251493][ T8544] __x64_sys_open+0x119/0x1c0 [ 76.256158][ T8544] ? do_sys_open+0x140/0x140 [ 76.260743][ T8544] ? __secure_computing+0x104/0x360 [ 76.265938][ T8544] do_syscall_64+0x35/0xb0 [ 76.270338][ T8544] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 76.276211][ T8544] RIP: 0033:0x7fd97c0bd840 [ 76.280618][ T8544] 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 [ 76.300217][ T8544] RSP: 002b:00007ffe0a3e9768 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 76.308622][ T8544] RAX: ffffffffffffffda RBX: 0000556a4fb95900 RCX: 00007fd97c0bd840 [ 76.316585][ T8544] RDX: 0000556a4e20dfe3 RSI: 00000000000a0800 RDI: 0000556a4fb9fb10 executing program [ 76.324541][ T8544] RBP: 00007ffe0a3e98e0 R08: 0000556a4e20d670 R09: 0000000000000010 [ 76.332501][ T8544] R10: 0000556a4e20dd0c R11: 0000000000000246 R12: 00007ffe0a3e9830 [ 76.340453][ T8544] R13: 0000556a4fb93370 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