[ 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.1.39' (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 syzkaller login: [ 72.082754][ T8562] [ 72.085125][ T8562] ====================================================== [ 72.092199][ T8562] WARNING: possible circular locking dependency detected [ 72.099201][ T8562] 5.14.0-rc5-syzkaller #0 Not tainted [ 72.104550][ T8562] ------------------------------------------------------ [ 72.111543][ T8562] systemd-udevd/8562 is trying to acquire lock: [ 72.117755][ T8562] ffffffff8c487968 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 72.126177][ T8562] [ 72.126177][ T8562] but task is already holding lock: [ 72.133516][ T8562] ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 72.142979][ T8562] [ 72.142979][ T8562] which lock already depends on the new lock. [ 72.142979][ T8562] [ 72.153406][ T8562] [ 72.153406][ T8562] the existing dependency chain (in reverse order) is: [ 72.162432][ T8562] [ 72.162432][ T8562] -> #3 (major_names_lock){+.+.}-{3:3}: [ 72.170142][ T8562] __mutex_lock+0x12a/0x10a0 [ 72.175248][ T8562] __register_blkdev+0x2b/0x3e0 [ 72.180602][ T8562] register_mtd_blktrans+0x85/0x3c0 [ 72.186304][ T8562] do_one_initcall+0x103/0x650 [ 72.191571][ T8562] kernel_init_freeable+0x6b8/0x741 [ 72.197275][ T8562] kernel_init+0x1a/0x1d0 [ 72.202105][ T8562] ret_from_fork+0x1f/0x30 [ 72.207025][ T8562] [ 72.207025][ T8562] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 72.214643][ T8562] __mutex_lock+0x12a/0x10a0 [ 72.219753][ T8562] blktrans_open+0x69/0x600 [ 72.224777][ T8562] blkdev_get_whole+0xa1/0x420 [ 72.230058][ T8562] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 72.236104][ T8562] blkdev_open+0x295/0x300 [ 72.241035][ T8562] do_dentry_open+0x4c8/0x11d0 [ 72.246307][ T8562] path_openat+0x1c23/0x27f0 [ 72.251397][ T8562] do_filp_open+0x1aa/0x400 [ 72.256413][ T8562] do_sys_openat2+0x16d/0x420 [ 72.261594][ T8562] __x64_sys_open+0x119/0x1c0 [ 72.266772][ T8562] do_syscall_64+0x35/0xb0 [ 72.271689][ T8562] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 72.278084][ T8562] [ 72.278084][ T8562] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 72.285876][ T8562] __mutex_lock+0x12a/0x10a0 [ 72.290989][ T8562] del_gendisk+0x8b/0x770 [ 72.295821][ T8562] loop_control_ioctl+0x3b5/0x450 [ 72.301359][ T8562] __x64_sys_ioctl+0x193/0x200 [ 72.306628][ T8562] do_syscall_64+0x35/0xb0 [ 72.311548][ T8562] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 72.317942][ T8562] [ 72.317942][ T8562] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 72.325470][ T8562] __lock_acquire+0x2a07/0x54a0 [ 72.330910][ T8562] lock_acquire+0x1ab/0x510 [ 72.335915][ T8562] __mutex_lock+0x12a/0x10a0 [ 72.341019][ T8562] loop_add+0x9c/0x8c0 [ 72.345606][ T8562] loop_probe+0x6a/0x80 [ 72.350275][ T8562] blk_request_module+0x111/0x1d0 [ 72.355804][ T8562] blkdev_get_no_open+0x1d5/0x250 [ 72.361329][ T8562] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 72.367289][ T8562] blkdev_open+0x295/0x300 [ 72.372206][ T8562] do_dentry_open+0x4c8/0x11d0 [ 72.377474][ T8562] path_openat+0x1c23/0x27f0 [ 72.382567][ T8562] do_filp_open+0x1aa/0x400 [ 72.387579][ T8562] do_sys_openat2+0x16d/0x420 [ 72.392780][ T8562] __x64_sys_open+0x119/0x1c0 [ 72.398050][ T8562] do_syscall_64+0x35/0xb0 [ 72.402999][ T8562] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 72.409398][ T8562] [ 72.409398][ T8562] other info that might help us debug this: [ 72.409398][ T8562] [ 72.419606][ T8562] Chain exists of: [ 72.419606][ T8562] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 72.419606][ T8562] [ 72.432617][ T8562] Possible unsafe locking scenario: [ 72.432617][ T8562] [ 72.440047][ T8562] CPU0 CPU1 [ 72.445404][ T8562] ---- ---- [ 72.450762][ T8562] lock(major_names_lock); [ 72.455248][ T8562] lock(mtd_table_mutex); [ 72.462173][ T8562] lock(major_names_lock); [ 72.469184][ T8562] lock(loop_ctl_mutex); [ 72.473500][ T8562] [ 72.473500][ T8562] *** DEADLOCK *** [ 72.473500][ T8562] [ 72.481628][ T8562] 1 lock held by systemd-udevd/8562: [ 72.486944][ T8562] #0: ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 72.496849][ T8562] [ 72.496849][ T8562] stack backtrace: [ 72.503259][ T8562] CPU: 0 PID: 8562 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 72.511828][ T8562] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 72.521865][ T8562] Call Trace: [ 72.525139][ T8562] dump_stack_lvl+0xcd/0x134 [ 72.529819][ T8562] check_noncircular+0x25f/0x2e0 [ 72.534742][ T8562] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 72.540804][ T8562] ? print_circular_bug+0x1e0/0x1e0 [ 72.545997][ T8562] ? lock_chain_count+0x20/0x20 [ 72.550842][ T8562] ? lockdep_lock+0xc6/0x200 [ 72.555415][ T8562] ? call_rcu_zapped+0xb0/0xb0 [ 72.560172][ T8562] __lock_acquire+0x2a07/0x54a0 [ 72.565017][ T8562] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 72.570992][ T8562] lock_acquire+0x1ab/0x510 [ 72.575499][ T8562] ? loop_add+0x9c/0x8c0 [ 72.579772][ T8562] ? lock_release+0x720/0x720 [ 72.584435][ T8562] ? path_openat+0x1c23/0x27f0 [ 72.589178][ T8562] ? do_filp_open+0x1aa/0x400 [ 72.593840][ T8562] ? do_sys_openat2+0x16d/0x420 [ 72.598696][ T8562] ? __x64_sys_open+0x119/0x1c0 [ 72.603551][ T8562] __mutex_lock+0x12a/0x10a0 [ 72.608136][ T8562] ? loop_add+0x9c/0x8c0 [ 72.612362][ T8562] ? loop_add+0x9c/0x8c0 [ 72.616589][ T8562] ? mark_held_locks+0x9f/0xe0 [ 72.621350][ T8562] ? mutex_lock_io_nested+0xf00/0xf00 [ 72.626711][ T8562] ? rcu_read_lock_sched_held+0x3a/0x70 [ 72.632245][ T8562] loop_add+0x9c/0x8c0 [ 72.636305][ T8562] ? find_inode_fast+0x16f/0x220 [ 72.641243][ T8562] loop_probe+0x6a/0x80 [ 72.645390][ T8562] ? loop_add+0x8c0/0x8c0 [ 72.649760][ T8562] blk_request_module+0x111/0x1d0 [ 72.654840][ T8562] blkdev_get_no_open+0x1d5/0x250 [ 72.659869][ T8562] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 72.665317][ T8562] ? devcgroup_check_permission+0x1bb/0x410 [ 72.671255][ T8562] blkdev_open+0x295/0x300 [ 72.675711][ T8562] do_dentry_open+0x4c8/0x11d0 [ 72.680460][ T8562] ? blkdev_get_by_dev+0x80/0x80 [ 72.685399][ T8562] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 72.691639][ T8562] ? may_open+0x1f6/0x420 [ 72.695951][ T8562] path_openat+0x1c23/0x27f0 [ 72.700616][ T8562] ? path_lookupat+0x860/0x860 [ 72.705383][ T8562] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 72.711366][ T8562] do_filp_open+0x1aa/0x400 [ 72.715863][ T8562] ? may_open_dev+0xf0/0xf0 [ 72.720384][ T8562] ? rwlock_bug.part.0+0x90/0x90 [ 72.725305][ T8562] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 72.731542][ T8562] ? _find_next_bit+0x1e3/0x260 [ 72.736433][ T8562] ? _raw_spin_unlock+0x24/0x40 [ 72.741268][ T8562] ? alloc_fd+0x2f0/0x670 [ 72.745583][ T8562] do_sys_openat2+0x16d/0x420 [ 72.750248][ T8562] ? build_open_flags+0x6f0/0x6f0 [ 72.755276][ T8562] ? __context_tracking_exit+0xb8/0xe0 [ 72.760735][ T8562] __x64_sys_open+0x119/0x1c0 [ 72.765399][ T8562] ? do_sys_open+0x140/0x140 [ 72.769975][ T8562] ? __secure_computing+0x104/0x360 [ 72.775157][ T8562] do_syscall_64+0x35/0xb0 [ 72.779557][ T8562] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 72.785447][ T8562] RIP: 0033:0x7fa8b3dc9840 [ 72.789862][ T8562] 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 [ 72.809456][ T8562] RSP: 002b:00007ffe4fb5cf38 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 72.817865][ T8562] RAX: ffffffffffffffda RBX: 000056016b58e380 RCX: 00007fa8b3dc9840 [ 72.825833][ T8562] RDX: 000056016aee8fe3 RSI: 00000000000a0800 RDI: 000056016b58cd90 executing program [ 72.833785][ T8562] RBP: 00007ffe4fb5d0b0 R08: 000056016aee8670 R09: 0000000000000010 [ 72.841742][ T8562] R10: 000056016aee8d0c R11: 0000000000000246 R12: 00007ffe4fb5d000 [ 72.849694][ T8562] R13: 000056016b58f680 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