[ 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.18' (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 syzkaller login: [ 74.898422][ T8702] [ 74.900785][ T8702] ====================================================== [ 74.907794][ T8702] WARNING: possible circular locking dependency detected [ 74.914790][ T8702] 5.14.0-rc5-syzkaller #0 Not tainted [ 74.920142][ T8702] ------------------------------------------------------ [ 74.927147][ T8702] systemd-udevd/8702 is trying to acquire lock: [ 74.933360][ T8702] ffffffff8c487968 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 74.941787][ T8702] [ 74.941787][ T8702] but task is already holding lock: [ 74.949221][ T8702] ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 74.958681][ T8702] [ 74.958681][ T8702] which lock already depends on the new lock. [ 74.958681][ T8702] [ 74.969059][ T8702] [ 74.969059][ T8702] the existing dependency chain (in reverse order) is: [ 74.978047][ T8702] [ 74.978047][ T8702] -> #3 (major_names_lock){+.+.}-{3:3}: [ 74.985766][ T8702] __mutex_lock+0x12a/0x10a0 [ 74.990874][ T8702] __register_blkdev+0x2b/0x3e0 [ 74.996549][ T8702] register_mtd_blktrans+0x85/0x3c0 [ 75.002859][ T8702] do_one_initcall+0x103/0x650 [ 75.008135][ T8702] kernel_init_freeable+0x6b8/0x741 [ 75.013845][ T8702] kernel_init+0x1a/0x1d0 [ 75.018674][ T8702] ret_from_fork+0x1f/0x30 [ 75.023603][ T8702] [ 75.023603][ T8702] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 75.031219][ T8702] __mutex_lock+0x12a/0x10a0 [ 75.036311][ T8702] blktrans_open+0x69/0x600 [ 75.041320][ T8702] blkdev_get_whole+0xa1/0x420 [ 75.046583][ T8702] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 75.052626][ T8702] blkdev_open+0x295/0x300 [ 75.057556][ T8702] do_dentry_open+0x4c8/0x11d0 [ 75.062820][ T8702] path_openat+0x1c23/0x27f0 [ 75.067910][ T8702] do_filp_open+0x1aa/0x400 [ 75.072929][ T8702] do_sys_openat2+0x16d/0x420 [ 75.078108][ T8702] __x64_sys_open+0x119/0x1c0 [ 75.083287][ T8702] do_syscall_64+0x35/0xb0 [ 75.088220][ T8702] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 75.094611][ T8702] [ 75.094611][ T8702] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 75.102400][ T8702] __mutex_lock+0x12a/0x10a0 [ 75.107491][ T8702] del_gendisk+0x8b/0x770 [ 75.112323][ T8702] loop_control_ioctl+0x3b5/0x450 [ 75.117850][ T8702] __x64_sys_ioctl+0x193/0x200 [ 75.123115][ T8702] do_syscall_64+0x35/0xb0 [ 75.128049][ T8702] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 75.134442][ T8702] [ 75.134442][ T8702] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 75.141972][ T8702] __lock_acquire+0x2a07/0x54a0 [ 75.147344][ T8702] lock_acquire+0x1ab/0x510 [ 75.152431][ T8702] __mutex_lock+0x12a/0x10a0 [ 75.157523][ T8702] loop_add+0x9c/0x8c0 [ 75.162106][ T8702] loop_probe+0x6a/0x80 [ 75.166767][ T8702] blk_request_module+0x111/0x1d0 [ 75.172300][ T8702] blkdev_get_no_open+0x1d5/0x250 [ 75.177831][ T8702] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 75.183800][ T8702] blkdev_open+0x295/0x300 [ 75.188717][ T8702] do_dentry_open+0x4c8/0x11d0 [ 75.194080][ T8702] path_openat+0x1c23/0x27f0 [ 75.199169][ T8702] do_filp_open+0x1aa/0x400 [ 75.204171][ T8702] do_sys_openat2+0x16d/0x420 [ 75.209348][ T8702] __x64_sys_open+0x119/0x1c0 [ 75.214541][ T8702] do_syscall_64+0x35/0xb0 [ 75.219469][ T8702] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 75.225861][ T8702] [ 75.225861][ T8702] other info that might help us debug this: [ 75.225861][ T8702] [ 75.236076][ T8702] Chain exists of: [ 75.236076][ T8702] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 75.236076][ T8702] [ 75.249079][ T8702] Possible unsafe locking scenario: [ 75.249079][ T8702] [ 75.256596][ T8702] CPU0 CPU1 [ 75.261945][ T8702] ---- ---- [ 75.267300][ T8702] lock(major_names_lock); [ 75.271776][ T8702] lock(mtd_table_mutex); [ 75.278684][ T8702] lock(major_names_lock); [ 75.285680][ T8702] lock(loop_ctl_mutex); [ 75.289989][ T8702] [ 75.289989][ T8702] *** DEADLOCK *** [ 75.289989][ T8702] [ 75.298105][ T8702] 1 lock held by systemd-udevd/8702: [ 75.303362][ T8702] #0: ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 75.313267][ T8702] [ 75.313267][ T8702] stack backtrace: [ 75.319136][ T8702] CPU: 1 PID: 8702 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 75.327709][ T8702] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 75.337753][ T8702] Call Trace: [ 75.341018][ T8702] dump_stack_lvl+0xcd/0x134 [ 75.345607][ T8702] check_noncircular+0x25f/0x2e0 [ 75.350530][ T8702] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 75.356489][ T8702] ? print_circular_bug+0x1e0/0x1e0 [ 75.361665][ T8702] ? lock_chain_count+0x20/0x20 [ 75.366508][ T8702] ? lockdep_lock+0xc6/0x200 [ 75.371088][ T8702] ? call_rcu_zapped+0xb0/0xb0 [ 75.375844][ T8702] __lock_acquire+0x2a07/0x54a0 [ 75.380679][ T8702] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 75.386639][ T8702] lock_acquire+0x1ab/0x510 [ 75.391141][ T8702] ? loop_add+0x9c/0x8c0 [ 75.395361][ T8702] ? lock_release+0x720/0x720 [ 75.400016][ T8702] ? path_openat+0x1c23/0x27f0 [ 75.404759][ T8702] ? do_filp_open+0x1aa/0x400 [ 75.409416][ T8702] ? do_sys_openat2+0x16d/0x420 [ 75.414244][ T8702] ? __x64_sys_open+0x119/0x1c0 [ 75.419090][ T8702] __mutex_lock+0x12a/0x10a0 [ 75.424516][ T8702] ? loop_add+0x9c/0x8c0 [ 75.428744][ T8702] ? loop_add+0x9c/0x8c0 [ 75.432979][ T8702] ? mutex_lock_io_nested+0xf00/0xf00 [ 75.438336][ T8702] ? rcu_read_lock_sched_held+0x3a/0x70 [ 75.443866][ T8702] loop_add+0x9c/0x8c0 [ 75.447917][ T8702] ? find_inode_fast+0x16f/0x220 [ 75.452840][ T8702] loop_probe+0x6a/0x80 [ 75.456985][ T8702] ? loop_add+0x8c0/0x8c0 [ 75.461295][ T8702] blk_request_module+0x111/0x1d0 [ 75.466305][ T8702] blkdev_get_no_open+0x1d5/0x250 [ 75.471316][ T8702] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 75.476766][ T8702] ? devcgroup_check_permission+0x1bb/0x410 [ 75.482643][ T8702] blkdev_open+0x295/0x300 [ 75.487038][ T8702] do_dentry_open+0x4c8/0x11d0 [ 75.491785][ T8702] ? blkdev_get_by_dev+0x80/0x80 [ 75.496698][ T8702] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 75.502918][ T8702] ? may_open+0x1f6/0x420 [ 75.507228][ T8702] path_openat+0x1c23/0x27f0 [ 75.511801][ T8702] ? path_lookupat+0x860/0x860 [ 75.516544][ T8702] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 75.522507][ T8702] do_filp_open+0x1aa/0x400 [ 75.526992][ T8702] ? may_open_dev+0xf0/0xf0 [ 75.531477][ T8702] ? rwlock_bug.part.0+0x90/0x90 [ 75.536407][ T8702] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 75.542629][ T8702] ? _find_next_bit+0x1e3/0x260 [ 75.547460][ T8702] ? _raw_spin_unlock+0x24/0x40 [ 75.552290][ T8702] ? alloc_fd+0x2f0/0x670 [ 75.556605][ T8702] do_sys_openat2+0x16d/0x420 [ 75.561270][ T8702] ? build_open_flags+0x6f0/0x6f0 [ 75.566281][ T8702] ? __context_tracking_exit+0xb8/0xe0 [ 75.571725][ T8702] __x64_sys_open+0x119/0x1c0 [ 75.576383][ T8702] ? do_sys_open+0x140/0x140 [ 75.580954][ T8702] ? __secure_computing+0x104/0x360 [ 75.586137][ T8702] do_syscall_64+0x35/0xb0 [ 75.590538][ T8702] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 75.596413][ T8702] RIP: 0033:0x7fea04ea7840 [ 75.600807][ T8702] 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 [ 75.620399][ T8702] RSP: 002b:00007ffe65a019a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 75.629238][ T8702] RAX: ffffffffffffffda RBX: 000055ab3e93f8f0 RCX: 00007fea04ea7840 [ 75.637200][ T8702] RDX: 000055ab3db11fe3 RSI: 00000000000a0800 RDI: 000055ab3e93a960 executing program executing program [ 75.645688][ T8702] RBP: 00007ffe65a01b20 R08: 000055ab3db11670 R09: 0000000000000010 [ 75.653658][ T8702] R10: 000055ab3db11d0c R11: 0000000000000246 R12: 00007ffe65a01a70 [ 75.661616][ T8702] R13: 000055ab3e93d4a0 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