[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.167' (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 syzkaller login: [ 73.508331][ T8596] [ 73.510667][ T8596] ====================================================== [ 73.517662][ T8596] WARNING: possible circular locking dependency detected [ 73.524712][ T8596] 5.14.0-rc5-syzkaller #0 Not tainted [ 73.530158][ T8596] ------------------------------------------------------ [ 73.537161][ T8596] systemd-udevd/8596 is trying to acquire lock: [ 73.543394][ T8596] ffffffff8c487968 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 73.551824][ T8596] [ 73.551824][ T8596] but task is already holding lock: [ 73.559206][ T8596] ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 73.568704][ T8596] [ 73.568704][ T8596] which lock already depends on the new lock. [ 73.568704][ T8596] [ 73.579083][ T8596] [ 73.579083][ T8596] the existing dependency chain (in reverse order) is: [ 73.588089][ T8596] [ 73.588089][ T8596] -> #3 (major_names_lock){+.+.}-{3:3}: [ 73.595811][ T8596] __mutex_lock+0x12a/0x10a0 [ 73.600933][ T8596] __register_blkdev+0x2b/0x3e0 [ 73.606299][ T8596] register_mtd_blktrans+0x85/0x3c0 [ 73.612011][ T8596] do_one_initcall+0x103/0x650 [ 73.617290][ T8596] kernel_init_freeable+0x6b8/0x741 [ 73.623004][ T8596] kernel_init+0x1a/0x1d0 [ 73.627940][ T8596] ret_from_fork+0x1f/0x30 [ 73.632869][ T8596] [ 73.632869][ T8596] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 73.640509][ T8596] __mutex_lock+0x12a/0x10a0 [ 73.645615][ T8596] blktrans_open+0x69/0x600 [ 73.650976][ T8596] blkdev_get_whole+0xa1/0x420 [ 73.656256][ T8596] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 73.662323][ T8596] blkdev_open+0x295/0x300 [ 73.667266][ T8596] do_dentry_open+0x4c8/0x11d0 [ 73.672541][ T8596] path_openat+0x1c23/0x27f0 [ 73.677645][ T8596] do_filp_open+0x1aa/0x400 [ 73.682661][ T8596] do_sys_openat2+0x16d/0x420 [ 73.687853][ T8596] __x64_sys_open+0x119/0x1c0 [ 73.693050][ T8596] do_syscall_64+0x35/0xb0 [ 73.697982][ T8596] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 73.704389][ T8596] [ 73.704389][ T8596] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 73.712208][ T8596] __mutex_lock+0x12a/0x10a0 [ 73.717318][ T8596] del_gendisk+0x8b/0x770 [ 73.722166][ T8596] loop_control_ioctl+0x3b5/0x450 [ 73.727716][ T8596] __x64_sys_ioctl+0x193/0x200 [ 73.733007][ T8596] do_syscall_64+0x35/0xb0 [ 73.737948][ T8596] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 73.744353][ T8596] [ 73.744353][ T8596] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 73.752072][ T8596] __lock_acquire+0x2a07/0x54a0 [ 73.757434][ T8596] lock_acquire+0x1ab/0x510 [ 73.762456][ T8596] __mutex_lock+0x12a/0x10a0 [ 73.767562][ T8596] loop_add+0x9c/0x8c0 [ 73.772186][ T8596] loop_probe+0x6a/0x80 [ 73.776960][ T8596] blk_request_module+0x111/0x1d0 [ 73.782513][ T8596] blkdev_get_no_open+0x1d5/0x250 [ 73.788072][ T8596] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 73.794057][ T8596] blkdev_open+0x295/0x300 [ 73.798999][ T8596] do_dentry_open+0x4c8/0x11d0 [ 73.804464][ T8596] path_openat+0x1c23/0x27f0 [ 73.809569][ T8596] do_filp_open+0x1aa/0x400 [ 73.814685][ T8596] do_sys_openat2+0x16d/0x420 [ 73.819886][ T8596] __x64_sys_open+0x119/0x1c0 [ 73.825082][ T8596] do_syscall_64+0x35/0xb0 [ 73.830013][ T8596] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 73.836443][ T8596] [ 73.836443][ T8596] other info that might help us debug this: [ 73.836443][ T8596] [ 73.846659][ T8596] Chain exists of: [ 73.846659][ T8596] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 73.846659][ T8596] [ 73.859687][ T8596] Possible unsafe locking scenario: [ 73.859687][ T8596] [ 73.867127][ T8596] CPU0 CPU1 [ 73.872484][ T8596] ---- ---- [ 73.877836][ T8596] lock(major_names_lock); [ 73.882331][ T8596] lock(mtd_table_mutex); [ 73.889274][ T8596] lock(major_names_lock); [ 73.896284][ T8596] lock(loop_ctl_mutex); [ 73.900604][ T8596] [ 73.900604][ T8596] *** DEADLOCK *** [ 73.900604][ T8596] [ 73.908732][ T8596] 1 lock held by systemd-udevd/8596: [ 73.914003][ T8596] #0: ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 73.923934][ T8596] [ 73.923934][ T8596] stack backtrace: [ 73.929802][ T8596] CPU: 0 PID: 8596 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 73.938388][ T8596] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 73.948438][ T8596] Call Trace: [ 73.951707][ T8596] dump_stack_lvl+0xcd/0x134 [ 73.956304][ T8596] check_noncircular+0x25f/0x2e0 [ 73.961236][ T8596] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 73.967478][ T8596] ? print_circular_bug+0x1e0/0x1e0 [ 73.972669][ T8596] ? lock_chain_count+0x20/0x20 [ 73.977517][ T8596] ? lockdep_lock+0xc6/0x200 [ 73.982111][ T8596] ? call_rcu_zapped+0xb0/0xb0 [ 73.986876][ T8596] __lock_acquire+0x2a07/0x54a0 [ 73.991726][ T8596] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 73.997732][ T8596] lock_acquire+0x1ab/0x510 [ 74.002241][ T8596] ? loop_add+0x9c/0x8c0 [ 74.006485][ T8596] ? lock_release+0x720/0x720 [ 74.011157][ T8596] ? path_openat+0x1c23/0x27f0 [ 74.015948][ T8596] ? do_filp_open+0x1aa/0x400 [ 74.020621][ T8596] ? do_sys_openat2+0x16d/0x420 [ 74.025653][ T8596] ? __x64_sys_open+0x119/0x1c0 [ 74.030782][ T8596] __mutex_lock+0x12a/0x10a0 [ 74.035405][ T8596] ? loop_add+0x9c/0x8c0 [ 74.039666][ T8596] ? loop_add+0x9c/0x8c0 [ 74.043925][ T8596] ? mutex_lock_io_nested+0xf00/0xf00 [ 74.049307][ T8596] ? rcu_read_lock_sched_held+0x3a/0x70 [ 74.054882][ T8596] loop_add+0x9c/0x8c0 [ 74.058952][ T8596] ? find_inode_fast+0x16f/0x220 [ 74.063915][ T8596] loop_probe+0x6a/0x80 [ 74.068064][ T8596] ? loop_add+0x8c0/0x8c0 [ 74.072404][ T8596] blk_request_module+0x111/0x1d0 [ 74.077430][ T8596] blkdev_get_no_open+0x1d5/0x250 [ 74.082451][ T8596] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 74.087916][ T8596] ? devcgroup_check_permission+0x1bb/0x410 [ 74.093820][ T8596] blkdev_open+0x295/0x300 [ 74.098246][ T8596] do_dentry_open+0x4c8/0x11d0 [ 74.103210][ T8596] ? blkdev_get_by_dev+0x80/0x80 [ 74.108147][ T8596] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 74.114390][ T8596] ? may_open+0x1f6/0x420 [ 74.118719][ T8596] path_openat+0x1c23/0x27f0 [ 74.123309][ T8596] ? path_lookupat+0x860/0x860 [ 74.128073][ T8596] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 74.134053][ T8596] do_filp_open+0x1aa/0x400 [ 74.138574][ T8596] ? may_open_dev+0xf0/0xf0 [ 74.143086][ T8596] ? rwlock_bug.part.0+0x90/0x90 [ 74.148021][ T8596] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 74.154263][ T8596] ? _find_next_bit+0x1e3/0x260 [ 74.159116][ T8596] ? _raw_spin_unlock+0x24/0x40 [ 74.163961][ T8596] ? alloc_fd+0x2f0/0x670 [ 74.168309][ T8596] do_sys_openat2+0x16d/0x420 [ 74.172987][ T8596] ? build_open_flags+0x6f0/0x6f0 [ 74.178020][ T8596] ? __context_tracking_exit+0xb8/0xe0 [ 74.183543][ T8596] __x64_sys_open+0x119/0x1c0 [ 74.188242][ T8596] ? do_sys_open+0x140/0x140 [ 74.192840][ T8596] ? __secure_computing+0x104/0x360 [ 74.198042][ T8596] do_syscall_64+0x35/0xb0 [ 74.202457][ T8596] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 74.208351][ T8596] RIP: 0033:0x7fd0ddf1e840 [ 74.212759][ T8596] 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 [ 74.232358][ T8596] RSP: 002b:00007ffdfef836a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 74.240765][ T8596] RAX: ffffffffffffffda RBX: 000055f889c6fee0 RCX: 00007fd0ddf1e840 [ 74.248728][ T8596] RDX: 000055f889507fe3 RSI: 00000000000a0800 RDI: 000055f889c82fa0 executing program [ 74.256689][ T8596] RBP: 00007ffdfef83820 R08: 000055f889507670 R09: 0000000000000010 [ 74.264653][ T8596] R10: 000055f889507d0c R11: 0000000000000246 R12: 00007ffdfef83770 [ 74.272626][ T8596] R13: 000055f889c7e940 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