[ OK ] Reached target Login Prompts. [ 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. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.1.98' (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 syzkaller login: [ 73.158241][ T8561] [ 73.160603][ T8561] ====================================================== [ 73.167611][ T8561] WARNING: possible circular locking dependency detected [ 73.174620][ T8561] 5.14.0-rc5-syzkaller #0 Not tainted [ 73.179965][ T8561] ------------------------------------------------------ [ 73.186956][ T8561] systemd-udevd/8561 is trying to acquire lock: [ 73.193256][ T8561] ffffffff8c487968 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 73.201763][ T8561] [ 73.201763][ T8561] but task is already holding lock: [ 73.209185][ T8561] ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 73.218638][ T8561] [ 73.218638][ T8561] which lock already depends on the new lock. [ 73.218638][ T8561] [ 73.229028][ T8561] [ 73.229028][ T8561] the existing dependency chain (in reverse order) is: [ 73.238012][ T8561] [ 73.238012][ T8561] -> #3 (major_names_lock){+.+.}-{3:3}: [ 73.245711][ T8561] __mutex_lock+0x12a/0x10a0 [ 73.250817][ T8561] __register_blkdev+0x2b/0x3e0 [ 73.256180][ T8561] register_mtd_blktrans+0x85/0x3c0 [ 73.261878][ T8561] do_one_initcall+0x103/0x650 [ 73.267229][ T8561] kernel_init_freeable+0x6b8/0x741 [ 73.272925][ T8561] kernel_init+0x1a/0x1d0 [ 73.277760][ T8561] ret_from_fork+0x1f/0x30 [ 73.282780][ T8561] [ 73.282780][ T8561] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 73.290403][ T8561] __mutex_lock+0x12a/0x10a0 [ 73.295496][ T8561] blktrans_open+0x69/0x600 [ 73.300514][ T8561] blkdev_get_whole+0xa1/0x420 [ 73.305787][ T8561] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 73.311856][ T8561] blkdev_open+0x295/0x300 [ 73.316768][ T8561] do_dentry_open+0x4c8/0x11d0 [ 73.322033][ T8561] path_openat+0x1c23/0x27f0 [ 73.327122][ T8561] do_filp_open+0x1aa/0x400 [ 73.332131][ T8561] do_sys_openat2+0x16d/0x420 [ 73.337306][ T8561] __x64_sys_open+0x119/0x1c0 [ 73.342494][ T8561] do_syscall_64+0x35/0xb0 [ 73.347409][ T8561] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 73.353802][ T8561] [ 73.353802][ T8561] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 73.361686][ T8561] __mutex_lock+0x12a/0x10a0 [ 73.366797][ T8561] del_gendisk+0x8b/0x770 [ 73.371638][ T8561] loop_control_ioctl+0x3b5/0x450 [ 73.377166][ T8561] __x64_sys_ioctl+0x193/0x200 [ 73.382439][ T8561] do_syscall_64+0x35/0xb0 [ 73.387365][ T8561] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 73.393790][ T8561] [ 73.393790][ T8561] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 73.401326][ T8561] __lock_acquire+0x2a07/0x54a0 [ 73.406693][ T8561] lock_acquire+0x1ab/0x510 [ 73.411724][ T8561] __mutex_lock+0x12a/0x10a0 [ 73.416829][ T8561] loop_add+0x9c/0x8c0 [ 73.421465][ T8561] loop_probe+0x6a/0x80 [ 73.426139][ T8561] blk_request_module+0x111/0x1d0 [ 73.431782][ T8561] blkdev_get_no_open+0x1d5/0x250 [ 73.437313][ T8561] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 73.443278][ T8561] blkdev_open+0x295/0x300 [ 73.448195][ T8561] do_dentry_open+0x4c8/0x11d0 [ 73.453472][ T8561] path_openat+0x1c23/0x27f0 [ 73.458564][ T8561] do_filp_open+0x1aa/0x400 [ 73.463569][ T8561] do_sys_openat2+0x16d/0x420 [ 73.468746][ T8561] __x64_sys_open+0x119/0x1c0 [ 73.473923][ T8561] do_syscall_64+0x35/0xb0 [ 73.478841][ T8561] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 73.485252][ T8561] [ 73.485252][ T8561] other info that might help us debug this: [ 73.485252][ T8561] [ 73.495643][ T8561] Chain exists of: [ 73.495643][ T8561] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 73.495643][ T8561] [ 73.508648][ T8561] Possible unsafe locking scenario: [ 73.508648][ T8561] [ 73.516072][ T8561] CPU0 CPU1 [ 73.521451][ T8561] ---- ---- [ 73.526796][ T8561] lock(major_names_lock); [ 73.531276][ T8561] lock(mtd_table_mutex); [ 73.538187][ T8561] lock(major_names_lock); [ 73.545225][ T8561] lock(loop_ctl_mutex); [ 73.549529][ T8561] [ 73.549529][ T8561] *** DEADLOCK *** [ 73.549529][ T8561] [ 73.557649][ T8561] 1 lock held by systemd-udevd/8561: [ 73.562950][ T8561] #0: ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 73.572845][ T8561] [ 73.572845][ T8561] stack backtrace: [ 73.578705][ T8561] CPU: 0 PID: 8561 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 73.587277][ T8561] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 73.597316][ T8561] Call Trace: [ 73.600588][ T8561] dump_stack_lvl+0xcd/0x134 [ 73.605178][ T8561] check_noncircular+0x25f/0x2e0 [ 73.610107][ T8561] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 73.616092][ T8561] ? print_circular_bug+0x1e0/0x1e0 [ 73.621269][ T8561] ? lock_chain_count+0x20/0x20 [ 73.626099][ T8561] ? lockdep_lock+0xc6/0x200 [ 73.630672][ T8561] ? call_rcu_zapped+0xb0/0xb0 [ 73.635429][ T8561] __lock_acquire+0x2a07/0x54a0 [ 73.640269][ T8561] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 73.646762][ T8561] lock_acquire+0x1ab/0x510 [ 73.651253][ T8561] ? loop_add+0x9c/0x8c0 [ 73.655478][ T8561] ? lock_release+0x720/0x720 [ 73.660220][ T8561] ? path_openat+0x1c23/0x27f0 [ 73.664978][ T8561] ? do_filp_open+0x1aa/0x400 [ 73.669634][ T8561] ? do_sys_openat2+0x16d/0x420 [ 73.674466][ T8561] ? __x64_sys_open+0x119/0x1c0 [ 73.679301][ T8561] __mutex_lock+0x12a/0x10a0 [ 73.683962][ T8561] ? loop_add+0x9c/0x8c0 [ 73.688186][ T8561] ? loop_add+0x9c/0x8c0 [ 73.692406][ T8561] ? mark_held_locks+0x9f/0xe0 [ 73.697171][ T8561] ? mutex_lock_io_nested+0xf00/0xf00 [ 73.702526][ T8561] ? rcu_read_lock_sched_held+0x3a/0x70 [ 73.708059][ T8561] loop_add+0x9c/0x8c0 [ 73.712109][ T8561] ? find_inode_fast+0x16f/0x220 [ 73.717029][ T8561] loop_probe+0x6a/0x80 [ 73.721169][ T8561] ? loop_add+0x8c0/0x8c0 [ 73.725478][ T8561] blk_request_module+0x111/0x1d0 [ 73.730488][ T8561] blkdev_get_no_open+0x1d5/0x250 [ 73.735495][ T8561] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 73.740950][ T8561] ? devcgroup_check_permission+0x1bb/0x410 [ 73.746928][ T8561] blkdev_open+0x295/0x300 [ 73.751341][ T8561] do_dentry_open+0x4c8/0x11d0 [ 73.756088][ T8561] ? blkdev_get_by_dev+0x80/0x80 [ 73.761003][ T8561] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 73.767228][ T8561] ? may_open+0x1f6/0x420 [ 73.771536][ T8561] path_openat+0x1c23/0x27f0 [ 73.776104][ T8561] ? path_lookupat+0x860/0x860 [ 73.780844][ T8561] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 73.786806][ T8561] do_filp_open+0x1aa/0x400 [ 73.791392][ T8561] ? may_open_dev+0xf0/0xf0 [ 73.795881][ T8561] ? rwlock_bug.part.0+0x90/0x90 [ 73.800813][ T8561] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 73.807134][ T8561] ? _find_next_bit+0x1e3/0x260 [ 73.812072][ T8561] ? _raw_spin_unlock+0x24/0x40 [ 73.816910][ T8561] ? alloc_fd+0x2f0/0x670 [ 73.821229][ T8561] do_sys_openat2+0x16d/0x420 [ 73.825893][ T8561] ? build_open_flags+0x6f0/0x6f0 [ 73.830906][ T8561] ? __context_tracking_exit+0xb8/0xe0 [ 73.836354][ T8561] __x64_sys_open+0x119/0x1c0 [ 73.841015][ T8561] ? do_sys_open+0x140/0x140 [ 73.845589][ T8561] ? __secure_computing+0x104/0x360 [ 73.850788][ T8561] do_syscall_64+0x35/0xb0 [ 73.855210][ T8561] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 73.861101][ T8561] RIP: 0033:0x7f628fcb8840 [ 73.865497][ T8561] 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 [ 73.885093][ T8561] RSP: 002b:00007ffdc3911d68 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 73.893493][ T8561] RAX: ffffffffffffffda RBX: 000055dbdf4ae8f0 RCX: 00007f628fcb8840 [ 73.901447][ T8561] RDX: 000055dbdef90fe3 RSI: 00000000000a0800 RDI: 000055dbdf4ae830 executing program [ 73.909410][ T8561] RBP: 00007ffdc3911ee0 R08: 000055dbdef90670 R09: 0000000000000010 [ 73.917359][ T8561] R10: 000055dbdef90d0c R11: 0000000000000246 R12: 00007ffdc3911e30 [ 73.925397][ T8561] R13: 000055dbdf4b0010 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