Warning: Permanently added '10.128.0.23' (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 syzkaller login: [ 69.801320][ T8505] [ 69.803669][ T8505] ====================================================== [ 69.810736][ T8505] WARNING: possible circular locking dependency detected [ 69.817737][ T8505] 5.14.0-rc5-syzkaller #0 Not tainted [ 69.823105][ T8505] ------------------------------------------------------ [ 69.830112][ T8505] systemd-udevd/8505 is trying to acquire lock: [ 69.836359][ T8505] ffffffff8c487968 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 69.844846][ T8505] [ 69.844846][ T8505] but task is already holding lock: [ 69.852209][ T8505] ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 69.861714][ T8505] [ 69.861714][ T8505] which lock already depends on the new lock. [ 69.861714][ T8505] [ 69.872106][ T8505] [ 69.872106][ T8505] the existing dependency chain (in reverse order) is: [ 69.881113][ T8505] [ 69.881113][ T8505] -> #3 (major_names_lock){+.+.}-{3:3}: [ 69.888847][ T8505] __mutex_lock+0x12a/0x10a0 [ 69.893982][ T8505] __register_blkdev+0x2b/0x3e0 [ 69.899338][ T8505] register_mtd_blktrans+0x85/0x3c0 [ 69.905042][ T8505] do_one_initcall+0x103/0x650 [ 69.910310][ T8505] kernel_init_freeable+0x6b8/0x741 [ 69.916011][ T8505] kernel_init+0x1a/0x1d0 [ 69.920844][ T8505] ret_from_fork+0x1f/0x30 [ 69.925780][ T8505] [ 69.925780][ T8505] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 69.933431][ T8505] __mutex_lock+0x12a/0x10a0 [ 69.938569][ T8505] blktrans_open+0x69/0x600 [ 69.943575][ T8505] blkdev_get_whole+0xa1/0x420 [ 69.948836][ T8505] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 69.954968][ T8505] blkdev_open+0x295/0x300 [ 69.959885][ T8505] do_dentry_open+0x4c8/0x11d0 [ 69.965159][ T8505] path_openat+0x1c23/0x27f0 [ 69.970289][ T8505] do_filp_open+0x1aa/0x400 [ 69.975294][ T8505] do_sys_openat2+0x16d/0x420 [ 69.980472][ T8505] __x64_sys_open+0x119/0x1c0 [ 69.985652][ T8505] do_syscall_64+0x35/0xb0 [ 69.990569][ T8505] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 69.996963][ T8505] [ 69.996963][ T8505] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 70.004751][ T8505] __mutex_lock+0x12a/0x10a0 [ 70.009843][ T8505] del_gendisk+0x8b/0x770 [ 70.014673][ T8505] loop_control_ioctl+0x3b5/0x450 [ 70.020215][ T8505] __x64_sys_ioctl+0x193/0x200 [ 70.025481][ T8505] do_syscall_64+0x35/0xb0 [ 70.030415][ T8505] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.036813][ T8505] [ 70.036813][ T8505] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 70.044344][ T8505] __lock_acquire+0x2a07/0x54a0 [ 70.049699][ T8505] lock_acquire+0x1ab/0x510 [ 70.054697][ T8505] __mutex_lock+0x12a/0x10a0 [ 70.059787][ T8505] loop_add+0x9c/0x8c0 [ 70.064356][ T8505] loop_probe+0x6a/0x80 [ 70.069011][ T8505] blk_request_module+0x111/0x1d0 [ 70.074538][ T8505] blkdev_get_no_open+0x1d5/0x250 [ 70.080069][ T8505] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 70.086025][ T8505] blkdev_open+0x295/0x300 [ 70.090941][ T8505] do_dentry_open+0x4c8/0x11d0 [ 70.096207][ T8505] path_openat+0x1c23/0x27f0 [ 70.101297][ T8505] do_filp_open+0x1aa/0x400 [ 70.106297][ T8505] do_sys_openat2+0x16d/0x420 [ 70.111478][ T8505] __x64_sys_open+0x119/0x1c0 [ 70.116666][ T8505] do_syscall_64+0x35/0xb0 [ 70.121586][ T8505] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.127977][ T8505] [ 70.127977][ T8505] other info that might help us debug this: [ 70.127977][ T8505] [ 70.138198][ T8505] Chain exists of: [ 70.138198][ T8505] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 70.138198][ T8505] [ 70.151200][ T8505] Possible unsafe locking scenario: [ 70.151200][ T8505] [ 70.158625][ T8505] CPU0 CPU1 [ 70.163968][ T8505] ---- ---- [ 70.169322][ T8505] lock(major_names_lock); [ 70.173814][ T8505] lock(mtd_table_mutex); [ 70.180723][ T8505] lock(major_names_lock); [ 70.187723][ T8505] lock(loop_ctl_mutex); [ 70.192043][ T8505] [ 70.192043][ T8505] *** DEADLOCK *** [ 70.192043][ T8505] [ 70.200164][ T8505] 1 lock held by systemd-udevd/8505: [ 70.205423][ T8505] #0: ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 70.215320][ T8505] [ 70.215320][ T8505] stack backtrace: [ 70.221183][ T8505] CPU: 0 PID: 8505 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 70.229745][ T8505] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 70.239778][ T8505] Call Trace: [ 70.243040][ T8505] dump_stack_lvl+0xcd/0x134 [ 70.247616][ T8505] check_noncircular+0x25f/0x2e0 [ 70.252533][ T8505] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 70.258494][ T8505] ? print_circular_bug+0x1e0/0x1e0 [ 70.263669][ T8505] ? lock_chain_count+0x20/0x20 [ 70.268499][ T8505] ? lockdep_lock+0xc6/0x200 [ 70.273072][ T8505] ? call_rcu_zapped+0xb0/0xb0 [ 70.277820][ T8505] __lock_acquire+0x2a07/0x54a0 [ 70.282654][ T8505] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 70.288616][ T8505] lock_acquire+0x1ab/0x510 [ 70.293098][ T8505] ? loop_add+0x9c/0x8c0 [ 70.297325][ T8505] ? lock_release+0x720/0x720 [ 70.301981][ T8505] ? path_openat+0x1c23/0x27f0 [ 70.306723][ T8505] ? do_filp_open+0x1aa/0x400 [ 70.311378][ T8505] ? do_sys_openat2+0x16d/0x420 [ 70.316209][ T8505] ? __x64_sys_open+0x119/0x1c0 [ 70.321058][ T8505] __mutex_lock+0x12a/0x10a0 [ 70.325629][ T8505] ? loop_add+0x9c/0x8c0 [ 70.329852][ T8505] ? loop_add+0x9c/0x8c0 [ 70.334072][ T8505] ? mark_held_locks+0x9f/0xe0 [ 70.338829][ T8505] ? mutex_lock_io_nested+0xf00/0xf00 [ 70.344194][ T8505] ? rcu_read_lock_sched_held+0x3a/0x70 [ 70.349727][ T8505] loop_add+0x9c/0x8c0 [ 70.353775][ T8505] ? find_inode_fast+0x16f/0x220 [ 70.358696][ T8505] loop_probe+0x6a/0x80 [ 70.362837][ T8505] ? loop_add+0x8c0/0x8c0 [ 70.367148][ T8505] blk_request_module+0x111/0x1d0 [ 70.372155][ T8505] blkdev_get_no_open+0x1d5/0x250 [ 70.377161][ T8505] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 70.382613][ T8505] ? devcgroup_check_permission+0x1bb/0x410 [ 70.388489][ T8505] blkdev_open+0x295/0x300 [ 70.392885][ T8505] do_dentry_open+0x4c8/0x11d0 [ 70.397631][ T8505] ? blkdev_get_by_dev+0x80/0x80 [ 70.402546][ T8505] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 70.408770][ T8505] ? may_open+0x1f6/0x420 [ 70.413086][ T8505] path_openat+0x1c23/0x27f0 [ 70.417659][ T8505] ? path_lookupat+0x860/0x860 [ 70.422838][ T8505] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 70.428801][ T8505] do_filp_open+0x1aa/0x400 [ 70.433284][ T8505] ? may_open_dev+0xf0/0xf0 [ 70.437774][ T8505] ? rwlock_bug.part.0+0x90/0x90 [ 70.442697][ T8505] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 70.448919][ T8505] ? _find_next_bit+0x1e3/0x260 [ 70.453752][ T8505] ? _raw_spin_unlock+0x24/0x40 [ 70.458584][ T8505] ? alloc_fd+0x2f0/0x670 [ 70.462898][ T8505] do_sys_openat2+0x16d/0x420 [ 70.467557][ T8505] ? build_open_flags+0x6f0/0x6f0 [ 70.472561][ T8505] ? __context_tracking_exit+0xb8/0xe0 [ 70.478021][ T8505] __x64_sys_open+0x119/0x1c0 [ 70.482677][ T8505] ? do_sys_open+0x140/0x140 [ 70.487250][ T8505] ? __secure_computing+0x104/0x360 [ 70.492432][ T8505] do_syscall_64+0x35/0xb0 [ 70.496829][ T8505] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.502701][ T8505] RIP: 0033:0x7f2fb07c3840 [ 70.507096][ T8505] 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 [ 70.526688][ T8505] RSP: 002b:00007fff210f4408 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 70.535086][ T8505] RAX: ffffffffffffffda RBX: 000055dd7c303810 RCX: 00007f2fb07c3840 [ 70.543043][ T8505] RDX: 000055dd7af0bfe3 RSI: 00000000000a0800 RDI: 000055dd7c3081b0 [ 70.550997][ T8505] RBP: 00007fff210f4580 R08: 000055dd7af0b670 R09: 0000000000000010 [ 70.558954][ T8505] R10: 000055dd7af0bd0c R11: 0000000000000246 R12: 00007fff210f44d0 [ 70.566907][ T8505] R13: 000055dd7c309e10 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 executing program