[ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Load/Save RF Kill Switch Status. [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.16' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program syzkaller login: [ 70.622553][ T8485] [ 70.624906][ T8485] ====================================================== [ 70.631921][ T8485] WARNING: possible circular locking dependency detected [ 70.638910][ T8485] 5.14.0-rc6-syzkaller #0 Not tainted [ 70.644251][ T8485] ------------------------------------------------------ [ 70.651478][ T8485] systemd-udevd/8485 is trying to acquire lock: [ 70.657694][ T8485] ffffffff8c486d68 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 70.666115][ T8485] [ 70.666115][ T8485] but task is already holding lock: [ 70.673454][ T8485] ffffffff8c1f4068 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 70.682939][ T8485] [ 70.682939][ T8485] which lock already depends on the new lock. [ 70.682939][ T8485] [ 70.693321][ T8485] [ 70.693321][ T8485] the existing dependency chain (in reverse order) is: [ 70.702315][ T8485] [ 70.702315][ T8485] -> #3 (major_names_lock){+.+.}-{3:3}: [ 70.710038][ T8485] __mutex_lock+0x12a/0x10a0 [ 70.715159][ T8485] __register_blkdev+0x2b/0x3e0 [ 70.720525][ T8485] register_mtd_blktrans+0x85/0x3c0 [ 70.726254][ T8485] do_one_initcall+0x103/0x650 [ 70.731532][ T8485] kernel_init_freeable+0x6b8/0x741 [ 70.737249][ T8485] kernel_init+0x1a/0x1d0 [ 70.742093][ T8485] ret_from_fork+0x1f/0x30 [ 70.747025][ T8485] [ 70.747025][ T8485] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 70.754661][ T8485] __mutex_lock+0x12a/0x10a0 [ 70.759766][ T8485] blktrans_open+0x69/0x600 [ 70.764779][ T8485] blkdev_get_whole+0xa1/0x420 [ 70.770053][ T8485] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 70.776116][ T8485] blkdev_open+0x295/0x300 [ 70.781043][ T8485] do_dentry_open+0x4c8/0x11d0 [ 70.786320][ T8485] path_openat+0x1c23/0x27f0 [ 70.791420][ T8485] do_filp_open+0x1aa/0x400 [ 70.796439][ T8485] do_sys_openat2+0x16d/0x420 [ 70.801643][ T8485] __x64_sys_open+0x119/0x1c0 [ 70.806833][ T8485] do_syscall_64+0x35/0xb0 [ 70.811763][ T8485] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.818185][ T8485] [ 70.818185][ T8485] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 70.825991][ T8485] __mutex_lock+0x12a/0x10a0 [ 70.831092][ T8485] del_gendisk+0x8b/0x770 [ 70.835945][ T8485] loop_control_ioctl+0x3b5/0x450 [ 70.841481][ T8485] __do_compat_sys_ioctl+0x1c7/0x290 [ 70.847282][ T8485] __do_fast_syscall_32+0x65/0xf0 [ 70.852819][ T8485] do_fast_syscall_32+0x2f/0x70 [ 70.858183][ T8485] entry_SYSENTER_compat_after_hwframe+0x4d/0x5c [ 70.865026][ T8485] [ 70.865026][ T8485] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 70.872571][ T8485] __lock_acquire+0x2a07/0x54a0 [ 70.877932][ T8485] lock_acquire+0x1ab/0x510 [ 70.882949][ T8485] __mutex_lock+0x12a/0x10a0 [ 70.888054][ T8485] loop_add+0x9c/0x8c0 [ 70.892634][ T8485] loop_probe+0x6a/0x80 [ 70.897302][ T8485] blk_request_module+0x111/0x1d0 [ 70.902855][ T8485] blkdev_get_no_open+0x1d5/0x250 [ 70.908387][ T8485] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 70.914355][ T8485] blkdev_open+0x295/0x300 [ 70.919283][ T8485] do_dentry_open+0x4c8/0x11d0 [ 70.924560][ T8485] path_openat+0x1c23/0x27f0 [ 70.929663][ T8485] do_filp_open+0x1aa/0x400 [ 70.934680][ T8485] do_sys_openat2+0x16d/0x420 [ 70.939874][ T8485] __x64_sys_open+0x119/0x1c0 [ 70.945092][ T8485] do_syscall_64+0x35/0xb0 [ 70.950037][ T8485] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.956456][ T8485] [ 70.956456][ T8485] other info that might help us debug this: [ 70.956456][ T8485] [ 70.966668][ T8485] Chain exists of: [ 70.966668][ T8485] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 70.966668][ T8485] [ 70.979699][ T8485] Possible unsafe locking scenario: [ 70.979699][ T8485] [ 70.987135][ T8485] CPU0 CPU1 [ 70.992481][ T8485] ---- ---- [ 70.997829][ T8485] lock(major_names_lock); [ 71.002324][ T8485] lock(mtd_table_mutex); [ 71.009245][ T8485] lock(major_names_lock); [ 71.016257][ T8485] lock(loop_ctl_mutex); [ 71.020573][ T8485] [ 71.020573][ T8485] *** DEADLOCK *** [ 71.020573][ T8485] [ 71.028699][ T8485] 1 lock held by systemd-udevd/8485: [ 71.033970][ T8485] #0: ffffffff8c1f4068 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 71.043898][ T8485] [ 71.043898][ T8485] stack backtrace: [ 71.049775][ T8485] CPU: 0 PID: 8485 Comm: systemd-udevd Not tainted 5.14.0-rc6-syzkaller #0 [ 71.058356][ T8485] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 71.068399][ T8485] Call Trace: [ 71.071669][ T8485] dump_stack_lvl+0xcd/0x134 [ 71.076266][ T8485] check_noncircular+0x25f/0x2e0 [ 71.081196][ T8485] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 71.087169][ T8485] ? print_circular_bug+0x1e0/0x1e0 [ 71.092367][ T8485] ? lock_chain_count+0x20/0x20 [ 71.097220][ T8485] ? lockdep_lock+0xc6/0x200 [ 71.101813][ T8485] ? call_rcu_zapped+0xb0/0xb0 [ 71.106664][ T8485] __lock_acquire+0x2a07/0x54a0 [ 71.111512][ T8485] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 71.117487][ T8485] lock_acquire+0x1ab/0x510 [ 71.121985][ T8485] ? loop_add+0x9c/0x8c0 [ 71.126221][ T8485] ? lock_release+0x720/0x720 [ 71.130910][ T8485] ? path_openat+0x1c23/0x27f0 [ 71.135673][ T8485] ? do_filp_open+0x1aa/0x400 [ 71.140346][ T8485] ? do_sys_openat2+0x16d/0x420 [ 71.145194][ T8485] ? __x64_sys_open+0x119/0x1c0 [ 71.150050][ T8485] __mutex_lock+0x12a/0x10a0 [ 71.154653][ T8485] ? loop_add+0x9c/0x8c0 [ 71.158915][ T8485] ? loop_add+0x9c/0x8c0 [ 71.163151][ T8485] ? mutex_lock_io_nested+0xf00/0xf00 [ 71.168523][ T8485] ? rcu_read_lock_sched_held+0x3a/0x70 [ 71.174074][ T8485] loop_add+0x9c/0x8c0 [ 71.178144][ T8485] ? find_inode_fast+0x16f/0x220 [ 71.183091][ T8485] loop_probe+0x6a/0x80 [ 71.187247][ T8485] ? loop_add+0x8c0/0x8c0 [ 71.191569][ T8485] blk_request_module+0x111/0x1d0 [ 71.196598][ T8485] blkdev_get_no_open+0x1d5/0x250 [ 71.201618][ T8485] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 71.207077][ T8485] ? devcgroup_check_permission+0x1bb/0x410 [ 71.212977][ T8485] blkdev_open+0x295/0x300 [ 71.217388][ T8485] do_dentry_open+0x4c8/0x11d0 [ 71.222149][ T8485] ? blkdev_get_by_dev+0x80/0x80 [ 71.227079][ T8485] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 71.233325][ T8485] ? may_open+0x1f6/0x420 [ 71.237666][ T8485] path_openat+0x1c23/0x27f0 [ 71.242253][ T8485] ? path_lookupat+0x860/0x860 [ 71.247012][ T8485] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 71.252991][ T8485] do_filp_open+0x1aa/0x400 [ 71.257511][ T8485] ? may_open_dev+0xf0/0xf0 [ 71.262020][ T8485] ? rwlock_bug.part.0+0x90/0x90 [ 71.266958][ T8485] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 71.273201][ T8485] ? _find_next_bit+0x1e3/0x260 [ 71.278050][ T8485] ? _raw_spin_unlock+0x24/0x40 [ 71.282908][ T8485] ? alloc_fd+0x2f0/0x670 [ 71.287242][ T8485] do_sys_openat2+0x16d/0x420 [ 71.291918][ T8485] ? build_open_flags+0x6f0/0x6f0 [ 71.296941][ T8485] ? __context_tracking_exit+0xb8/0xe0 [ 71.302504][ T8485] __x64_sys_open+0x119/0x1c0 [ 71.307181][ T8485] ? do_sys_open+0x140/0x140 [ 71.311769][ T8485] ? __secure_computing+0x104/0x360 [ 71.316978][ T8485] do_syscall_64+0x35/0xb0 [ 71.321390][ T8485] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 71.327278][ T8485] RIP: 0033:0x7f1893c1f840 [ 71.331684][ T8485] 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.351546][ T8485] RSP: 002b:00007ffc32205ac8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 71.359955][ T8485] RAX: ffffffffffffffda RBX: 0000557818fbc8f0 RCX: 00007f1893c1f840 [ 71.367918][ T8485] RDX: 0000557817c48fe3 RSI: 00000000000a0800 RDI: 0000557818fbc830 [ 71.375879][ T8485] RBP: 00007ffc32205c40 R08: 0000557817c48670 R09: 0000000000000010 [ 71.383838][ T8485] R10: 0000557817c48d0c R11: 0000000000000246 R12: 00007ffc32205b90 [ 71.391795][ T8485] R13: 0000557818fbe010 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