Warning: Permanently added '10.128.1.110' (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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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: [ 78.947748][ T8774] [ 78.950119][ T8774] ====================================================== [ 78.957129][ T8774] WARNING: possible circular locking dependency detected [ 78.964122][ T8774] 5.14.0-rc5-syzkaller #0 Not tainted [ 78.969506][ T8774] ------------------------------------------------------ [ 78.976501][ T8774] systemd-udevd/8774 is trying to acquire lock: [ 78.982732][ T8774] ffffffff8c487968 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 78.991237][ T8774] [ 78.991237][ T8774] but task is already holding lock: [ 78.998588][ T8774] ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 79.008049][ T8774] [ 79.008049][ T8774] which lock already depends on the new lock. [ 79.008049][ T8774] [ 79.018427][ T8774] [ 79.018427][ T8774] the existing dependency chain (in reverse order) is: [ 79.027417][ T8774] [ 79.027417][ T8774] -> #3 (major_names_lock){+.+.}-{3:3}: [ 79.035124][ T8774] __mutex_lock+0x12a/0x10a0 [ 79.040245][ T8774] __register_blkdev+0x2b/0x3e0 [ 79.045614][ T8774] register_mtd_blktrans+0x85/0x3c0 [ 79.051327][ T8774] do_one_initcall+0x103/0x650 [ 79.056631][ T8774] kernel_init_freeable+0x6b8/0x741 [ 79.062337][ T8774] kernel_init+0x1a/0x1d0 [ 79.067205][ T8774] ret_from_fork+0x1f/0x30 [ 79.072124][ T8774] [ 79.072124][ T8774] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 79.079743][ T8774] __mutex_lock+0x12a/0x10a0 [ 79.084841][ T8774] blktrans_open+0x69/0x600 [ 79.089846][ T8774] blkdev_get_whole+0xa1/0x420 [ 79.095110][ T8774] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 79.101171][ T8774] blkdev_open+0x295/0x300 [ 79.106102][ T8774] do_dentry_open+0x4c8/0x11d0 [ 79.111367][ T8774] path_openat+0x1c23/0x27f0 [ 79.116462][ T8774] do_filp_open+0x1aa/0x400 [ 79.121465][ T8774] do_sys_openat2+0x16d/0x420 [ 79.126651][ T8774] __x64_sys_open+0x119/0x1c0 [ 79.131842][ T8774] do_syscall_64+0x35/0xb0 [ 79.136818][ T8774] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 79.143223][ T8774] [ 79.143223][ T8774] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 79.151021][ T8774] __mutex_lock+0x12a/0x10a0 [ 79.156130][ T8774] del_gendisk+0x8b/0x770 [ 79.160963][ T8774] loop_control_ioctl+0x3b5/0x450 [ 79.166492][ T8774] __do_compat_sys_ioctl+0x1c7/0x290 [ 79.172282][ T8774] __do_fast_syscall_32+0x65/0xf0 [ 79.177811][ T8774] do_fast_syscall_32+0x2f/0x70 [ 79.183163][ T8774] entry_SYSENTER_compat_after_hwframe+0x4d/0x5c [ 79.189995][ T8774] [ 79.189995][ T8774] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 79.197543][ T8774] __lock_acquire+0x2a07/0x54a0 [ 79.202899][ T8774] lock_acquire+0x1ab/0x510 [ 79.207901][ T8774] __mutex_lock+0x12a/0x10a0 [ 79.212995][ T8774] loop_add+0x9c/0x8c0 [ 79.217602][ T8774] loop_probe+0x6a/0x80 [ 79.222268][ T8774] blk_request_module+0x111/0x1d0 [ 79.227815][ T8774] blkdev_get_no_open+0x1d5/0x250 [ 79.233346][ T8774] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 79.239307][ T8774] blkdev_open+0x295/0x300 [ 79.244225][ T8774] do_dentry_open+0x4c8/0x11d0 [ 79.249493][ T8774] path_openat+0x1c23/0x27f0 [ 79.254583][ T8774] do_filp_open+0x1aa/0x400 [ 79.259587][ T8774] do_sys_openat2+0x16d/0x420 [ 79.264766][ T8774] __x64_sys_open+0x119/0x1c0 [ 79.269946][ T8774] do_syscall_64+0x35/0xb0 [ 79.274882][ T8774] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 79.281298][ T8774] [ 79.281298][ T8774] other info that might help us debug this: [ 79.281298][ T8774] [ 79.291507][ T8774] Chain exists of: [ 79.291507][ T8774] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 79.291507][ T8774] [ 79.304516][ T8774] Possible unsafe locking scenario: [ 79.304516][ T8774] [ 79.313190][ T8774] CPU0 CPU1 [ 79.318530][ T8774] ---- ---- [ 79.323869][ T8774] lock(major_names_lock); [ 79.328368][ T8774] lock(mtd_table_mutex); [ 79.335372][ T8774] lock(major_names_lock); [ 79.342381][ T8774] lock(loop_ctl_mutex); [ 79.346687][ T8774] [ 79.346687][ T8774] *** DEADLOCK *** [ 79.346687][ T8774] [ 79.354817][ T8774] 1 lock held by systemd-udevd/8774: [ 79.360082][ T8774] #0: ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 79.369980][ T8774] [ 79.369980][ T8774] stack backtrace: [ 79.375936][ T8774] CPU: 0 PID: 8774 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 79.384501][ T8774] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 79.394548][ T8774] Call Trace: [ 79.397813][ T8774] dump_stack_lvl+0xcd/0x134 [ 79.402412][ T8774] check_noncircular+0x25f/0x2e0 [ 79.407336][ T8774] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 79.413299][ T8774] ? print_circular_bug+0x1e0/0x1e0 [ 79.418497][ T8774] ? lock_chain_count+0x20/0x20 [ 79.423337][ T8774] ? lockdep_lock+0xc6/0x200 [ 79.427926][ T8774] ? call_rcu_zapped+0xb0/0xb0 [ 79.432696][ T8774] __lock_acquire+0x2a07/0x54a0 [ 79.437531][ T8774] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 79.443492][ T8774] lock_acquire+0x1ab/0x510 [ 79.447979][ T8774] ? loop_add+0x9c/0x8c0 [ 79.452203][ T8774] ? lock_release+0x720/0x720 [ 79.456862][ T8774] ? path_openat+0x1c23/0x27f0 [ 79.461606][ T8774] ? do_filp_open+0x1aa/0x400 [ 79.466263][ T8774] ? do_sys_openat2+0x16d/0x420 [ 79.471097][ T8774] ? __x64_sys_open+0x119/0x1c0 [ 79.475936][ T8774] __mutex_lock+0x12a/0x10a0 [ 79.480526][ T8774] ? loop_add+0x9c/0x8c0 [ 79.484751][ T8774] ? loop_add+0x9c/0x8c0 [ 79.488975][ T8774] ? mutex_lock_io_nested+0xf00/0xf00 [ 79.494338][ T8774] ? rcu_read_lock_sched_held+0x3a/0x70 [ 79.499887][ T8774] loop_add+0x9c/0x8c0 [ 79.503935][ T8774] ? find_inode_fast+0x16f/0x220 [ 79.508858][ T8774] loop_probe+0x6a/0x80 [ 79.512994][ T8774] ? loop_add+0x8c0/0x8c0 [ 79.517320][ T8774] blk_request_module+0x111/0x1d0 [ 79.522338][ T8774] blkdev_get_no_open+0x1d5/0x250 [ 79.527345][ T8774] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 79.532786][ T8774] ? devcgroup_check_permission+0x1bb/0x410 [ 79.538681][ T8774] blkdev_open+0x295/0x300 [ 79.543077][ T8774] do_dentry_open+0x4c8/0x11d0 [ 79.547827][ T8774] ? blkdev_get_by_dev+0x80/0x80 [ 79.552760][ T8774] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 79.558982][ T8774] ? may_open+0x1f6/0x420 [ 79.563297][ T8774] path_openat+0x1c23/0x27f0 [ 79.567891][ T8774] ? path_lookupat+0x860/0x860 [ 79.572642][ T8774] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 79.578622][ T8774] do_filp_open+0x1aa/0x400 [ 79.583128][ T8774] ? may_open_dev+0xf0/0xf0 [ 79.587631][ T8774] ? rwlock_bug.part.0+0x90/0x90 [ 79.592555][ T8774] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 79.599627][ T8774] ? _find_next_bit+0x1e3/0x260 [ 79.604463][ T8774] ? _raw_spin_unlock+0x24/0x40 [ 79.609351][ T8774] ? alloc_fd+0x2f0/0x670 [ 79.613664][ T8774] do_sys_openat2+0x16d/0x420 [ 79.618327][ T8774] ? build_open_flags+0x6f0/0x6f0 [ 79.623334][ T8774] ? __context_tracking_exit+0xb8/0xe0 [ 79.628782][ T8774] __x64_sys_open+0x119/0x1c0 [ 79.633441][ T8774] ? do_sys_open+0x140/0x140 [ 79.638111][ T8774] ? __secure_computing+0x104/0x360 [ 79.643295][ T8774] do_syscall_64+0x35/0xb0 [ 79.647694][ T8774] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 79.653569][ T8774] RIP: 0033:0x7fe68b297840 [ 79.657965][ T8774] 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 [ 79.677569][ T8774] RSP: 002b:00007ffe4d2d1738 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 79.685962][ T8774] RAX: ffffffffffffffda RBX: 0000558536ddf8f0 RCX: 00007fe68b297840 executing program [ 79.693915][ T8774] RDX: 0000558534e0cfe3 RSI: 00000000000a0800 RDI: 0000558536ddf830 [ 79.701881][ T8774] RBP: 00007ffe4d2d18b0 R08: 0000558534e0c670 R09: 0000000000000010 [ 79.709833][ T8774] R10: 0000558534e0cd0c R11: 0000000000000246 R12: 00007ffe4d2d1800 [ 79.717785][ T8774] R13: 0000558536de1010 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