Warning: Permanently added '10.128.0.92' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 70.380319][ T8480] [ 70.382668][ T8480] ====================================================== [ 70.389672][ T8480] WARNING: possible circular locking dependency detected [ 70.396712][ T8480] 5.14.0-rc5-syzkaller #0 Not tainted [ 70.402057][ T8480] ------------------------------------------------------ [ 70.409049][ T8480] systemd-udevd/8480 is trying to acquire lock: [ 70.415262][ T8480] ffffffff8c487968 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 70.423701][ T8480] [ 70.423701][ T8480] but task is already holding lock: [ 70.431041][ T8480] ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 70.440536][ T8480] [ 70.440536][ T8480] which lock already depends on the new lock. [ 70.440536][ T8480] [ 70.450923][ T8480] [ 70.450923][ T8480] the existing dependency chain (in reverse order) is: [ 70.459910][ T8480] [ 70.459910][ T8480] -> #3 (major_names_lock){+.+.}-{3:3}: [ 70.467701][ T8480] __mutex_lock+0x12a/0x10a0 [ 70.472826][ T8480] __register_blkdev+0x2b/0x3e0 [ 70.478183][ T8480] register_mtd_blktrans+0x85/0x3c0 [ 70.483887][ T8480] do_one_initcall+0x103/0x650 [ 70.489155][ T8480] kernel_init_freeable+0x6b8/0x741 [ 70.494857][ T8480] kernel_init+0x1a/0x1d0 [ 70.499687][ T8480] ret_from_fork+0x1f/0x30 [ 70.504606][ T8480] [ 70.504606][ T8480] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 70.512224][ T8480] __mutex_lock+0x12a/0x10a0 [ 70.517316][ T8480] blktrans_open+0x69/0x600 [ 70.522320][ T8480] blkdev_get_whole+0xa1/0x420 [ 70.527584][ T8480] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 70.533656][ T8480] blkdev_open+0x295/0x300 [ 70.538589][ T8480] do_dentry_open+0x4c8/0x11d0 [ 70.543856][ T8480] path_openat+0x1c23/0x27f0 [ 70.548964][ T8480] do_filp_open+0x1aa/0x400 [ 70.553965][ T8480] do_sys_openat2+0x16d/0x420 [ 70.559143][ T8480] __x64_sys_open+0x119/0x1c0 [ 70.564321][ T8480] do_syscall_64+0x35/0xb0 [ 70.569327][ T8480] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.575721][ T8480] [ 70.575721][ T8480] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 70.583620][ T8480] __mutex_lock+0x12a/0x10a0 [ 70.588733][ T8480] del_gendisk+0x8b/0x770 [ 70.593568][ T8480] loop_control_ioctl+0x3b5/0x450 [ 70.599096][ T8480] __x64_sys_ioctl+0x193/0x200 [ 70.604370][ T8480] do_syscall_64+0x35/0xb0 [ 70.609290][ T8480] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.615684][ T8480] [ 70.615684][ T8480] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 70.623215][ T8480] __lock_acquire+0x2a07/0x54a0 [ 70.628568][ T8480] lock_acquire+0x1ab/0x510 [ 70.633568][ T8480] __mutex_lock+0x12a/0x10a0 [ 70.638674][ T8480] loop_add+0x9c/0x8c0 [ 70.643244][ T8480] loop_probe+0x6a/0x80 [ 70.647901][ T8480] blk_request_module+0x111/0x1d0 [ 70.653428][ T8480] blkdev_get_no_open+0x1d5/0x250 [ 70.658964][ T8480] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 70.664922][ T8480] blkdev_open+0x295/0x300 [ 70.669837][ T8480] do_dentry_open+0x4c8/0x11d0 [ 70.675098][ T8480] path_openat+0x1c23/0x27f0 [ 70.680187][ T8480] do_filp_open+0x1aa/0x400 [ 70.685187][ T8480] do_sys_openat2+0x16d/0x420 [ 70.690477][ T8480] __x64_sys_open+0x119/0x1c0 [ 70.695654][ T8480] do_syscall_64+0x35/0xb0 [ 70.700574][ T8480] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.706968][ T8480] [ 70.706968][ T8480] other info that might help us debug this: [ 70.706968][ T8480] [ 70.717169][ T8480] Chain exists of: [ 70.717169][ T8480] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 70.717169][ T8480] [ 70.730260][ T8480] Possible unsafe locking scenario: [ 70.730260][ T8480] [ 70.737772][ T8480] CPU0 CPU1 [ 70.743125][ T8480] ---- ---- [ 70.748465][ T8480] lock(major_names_lock); [ 70.752958][ T8480] lock(mtd_table_mutex); [ 70.760000][ T8480] lock(major_names_lock); [ 70.767001][ T8480] lock(loop_ctl_mutex); [ 70.771321][ T8480] [ 70.771321][ T8480] *** DEADLOCK *** [ 70.771321][ T8480] [ 70.779436][ T8480] 1 lock held by systemd-udevd/8480: [ 70.784693][ T8480] #0: ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 70.794678][ T8480] [ 70.794678][ T8480] stack backtrace: [ 70.800541][ T8480] CPU: 0 PID: 8480 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 70.809101][ T8480] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 70.819233][ T8480] Call Trace: [ 70.822495][ T8480] dump_stack_lvl+0xcd/0x134 [ 70.827074][ T8480] check_noncircular+0x25f/0x2e0 [ 70.831989][ T8480] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 70.837949][ T8480] ? print_circular_bug+0x1e0/0x1e0 [ 70.843126][ T8480] ? lock_chain_count+0x20/0x20 [ 70.847959][ T8480] ? lockdep_lock+0xc6/0x200 [ 70.852533][ T8480] ? call_rcu_zapped+0xb0/0xb0 [ 70.857290][ T8480] __lock_acquire+0x2a07/0x54a0 [ 70.862119][ T8480] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 70.868078][ T8480] lock_acquire+0x1ab/0x510 [ 70.872557][ T8480] ? loop_add+0x9c/0x8c0 [ 70.876779][ T8480] ? lock_release+0x720/0x720 [ 70.881434][ T8480] ? path_openat+0x1c23/0x27f0 [ 70.886175][ T8480] ? do_filp_open+0x1aa/0x400 [ 70.890834][ T8480] ? do_sys_openat2+0x16d/0x420 [ 70.895666][ T8480] ? __x64_sys_open+0x119/0x1c0 [ 70.900502][ T8480] __mutex_lock+0x12a/0x10a0 [ 70.905075][ T8480] ? loop_add+0x9c/0x8c0 [ 70.909295][ T8480] ? loop_add+0x9c/0x8c0 [ 70.913515][ T8480] ? mutex_lock_io_nested+0xf00/0xf00 [ 70.918867][ T8480] ? rcu_read_lock_sched_held+0x3a/0x70 [ 70.924398][ T8480] loop_add+0x9c/0x8c0 [ 70.928443][ T8480] ? find_inode_fast+0x16f/0x220 [ 70.933363][ T8480] loop_probe+0x6a/0x80 [ 70.937495][ T8480] ? loop_add+0x8c0/0x8c0 [ 70.941804][ T8480] blk_request_module+0x111/0x1d0 [ 70.946814][ T8480] blkdev_get_no_open+0x1d5/0x250 [ 70.951831][ T8480] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 70.957269][ T8480] ? devcgroup_check_permission+0x1bb/0x410 [ 70.963144][ T8480] blkdev_open+0x295/0x300 [ 70.967539][ T8480] do_dentry_open+0x4c8/0x11d0 [ 70.972282][ T8480] ? blkdev_get_by_dev+0x80/0x80 [ 70.977194][ T8480] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 70.983416][ T8480] ? may_open+0x1f6/0x420 [ 70.987722][ T8480] path_openat+0x1c23/0x27f0 [ 70.992312][ T8480] ? path_lookupat+0x860/0x860 [ 70.997060][ T8480] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 71.003021][ T8480] do_filp_open+0x1aa/0x400 [ 71.007503][ T8480] ? may_open_dev+0xf0/0xf0 [ 71.011984][ T8480] ? rwlock_bug.part.0+0x90/0x90 [ 71.016903][ T8480] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 71.023125][ T8480] ? _find_next_bit+0x1e3/0x260 [ 71.027960][ T8480] ? _raw_spin_unlock+0x24/0x40 [ 71.032790][ T8480] ? alloc_fd+0x2f0/0x670 [ 71.037100][ T8480] do_sys_openat2+0x16d/0x420 [ 71.041758][ T8480] ? build_open_flags+0x6f0/0x6f0 [ 71.046762][ T8480] ? __context_tracking_exit+0xb8/0xe0 [ 71.052202][ T8480] __x64_sys_open+0x119/0x1c0 [ 71.056859][ T8480] ? do_sys_open+0x140/0x140 [ 71.061426][ T8480] ? __secure_computing+0x104/0x360 [ 71.066604][ T8480] do_syscall_64+0x35/0xb0 [ 71.071013][ T8480] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 71.076886][ T8480] RIP: 0033:0x7efe6315f840 [ 71.081281][ T8480] 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 [ 71.100866][ T8480] RSP: 002b:00007ffd60e542a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 71.109255][ T8480] RAX: ffffffffffffffda RBX: 0000564505bc8ee0 RCX: 00007efe6315f840 [ 71.117209][ T8480] RDX: 00005645042f1fe3 RSI: 00000000000a0800 RDI: 0000564505bdc1b0 [ 71.125160][ T8480] RBP: 00007ffd60e54420 R08: 00005645042f1670 R09: 0000000000000010 executing program [ 71.133112][ T8480] R10: 00005645042f1d0c R11: 0000000000000246 R12: 00007ffd60e54370 [ 71.141063][ T8480] R13: 0000564505bdde10 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program