[ 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.0.249' (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 executing program 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: [ 58.172097][ T8765] [ 58.174798][ T8765] ====================================================== [ 58.181795][ T8765] WARNING: possible circular locking dependency detected [ 58.188972][ T8765] 5.14.0-rc5-syzkaller #0 Not tainted [ 58.194315][ T8765] ------------------------------------------------------ [ 58.201487][ T8765] systemd-udevd/8765 is trying to acquire lock: [ 58.207949][ T8765] ffffffff8c487968 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 58.216846][ T8765] [ 58.216846][ T8765] but task is already holding lock: [ 58.224781][ T8765] ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 58.234362][ T8765] [ 58.234362][ T8765] which lock already depends on the new lock. [ 58.234362][ T8765] [ 58.245091][ T8765] [ 58.245091][ T8765] the existing dependency chain (in reverse order) is: [ 58.254078][ T8765] [ 58.254078][ T8765] -> #3 (major_names_lock){+.+.}-{3:3}: [ 58.261781][ T8765] __mutex_lock+0x12a/0x10a0 [ 58.266885][ T8765] __register_blkdev+0x2b/0x3e0 [ 58.272245][ T8765] register_mtd_blktrans+0x85/0x3c0 [ 58.278010][ T8765] do_one_initcall+0x103/0x650 [ 58.283275][ T8765] kernel_init_freeable+0x6b8/0x741 [ 58.288974][ T8765] kernel_init+0x1a/0x1d0 [ 58.293889][ T8765] ret_from_fork+0x1f/0x30 [ 58.298805][ T8765] [ 58.298805][ T8765] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 58.306419][ T8765] __mutex_lock+0x12a/0x10a0 [ 58.311509][ T8765] blktrans_open+0x69/0x600 [ 58.316515][ T8765] blkdev_get_whole+0xa1/0x420 [ 58.321776][ T8765] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 58.328020][ T8765] blkdev_open+0x295/0x300 [ 58.332937][ T8765] do_dentry_open+0x4c8/0x11d0 [ 58.338201][ T8765] path_openat+0x1c23/0x27f0 [ 58.343293][ T8765] do_filp_open+0x1aa/0x400 [ 58.348296][ T8765] do_sys_openat2+0x16d/0x420 [ 58.353474][ T8765] __x64_sys_open+0x119/0x1c0 [ 58.358649][ T8765] do_syscall_64+0x35/0xb0 [ 58.363570][ T8765] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 58.369973][ T8765] [ 58.369973][ T8765] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 58.377935][ T8765] __mutex_lock+0x12a/0x10a0 [ 58.383028][ T8765] del_gendisk+0x8b/0x770 [ 58.387948][ T8765] loop_control_ioctl+0x3b5/0x450 [ 58.393534][ T8765] __x64_sys_ioctl+0x193/0x200 [ 58.398922][ T8765] do_syscall_64+0x35/0xb0 [ 58.403944][ T8765] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 58.410334][ T8765] [ 58.410334][ T8765] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 58.417954][ T8765] __lock_acquire+0x2a07/0x54a0 [ 58.423306][ T8765] lock_acquire+0x1ab/0x510 [ 58.428728][ T8765] __mutex_lock+0x12a/0x10a0 [ 58.433818][ T8765] loop_add+0x9c/0x8c0 [ 58.438385][ T8765] loop_probe+0x6a/0x80 [ 58.443044][ T8765] blk_request_module+0x111/0x1d0 [ 58.448659][ T8765] blkdev_get_no_open+0x1d5/0x250 [ 58.454180][ T8765] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 58.460136][ T8765] blkdev_open+0x295/0x300 [ 58.465058][ T8765] do_dentry_open+0x4c8/0x11d0 [ 58.470320][ T8765] path_openat+0x1c23/0x27f0 [ 58.475413][ T8765] do_filp_open+0x1aa/0x400 [ 58.480417][ T8765] do_sys_openat2+0x16d/0x420 [ 58.485594][ T8765] __x64_sys_open+0x119/0x1c0 [ 58.490768][ T8765] do_syscall_64+0x35/0xb0 [ 58.495685][ T8765] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 58.502078][ T8765] [ 58.502078][ T8765] other info that might help us debug this: [ 58.502078][ T8765] [ 58.512390][ T8765] Chain exists of: [ 58.512390][ T8765] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 58.512390][ T8765] [ 58.525411][ T8765] Possible unsafe locking scenario: [ 58.525411][ T8765] [ 58.532833][ T8765] CPU0 CPU1 [ 58.538178][ T8765] ---- ---- [ 58.543516][ T8765] lock(major_names_lock); [ 58.548084][ T8765] lock(mtd_table_mutex); [ 58.554994][ T8765] lock(major_names_lock); [ 58.561991][ T8765] lock(loop_ctl_mutex); [ 58.566382][ T8765] [ 58.566382][ T8765] *** DEADLOCK *** [ 58.566382][ T8765] [ 58.574606][ T8765] 1 lock held by systemd-udevd/8765: [ 58.579952][ T8765] #0: ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 58.589840][ T8765] [ 58.589840][ T8765] stack backtrace: [ 58.595717][ T8765] CPU: 0 PID: 8765 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 58.604278][ T8765] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 58.614313][ T8765] Call Trace: [ 58.617576][ T8765] dump_stack_lvl+0xcd/0x134 [ 58.622151][ T8765] check_noncircular+0x25f/0x2e0 [ 58.627241][ T8765] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 58.633205][ T8765] ? print_circular_bug+0x1e0/0x1e0 [ 58.638384][ T8765] ? lock_chain_count+0x20/0x20 [ 58.643219][ T8765] ? lockdep_lock+0xc6/0x200 [ 58.647789][ T8765] ? call_rcu_zapped+0xb0/0xb0 [ 58.652535][ T8765] __lock_acquire+0x2a07/0x54a0 [ 58.657366][ T8765] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 58.663329][ T8765] lock_acquire+0x1ab/0x510 [ 58.667811][ T8765] ? loop_add+0x9c/0x8c0 [ 58.672036][ T8765] ? lock_release+0x720/0x720 [ 58.676690][ T8765] ? path_openat+0x1c23/0x27f0 [ 58.681791][ T8765] ? do_filp_open+0x1aa/0x400 [ 58.686445][ T8765] ? do_sys_openat2+0x16d/0x420 [ 58.691279][ T8765] ? __x64_sys_open+0x119/0x1c0 [ 58.696128][ T8765] __mutex_lock+0x12a/0x10a0 [ 58.700717][ T8765] ? loop_add+0x9c/0x8c0 [ 58.704939][ T8765] ? loop_add+0x9c/0x8c0 [ 58.709161][ T8765] ? mutex_lock_io_nested+0xf00/0xf00 [ 58.714517][ T8765] ? rcu_read_lock_sched_held+0x3a/0x70 [ 58.720046][ T8765] loop_add+0x9c/0x8c0 [ 58.724094][ T8765] ? find_inode_fast+0x16f/0x220 [ 58.729011][ T8765] loop_probe+0x6a/0x80 [ 58.733145][ T8765] ? loop_add+0x8c0/0x8c0 [ 58.737452][ T8765] blk_request_module+0x111/0x1d0 [ 58.742458][ T8765] blkdev_get_no_open+0x1d5/0x250 [ 58.747471][ T8765] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 58.752909][ T8765] ? devcgroup_check_permission+0x1bb/0x410 [ 58.758787][ T8765] blkdev_open+0x295/0x300 [ 58.763191][ T8765] do_dentry_open+0x4c8/0x11d0 [ 58.767936][ T8765] ? blkdev_get_by_dev+0x80/0x80 [ 58.773220][ T8765] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 58.779445][ T8765] ? may_open+0x1f6/0x420 [ 58.783757][ T8765] path_openat+0x1c23/0x27f0 [ 58.788334][ T8765] ? path_lookupat+0x860/0x860 [ 58.793303][ T8765] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 58.799783][ T8765] do_filp_open+0x1aa/0x400 [ 58.804267][ T8765] ? may_open_dev+0xf0/0xf0 [ 58.808753][ T8765] ? rwlock_bug.part.0+0x90/0x90 [ 58.813689][ T8765] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 58.819910][ T8765] ? _find_next_bit+0x1e3/0x260 [ 58.824761][ T8765] ? _raw_spin_unlock+0x24/0x40 [ 58.829593][ T8765] ? alloc_fd+0x2f0/0x670 [ 58.833911][ T8765] do_sys_openat2+0x16d/0x420 [ 58.838569][ T8765] ? build_open_flags+0x6f0/0x6f0 [ 58.843574][ T8765] ? __context_tracking_exit+0xb8/0xe0 [ 58.849018][ T8765] __x64_sys_open+0x119/0x1c0 [ 58.853677][ T8765] ? do_sys_open+0x140/0x140 [ 58.858246][ T8765] ? __secure_computing+0x104/0x360 [ 58.863423][ T8765] do_syscall_64+0x35/0xb0 [ 58.867823][ T8765] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 58.873698][ T8765] RIP: 0033:0x7fcdc75f3840 [ 58.878092][ T8765] 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 [ 58.897677][ T8765] RSP: 002b:00007ffd890c6988 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 58.906155][ T8765] RAX: ffffffffffffffda RBX: 000055edc1f6a8f0 RCX: 00007fcdc75f3840 [ 58.914104][ T8765] RDX: 000055edc08bffe3 RSI: 00000000000a0800 RDI: 000055edc1f6a830 executing program executing program executing program executing program executing program executing program [ 58.922054][ T8765] RBP: 00007ffd890c6b00 R08: 000055edc08bf670 R09: 0000000000000010 [ 58.930004][ T8765] R10: 00007fcdc736dd70 R11: 0000000000000246 R12: 00007ffd890c6a50 [ 58.937954][ T8765] R13: 000055edc1f6c010 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