[ 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.10' (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 syzkaller login: [ 71.345698][ T8474] [ 71.348043][ T8474] ====================================================== [ 71.355042][ T8474] WARNING: possible circular locking dependency detected [ 71.362139][ T8474] 5.14.0-rc6-syzkaller #0 Not tainted [ 71.367482][ T8474] ------------------------------------------------------ [ 71.374472][ T8474] systemd-udevd/8474 is trying to acquire lock: [ 71.380700][ T8474] ffffffff8c486d68 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 71.389168][ T8474] [ 71.389168][ T8474] but task is already holding lock: [ 71.396508][ T8474] ffffffff8c1f4068 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 71.405967][ T8474] [ 71.405967][ T8474] which lock already depends on the new lock. [ 71.405967][ T8474] [ 71.416342][ T8474] [ 71.416342][ T8474] the existing dependency chain (in reverse order) is: [ 71.425328][ T8474] [ 71.425328][ T8474] -> #3 (major_names_lock){+.+.}-{3:3}: [ 71.433045][ T8474] __mutex_lock+0x12a/0x10a0 [ 71.438150][ T8474] __register_blkdev+0x2b/0x3e0 [ 71.443506][ T8474] register_mtd_blktrans+0x85/0x3c0 [ 71.449201][ T8474] do_one_initcall+0x103/0x650 [ 71.454474][ T8474] kernel_init_freeable+0x6b8/0x741 [ 71.460194][ T8474] kernel_init+0x1a/0x1d0 [ 71.465028][ T8474] ret_from_fork+0x1f/0x30 [ 71.469959][ T8474] [ 71.469959][ T8474] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 71.477577][ T8474] __mutex_lock+0x12a/0x10a0 [ 71.482670][ T8474] blktrans_open+0x69/0x600 [ 71.487689][ T8474] blkdev_get_whole+0xa1/0x420 [ 71.492964][ T8474] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 71.499007][ T8474] blkdev_open+0x295/0x300 [ 71.503919][ T8474] do_dentry_open+0x4c8/0x11d0 [ 71.509183][ T8474] path_openat+0x1c23/0x27f0 [ 71.514287][ T8474] do_filp_open+0x1aa/0x400 [ 71.519289][ T8474] do_sys_openat2+0x16d/0x420 [ 71.524468][ T8474] __x64_sys_open+0x119/0x1c0 [ 71.529643][ T8474] do_syscall_64+0x35/0xb0 [ 71.534568][ T8474] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 71.540963][ T8474] [ 71.540963][ T8474] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 71.548785][ T8474] __mutex_lock+0x12a/0x10a0 [ 71.553877][ T8474] del_gendisk+0x8b/0x770 [ 71.558706][ T8474] loop_control_ioctl+0x3b5/0x450 [ 71.564235][ T8474] __do_compat_sys_ioctl+0x1c7/0x290 [ 71.570023][ T8474] __do_fast_syscall_32+0x65/0xf0 [ 71.575593][ T8474] do_fast_syscall_32+0x2f/0x70 [ 71.580954][ T8474] entry_SYSENTER_compat_after_hwframe+0x4d/0x5c [ 71.587784][ T8474] [ 71.587784][ T8474] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 71.595316][ T8474] __lock_acquire+0x2a07/0x54a0 [ 71.600699][ T8474] lock_acquire+0x1ab/0x510 [ 71.605713][ T8474] __mutex_lock+0x12a/0x10a0 [ 71.610810][ T8474] loop_add+0x9c/0x8c0 [ 71.615378][ T8474] loop_probe+0x6a/0x80 [ 71.620032][ T8474] blk_request_module+0x111/0x1d0 [ 71.625565][ T8474] blkdev_get_no_open+0x1d5/0x250 [ 71.631093][ T8474] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 71.637057][ T8474] blkdev_open+0x295/0x300 [ 71.641992][ T8474] do_dentry_open+0x4c8/0x11d0 [ 71.647260][ T8474] path_openat+0x1c23/0x27f0 [ 71.652359][ T8474] do_filp_open+0x1aa/0x400 [ 71.657414][ T8474] do_sys_openat2+0x16d/0x420 [ 71.662600][ T8474] __x64_sys_open+0x119/0x1c0 [ 71.667819][ T8474] do_syscall_64+0x35/0xb0 [ 71.672744][ T8474] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 71.679142][ T8474] [ 71.679142][ T8474] other info that might help us debug this: [ 71.679142][ T8474] [ 71.689362][ T8474] Chain exists of: [ 71.689362][ T8474] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 71.689362][ T8474] [ 71.702384][ T8474] Possible unsafe locking scenario: [ 71.702384][ T8474] [ 71.709809][ T8474] CPU0 CPU1 [ 71.715150][ T8474] ---- ---- [ 71.720507][ T8474] lock(major_names_lock); [ 71.725001][ T8474] lock(mtd_table_mutex); [ 71.731917][ T8474] lock(major_names_lock); [ 71.738917][ T8474] lock(loop_ctl_mutex); [ 71.743225][ T8474] [ 71.743225][ T8474] *** DEADLOCK *** [ 71.743225][ T8474] [ 71.751387][ T8474] 1 lock held by systemd-udevd/8474: [ 71.756690][ T8474] #0: ffffffff8c1f4068 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 71.766596][ T8474] [ 71.766596][ T8474] stack backtrace: [ 71.772463][ T8474] CPU: 0 PID: 8474 Comm: systemd-udevd Not tainted 5.14.0-rc6-syzkaller #0 [ 71.781027][ T8474] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 71.791095][ T8474] Call Trace: [ 71.794358][ T8474] dump_stack_lvl+0xcd/0x134 [ 71.798936][ T8474] check_noncircular+0x25f/0x2e0 [ 71.803865][ T8474] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 71.809861][ T8474] ? print_circular_bug+0x1e0/0x1e0 [ 71.815039][ T8474] ? lock_chain_count+0x20/0x20 [ 71.819881][ T8474] ? lockdep_lock+0xc6/0x200 [ 71.824454][ T8474] ? call_rcu_zapped+0xb0/0xb0 [ 71.829211][ T8474] __lock_acquire+0x2a07/0x54a0 [ 71.834044][ T8474] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 71.840005][ T8474] lock_acquire+0x1ab/0x510 [ 71.844488][ T8474] ? loop_add+0x9c/0x8c0 [ 71.848711][ T8474] ? lock_release+0x720/0x720 [ 71.853363][ T8474] ? path_openat+0x1c23/0x27f0 [ 71.858108][ T8474] ? do_filp_open+0x1aa/0x400 [ 71.862776][ T8474] ? do_sys_openat2+0x16d/0x420 [ 71.867607][ T8474] ? __x64_sys_open+0x119/0x1c0 [ 71.872452][ T8474] __mutex_lock+0x12a/0x10a0 [ 71.877028][ T8474] ? loop_add+0x9c/0x8c0 [ 71.881254][ T8474] ? loop_add+0x9c/0x8c0 [ 71.885473][ T8474] ? mutex_lock_io_nested+0xf00/0xf00 [ 71.890838][ T8474] ? rcu_read_lock_sched_held+0x3a/0x70 [ 71.896370][ T8474] loop_add+0x9c/0x8c0 [ 71.900417][ T8474] ? find_inode_fast+0x16f/0x220 [ 71.905343][ T8474] loop_probe+0x6a/0x80 [ 71.909479][ T8474] ? loop_add+0x8c0/0x8c0 [ 71.913799][ T8474] blk_request_module+0x111/0x1d0 [ 71.918808][ T8474] blkdev_get_no_open+0x1d5/0x250 [ 71.923810][ T8474] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 71.929250][ T8474] ? devcgroup_check_permission+0x1bb/0x410 [ 71.935127][ T8474] blkdev_open+0x295/0x300 [ 71.939524][ T8474] do_dentry_open+0x4c8/0x11d0 [ 71.944274][ T8474] ? blkdev_get_by_dev+0x80/0x80 [ 71.949206][ T8474] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 71.955443][ T8474] ? may_open+0x1f6/0x420 [ 71.959752][ T8474] path_openat+0x1c23/0x27f0 [ 71.964321][ T8474] ? path_lookupat+0x860/0x860 [ 71.969061][ T8474] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 71.975035][ T8474] do_filp_open+0x1aa/0x400 [ 71.979525][ T8474] ? may_open_dev+0xf0/0xf0 [ 71.984022][ T8474] ? rwlock_bug.part.0+0x90/0x90 [ 71.988938][ T8474] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 71.995177][ T8474] ? _find_next_bit+0x1e3/0x260 [ 72.000020][ T8474] ? _raw_spin_unlock+0x24/0x40 [ 72.004853][ T8474] ? alloc_fd+0x2f0/0x670 [ 72.009170][ T8474] do_sys_openat2+0x16d/0x420 [ 72.013828][ T8474] ? build_open_flags+0x6f0/0x6f0 [ 72.018844][ T8474] ? __context_tracking_exit+0xb8/0xe0 [ 72.024286][ T8474] __x64_sys_open+0x119/0x1c0 [ 72.028947][ T8474] ? do_sys_open+0x140/0x140 [ 72.033520][ T8474] ? __secure_computing+0x104/0x360 [ 72.038701][ T8474] do_syscall_64+0x35/0xb0 [ 72.043096][ T8474] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 72.048969][ T8474] RIP: 0033:0x7fa267a46840 [ 72.053365][ T8474] 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.072964][ T8474] RSP: 002b:00007ffdac90dad8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 72.081371][ T8474] RAX: ffffffffffffffda RBX: 000055a9a5c2a8f0 RCX: 00007fa267a46840 [ 72.089324][ T8474] RDX: 000055a9a5919fe3 RSI: 00000000000a0800 RDI: 000055a9a5c2a830 [ 72.097279][ T8474] RBP: 00007ffdac90dc50 R08: 000055a9a5919670 R09: 0000000000000010 [ 72.105247][ T8474] R10: 000055a9a5919d0c R11: 0000000000000246 R12: 00007ffdac90dba0 [ 72.113204][ T8474] R13: 000055a9a5c2c010 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program