Warning: Permanently added '10.128.1.125' (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 [ 70.381416][ T8531] [ 70.383766][ T8531] ====================================================== [ 70.390761][ T8531] WARNING: possible circular locking dependency detected [ 70.397764][ T8531] 5.14.0-rc5-syzkaller #0 Not tainted [ 70.403123][ T8531] ------------------------------------------------------ [ 70.410129][ T8531] systemd-udevd/8531 is trying to acquire lock: [ 70.416354][ T8531] ffffffff8c487968 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 70.424784][ T8531] [ 70.424784][ T8531] but task is already holding lock: [ 70.432129][ T8531] ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 70.441615][ T8531] [ 70.441615][ T8531] which lock already depends on the new lock. [ 70.441615][ T8531] [ 70.452012][ T8531] [ 70.452012][ T8531] the existing dependency chain (in reverse order) is: [ 70.461009][ T8531] [ 70.461009][ T8531] -> #3 (major_names_lock){+.+.}-{3:3}: [ 70.468729][ T8531] __mutex_lock+0x12a/0x10a0 [ 70.473849][ T8531] __register_blkdev+0x2b/0x3e0 [ 70.479219][ T8531] register_mtd_blktrans+0x85/0x3c0 [ 70.484936][ T8531] do_one_initcall+0x103/0x650 [ 70.490218][ T8531] kernel_init_freeable+0x6b8/0x741 [ 70.495941][ T8531] kernel_init+0x1a/0x1d0 [ 70.500786][ T8531] ret_from_fork+0x1f/0x30 [ 70.505717][ T8531] [ 70.505717][ T8531] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 70.513351][ T8531] __mutex_lock+0x12a/0x10a0 [ 70.518455][ T8531] blktrans_open+0x69/0x600 [ 70.523472][ T8531] blkdev_get_whole+0xa1/0x420 [ 70.528832][ T8531] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 70.534889][ T8531] blkdev_open+0x295/0x300 [ 70.539814][ T8531] do_dentry_open+0x4c8/0x11d0 [ 70.545091][ T8531] path_openat+0x1c23/0x27f0 [ 70.550203][ T8531] do_filp_open+0x1aa/0x400 [ 70.555224][ T8531] do_sys_openat2+0x16d/0x420 [ 70.560421][ T8531] __x64_sys_open+0x119/0x1c0 [ 70.565611][ T8531] do_syscall_64+0x35/0xb0 [ 70.570551][ T8531] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.576959][ T8531] [ 70.576959][ T8531] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 70.584767][ T8531] __mutex_lock+0x12a/0x10a0 [ 70.589871][ T8531] del_gendisk+0x8b/0x770 [ 70.594716][ T8531] loop_control_ioctl+0x3b5/0x450 [ 70.600254][ T8531] __x64_sys_ioctl+0x193/0x200 [ 70.605534][ T8531] do_syscall_64+0x35/0xb0 [ 70.610468][ T8531] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.616874][ T8531] [ 70.616874][ T8531] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 70.624434][ T8531] __lock_acquire+0x2a07/0x54a0 [ 70.629796][ T8531] lock_acquire+0x1ab/0x510 [ 70.634822][ T8531] __mutex_lock+0x12a/0x10a0 [ 70.640012][ T8531] loop_add+0x9c/0x8c0 [ 70.644603][ T8531] loop_probe+0x6a/0x80 [ 70.649267][ T8531] blk_request_module+0x111/0x1d0 [ 70.654810][ T8531] blkdev_get_no_open+0x1d5/0x250 [ 70.660353][ T8531] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 70.666324][ T8531] blkdev_open+0x295/0x300 [ 70.671253][ T8531] do_dentry_open+0x4c8/0x11d0 [ 70.676530][ T8531] path_openat+0x1c23/0x27f0 [ 70.681632][ T8531] do_filp_open+0x1aa/0x400 [ 70.686648][ T8531] do_sys_openat2+0x16d/0x420 [ 70.691842][ T8531] __x64_sys_open+0x119/0x1c0 [ 70.697032][ T8531] do_syscall_64+0x35/0xb0 [ 70.701963][ T8531] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.708368][ T8531] [ 70.708368][ T8531] other info that might help us debug this: [ 70.708368][ T8531] [ 70.718578][ T8531] Chain exists of: [ 70.718578][ T8531] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 70.718578][ T8531] [ 70.731602][ T8531] Possible unsafe locking scenario: [ 70.731602][ T8531] [ 70.739037][ T8531] CPU0 CPU1 [ 70.744388][ T8531] ---- ---- [ 70.749735][ T8531] lock(major_names_lock); [ 70.754226][ T8531] lock(mtd_table_mutex); [ 70.761152][ T8531] lock(major_names_lock); [ 70.768339][ T8531] lock(loop_ctl_mutex); [ 70.772658][ T8531] [ 70.772658][ T8531] *** DEADLOCK *** [ 70.772658][ T8531] [ 70.780782][ T8531] 1 lock held by systemd-udevd/8531: [ 70.786049][ T8531] #0: ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 70.795975][ T8531] [ 70.795975][ T8531] stack backtrace: [ 70.801846][ T8531] CPU: 0 PID: 8531 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 70.810420][ T8531] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 70.820470][ T8531] Call Trace: [ 70.823740][ T8531] dump_stack_lvl+0xcd/0x134 [ 70.828343][ T8531] check_noncircular+0x25f/0x2e0 [ 70.833285][ T8531] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 70.839258][ T8531] ? print_circular_bug+0x1e0/0x1e0 [ 70.844451][ T8531] ? lock_chain_count+0x20/0x20 [ 70.849299][ T8531] ? lockdep_lock+0xc6/0x200 [ 70.853885][ T8531] ? call_rcu_zapped+0xb0/0xb0 [ 70.858646][ T8531] __lock_acquire+0x2a07/0x54a0 [ 70.863496][ T8531] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 70.869472][ T8531] lock_acquire+0x1ab/0x510 [ 70.873967][ T8531] ? loop_add+0x9c/0x8c0 [ 70.878202][ T8531] ? lock_release+0x720/0x720 [ 70.882877][ T8531] ? path_openat+0x1c23/0x27f0 [ 70.887636][ T8531] ? do_filp_open+0x1aa/0x400 [ 70.892304][ T8531] ? do_sys_openat2+0x16d/0x420 [ 70.897150][ T8531] ? __x64_sys_open+0x119/0x1c0 [ 70.902002][ T8531] __mutex_lock+0x12a/0x10a0 [ 70.906588][ T8531] ? loop_add+0x9c/0x8c0 [ 70.910835][ T8531] ? loop_add+0x9c/0x8c0 [ 70.915176][ T8531] ? mark_held_locks+0x9f/0xe0 [ 70.919938][ T8531] ? mutex_lock_io_nested+0xf00/0xf00 [ 70.925312][ T8531] ? rcu_read_lock_sched_held+0x3a/0x70 [ 70.930858][ T8531] loop_add+0x9c/0x8c0 [ 70.934928][ T8531] ? find_inode_fast+0x16f/0x220 [ 70.939861][ T8531] loop_probe+0x6a/0x80 [ 70.944010][ T8531] ? loop_add+0x8c0/0x8c0 [ 70.948332][ T8531] blk_request_module+0x111/0x1d0 [ 70.953356][ T8531] blkdev_get_no_open+0x1d5/0x250 [ 70.958386][ T8531] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 70.963837][ T8531] ? devcgroup_check_permission+0x1bb/0x410 [ 70.969729][ T8531] blkdev_open+0x295/0x300 [ 70.974134][ T8531] do_dentry_open+0x4c8/0x11d0 [ 70.978896][ T8531] ? blkdev_get_by_dev+0x80/0x80 [ 70.983823][ T8531] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 70.990060][ T8531] ? may_open+0x1f6/0x420 [ 70.994382][ T8531] path_openat+0x1c23/0x27f0 [ 70.998969][ T8531] ? path_lookupat+0x860/0x860 [ 71.003727][ T8531] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 71.009714][ T8531] do_filp_open+0x1aa/0x400 [ 71.014213][ T8531] ? may_open_dev+0xf0/0xf0 [ 71.018719][ T8531] ? rwlock_bug.part.0+0x90/0x90 [ 71.023649][ T8531] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 71.029884][ T8531] ? _find_next_bit+0x1e3/0x260 [ 71.034736][ T8531] ? _raw_spin_unlock+0x24/0x40 [ 71.039578][ T8531] ? alloc_fd+0x2f0/0x670 [ 71.043908][ T8531] do_sys_openat2+0x16d/0x420 [ 71.048582][ T8531] ? build_open_flags+0x6f0/0x6f0 [ 71.053606][ T8531] ? __context_tracking_exit+0xb8/0xe0 [ 71.059069][ T8531] __x64_sys_open+0x119/0x1c0 [ 71.063744][ T8531] ? do_sys_open+0x140/0x140 [ 71.068334][ T8531] ? __secure_computing+0x104/0x360 [ 71.073529][ T8531] do_syscall_64+0x35/0xb0 [ 71.077939][ T8531] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 71.083831][ T8531] RIP: 0033:0x7f2475913840 [ 71.088237][ T8531] 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.107837][ T8531] RSP: 002b:00007ffee70cd918 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 71.116257][ T8531] RAX: ffffffffffffffda RBX: 000055c5b7b9d380 RCX: 00007f2475913840 [ 71.124218][ T8531] RDX: 000055c5b6ce4fe3 RSI: 00000000000a0800 RDI: 000055c5b7b8a160 [ 71.132181][ T8531] RBP: 00007ffee70cda90 R08: 000055c5b6ce4670 R09: 0000000000000010 [ 71.140144][ T8531] R10: 000055c5b6ce4d0c R11: 0000000000000246 R12: 00007ffee70cd9e0 [ 71.148105][ T8531] R13: 000055c5b7b9e680 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