[ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Starting Load/Save RF Kill Switch Status... Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.1.8' (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 syzkaller login: [ 70.598979][ T8637] [ 70.601332][ T8637] ====================================================== [ 70.608325][ T8637] WARNING: possible circular locking dependency detected [ 70.615316][ T8637] 5.14.0-rc4-syzkaller #0 Not tainted [ 70.620660][ T8637] ------------------------------------------------------ [ 70.627653][ T8637] systemd-udevd/8637 is trying to acquire lock: [ 70.633869][ T8637] ffffffff8c487928 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 70.642300][ T8637] [ 70.642300][ T8637] but task is already holding lock: [ 70.649644][ T8637] ffffffff8c1f3ec8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 70.659106][ T8637] [ 70.659106][ T8637] which lock already depends on the new lock. [ 70.659106][ T8637] [ 70.669497][ T8637] [ 70.669497][ T8637] the existing dependency chain (in reverse order) is: [ 70.678506][ T8637] [ 70.678506][ T8637] -> #3 (major_names_lock){+.+.}-{3:3}: [ 70.686211][ T8637] __mutex_lock+0x12a/0x10a0 [ 70.691315][ T8637] __register_blkdev+0x2b/0x3e0 [ 70.696668][ T8637] register_mtd_blktrans+0x85/0x3c0 [ 70.702367][ T8637] do_one_initcall+0x103/0x650 [ 70.707633][ T8637] kernel_init_freeable+0x6b8/0x741 [ 70.713334][ T8637] kernel_init+0x1a/0x1d0 [ 70.718162][ T8637] ret_from_fork+0x1f/0x30 [ 70.723107][ T8637] [ 70.723107][ T8637] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 70.730736][ T8637] __mutex_lock+0x12a/0x10a0 [ 70.735831][ T8637] blktrans_open+0x69/0x600 [ 70.740832][ T8637] blkdev_get_whole+0xa1/0x420 [ 70.746107][ T8637] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 70.752239][ T8637] blkdev_open+0x295/0x300 [ 70.757159][ T8637] do_dentry_open+0x4c8/0x11d0 [ 70.762426][ T8637] path_openat+0x1c23/0x27f0 [ 70.767532][ T8637] do_filp_open+0x1aa/0x400 [ 70.772546][ T8637] do_sys_openat2+0x16d/0x420 [ 70.777724][ T8637] __x64_sys_open+0x119/0x1c0 [ 70.782901][ T8637] do_syscall_64+0x35/0xb0 [ 70.787819][ T8637] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.794225][ T8637] [ 70.794225][ T8637] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 70.802025][ T8637] __mutex_lock+0x12a/0x10a0 [ 70.807119][ T8637] del_gendisk+0x8b/0x770 [ 70.811954][ T8637] loop_control_ioctl+0x3b5/0x450 [ 70.817483][ T8637] __x64_sys_ioctl+0x193/0x200 [ 70.822749][ T8637] do_syscall_64+0x35/0xb0 [ 70.827667][ T8637] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.834060][ T8637] [ 70.834060][ T8637] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 70.841594][ T8637] __lock_acquire+0x2a07/0x54a0 [ 70.846948][ T8637] lock_acquire+0x1ab/0x510 [ 70.851964][ T8637] __mutex_lock+0x12a/0x10a0 [ 70.857062][ T8637] loop_add+0x9c/0x8c0 [ 70.861639][ T8637] loop_probe+0x6a/0x80 [ 70.866296][ T8637] blk_request_module+0x111/0x1d0 [ 70.871821][ T8637] blkdev_get_no_open+0x1d5/0x250 [ 70.877350][ T8637] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 70.883319][ T8637] blkdev_open+0x295/0x300 [ 70.888254][ T8637] do_dentry_open+0x4c8/0x11d0 [ 70.893515][ T8637] path_openat+0x1c23/0x27f0 [ 70.898602][ T8637] do_filp_open+0x1aa/0x400 [ 70.903603][ T8637] do_sys_openat2+0x16d/0x420 [ 70.908781][ T8637] __x64_sys_open+0x119/0x1c0 [ 70.913958][ T8637] do_syscall_64+0x35/0xb0 [ 70.918880][ T8637] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.925273][ T8637] [ 70.925273][ T8637] other info that might help us debug this: [ 70.925273][ T8637] [ 70.935481][ T8637] Chain exists of: [ 70.935481][ T8637] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 70.935481][ T8637] [ 70.948489][ T8637] Possible unsafe locking scenario: [ 70.948489][ T8637] [ 70.955915][ T8637] CPU0 CPU1 [ 70.961253][ T8637] ---- ---- [ 70.966602][ T8637] lock(major_names_lock); [ 70.971080][ T8637] lock(mtd_table_mutex); [ 70.977994][ T8637] lock(major_names_lock); [ 70.985001][ T8637] lock(loop_ctl_mutex); [ 70.989312][ T8637] [ 70.989312][ T8637] *** DEADLOCK *** [ 70.989312][ T8637] [ 70.997432][ T8637] 1 lock held by systemd-udevd/8637: [ 71.002688][ T8637] #0: ffffffff8c1f3ec8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 71.012585][ T8637] [ 71.012585][ T8637] stack backtrace: [ 71.018451][ T8637] CPU: 0 PID: 8637 Comm: systemd-udevd Not tainted 5.14.0-rc4-syzkaller #0 [ 71.027020][ T8637] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 71.037056][ T8637] Call Trace: [ 71.040316][ T8637] dump_stack_lvl+0xcd/0x134 [ 71.044891][ T8637] check_noncircular+0x25f/0x2e0 [ 71.049808][ T8637] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 71.055770][ T8637] ? print_circular_bug+0x1e0/0x1e0 [ 71.060945][ T8637] ? lock_chain_count+0x20/0x20 [ 71.065775][ T8637] ? lockdep_lock+0xc6/0x200 [ 71.070349][ T8637] ? call_rcu_zapped+0xb0/0xb0 [ 71.075099][ T8637] __lock_acquire+0x2a07/0x54a0 [ 71.079943][ T8637] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 71.085902][ T8637] lock_acquire+0x1ab/0x510 [ 71.090384][ T8637] ? loop_add+0x9c/0x8c0 [ 71.094608][ T8637] ? lock_release+0x720/0x720 [ 71.099261][ T8637] ? path_openat+0x1c23/0x27f0 [ 71.104004][ T8637] ? do_filp_open+0x1aa/0x400 [ 71.108674][ T8637] ? do_sys_openat2+0x16d/0x420 [ 71.113505][ T8637] ? __x64_sys_open+0x119/0x1c0 [ 71.118339][ T8637] __mutex_lock+0x12a/0x10a0 [ 71.122922][ T8637] ? loop_add+0x9c/0x8c0 [ 71.127145][ T8637] ? loop_add+0x9c/0x8c0 [ 71.131365][ T8637] ? mark_held_locks+0x9f/0xe0 [ 71.136116][ T8637] ? mutex_lock_io_nested+0xf00/0xf00 [ 71.141475][ T8637] ? rcu_read_lock_sched_held+0x3a/0x70 [ 71.147007][ T8637] loop_add+0x9c/0x8c0 [ 71.151070][ T8637] ? find_inode_fast+0x16f/0x220 [ 71.155998][ T8637] loop_probe+0x6a/0x80 [ 71.160137][ T8637] ? loop_add+0x8c0/0x8c0 [ 71.164449][ T8637] blk_request_module+0x111/0x1d0 [ 71.169472][ T8637] blkdev_get_no_open+0x1d5/0x250 [ 71.174477][ T8637] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 71.179914][ T8637] ? devcgroup_check_permission+0x1bb/0x410 [ 71.185787][ T8637] blkdev_open+0x295/0x300 [ 71.190184][ T8637] do_dentry_open+0x4c8/0x11d0 [ 71.194929][ T8637] ? blkdev_get_by_dev+0x80/0x80 [ 71.199848][ T8637] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 71.206079][ T8637] ? may_open+0x1f6/0x420 [ 71.210388][ T8637] path_openat+0x1c23/0x27f0 [ 71.214959][ T8637] ? path_lookupat+0x860/0x860 [ 71.219706][ T8637] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 71.225703][ T8637] do_filp_open+0x1aa/0x400 [ 71.230189][ T8637] ? may_open_dev+0xf0/0xf0 [ 71.234679][ T8637] ? rwlock_bug.part.0+0x90/0x90 [ 71.239604][ T8637] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 71.245913][ T8637] ? _find_next_bit+0x1e3/0x260 [ 71.250743][ T8637] ? _raw_spin_unlock+0x24/0x40 [ 71.255571][ T8637] ? alloc_fd+0x2f0/0x670 [ 71.259886][ T8637] do_sys_openat2+0x16d/0x420 [ 71.264546][ T8637] ? build_open_flags+0x6f0/0x6f0 [ 71.269552][ T8637] ? __context_tracking_exit+0xb8/0xe0 [ 71.275009][ T8637] __x64_sys_open+0x119/0x1c0 [ 71.279666][ T8637] ? do_sys_open+0x140/0x140 [ 71.284237][ T8637] ? __secure_computing+0x104/0x360 [ 71.289433][ T8637] do_syscall_64+0x35/0xb0 [ 71.293831][ T8637] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 71.299707][ T8637] RIP: 0033:0x7f7f25052840 [ 71.304123][ T8637] 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.323709][ T8637] RSP: 002b:00007ffe8a838b48 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 71.332117][ T8637] RAX: ffffffffffffffda RBX: 000055c82ea43810 RCX: 00007f7f25052840 [ 71.340070][ T8637] RDX: 000055c82d568fe3 RSI: 00000000000a0800 RDI: 000055c82ea4a1a0 executing program [ 71.348035][ T8637] RBP: 00007ffe8a838cc0 R08: 000055c82d568670 R09: 0000000000000010 [ 71.355995][ T8637] R10: 000055c82d568d0c R11: 0000000000000246 R12: 00007ffe8a838c10 [ 71.363945][ T8637] R13: 000055c82ea35880 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