[ 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.171' (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 syzkaller login: [ 73.788481][ T8529] [ 73.790867][ T8529] ====================================================== [ 73.797903][ T8529] WARNING: possible circular locking dependency detected [ 73.804903][ T8529] 5.14.0-rc5-syzkaller #0 Not tainted [ 73.810248][ T8529] ------------------------------------------------------ [ 73.817239][ T8529] systemd-udevd/8529 is trying to acquire lock: [ 73.823458][ T8529] ffffffff8c487968 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 73.831910][ T8529] [ 73.831910][ T8529] but task is already holding lock: [ 73.839246][ T8529] ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 73.848702][ T8529] [ 73.848702][ T8529] which lock already depends on the new lock. [ 73.848702][ T8529] [ 73.859164][ T8529] [ 73.859164][ T8529] the existing dependency chain (in reverse order) is: [ 73.868151][ T8529] [ 73.868151][ T8529] -> #3 (major_names_lock){+.+.}-{3:3}: [ 73.875856][ T8529] __mutex_lock+0x12a/0x10a0 [ 73.880959][ T8529] __register_blkdev+0x2b/0x3e0 [ 73.886310][ T8529] register_mtd_blktrans+0x85/0x3c0 [ 73.892013][ T8529] do_one_initcall+0x103/0x650 [ 73.897317][ T8529] kernel_init_freeable+0x6b8/0x741 [ 73.903021][ T8529] kernel_init+0x1a/0x1d0 [ 73.907860][ T8529] ret_from_fork+0x1f/0x30 [ 73.912775][ T8529] [ 73.912775][ T8529] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 73.920390][ T8529] __mutex_lock+0x12a/0x10a0 [ 73.925480][ T8529] blktrans_open+0x69/0x600 [ 73.930484][ T8529] blkdev_get_whole+0xa1/0x420 [ 73.935753][ T8529] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 73.941807][ T8529] blkdev_open+0x295/0x300 [ 73.946721][ T8529] do_dentry_open+0x4c8/0x11d0 [ 73.951987][ T8529] path_openat+0x1c23/0x27f0 [ 73.957075][ T8529] do_filp_open+0x1aa/0x400 [ 73.962080][ T8529] do_sys_openat2+0x16d/0x420 [ 73.967258][ T8529] __x64_sys_open+0x119/0x1c0 [ 73.972446][ T8529] do_syscall_64+0x35/0xb0 [ 73.977368][ T8529] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 73.983760][ T8529] [ 73.983760][ T8529] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 73.991548][ T8529] __mutex_lock+0x12a/0x10a0 [ 73.996651][ T8529] del_gendisk+0x8b/0x770 [ 74.001480][ T8529] loop_control_ioctl+0x3b5/0x450 [ 74.007003][ T8529] __do_compat_sys_ioctl+0x1c7/0x290 [ 74.012800][ T8529] __do_fast_syscall_32+0x65/0xf0 [ 74.018326][ T8529] do_fast_syscall_32+0x2f/0x70 [ 74.023680][ T8529] entry_SYSENTER_compat_after_hwframe+0x4d/0x5c [ 74.030508][ T8529] [ 74.030508][ T8529] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 74.038037][ T8529] __lock_acquire+0x2a07/0x54a0 [ 74.043396][ T8529] lock_acquire+0x1ab/0x510 [ 74.048405][ T8529] __mutex_lock+0x12a/0x10a0 [ 74.053496][ T8529] loop_add+0x9c/0x8c0 [ 74.058078][ T8529] loop_probe+0x6a/0x80 [ 74.062733][ T8529] blk_request_module+0x111/0x1d0 [ 74.068257][ T8529] blkdev_get_no_open+0x1d5/0x250 [ 74.073779][ T8529] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 74.079738][ T8529] blkdev_open+0x295/0x300 [ 74.084653][ T8529] do_dentry_open+0x4c8/0x11d0 [ 74.089922][ T8529] path_openat+0x1c23/0x27f0 [ 74.095021][ T8529] do_filp_open+0x1aa/0x400 [ 74.100024][ T8529] do_sys_openat2+0x16d/0x420 [ 74.105200][ T8529] __x64_sys_open+0x119/0x1c0 [ 74.110375][ T8529] do_syscall_64+0x35/0xb0 [ 74.115292][ T8529] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 74.121684][ T8529] [ 74.121684][ T8529] other info that might help us debug this: [ 74.121684][ T8529] [ 74.131896][ T8529] Chain exists of: [ 74.131896][ T8529] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 74.131896][ T8529] [ 74.144900][ T8529] Possible unsafe locking scenario: [ 74.144900][ T8529] [ 74.152324][ T8529] CPU0 CPU1 [ 74.157665][ T8529] ---- ---- [ 74.163009][ T8529] lock(major_names_lock); [ 74.167491][ T8529] lock(mtd_table_mutex); [ 74.174407][ T8529] lock(major_names_lock); [ 74.181405][ T8529] lock(loop_ctl_mutex); [ 74.185713][ T8529] [ 74.185713][ T8529] *** DEADLOCK *** [ 74.185713][ T8529] [ 74.193832][ T8529] 1 lock held by systemd-udevd/8529: [ 74.199107][ T8529] #0: ffffffff8c1f3f08 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 74.209011][ T8529] [ 74.209011][ T8529] stack backtrace: [ 74.214882][ T8529] CPU: 0 PID: 8529 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 74.223450][ T8529] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 74.233569][ T8529] Call Trace: [ 74.236843][ T8529] dump_stack_lvl+0xcd/0x134 [ 74.241423][ T8529] check_noncircular+0x25f/0x2e0 [ 74.246360][ T8529] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 74.252332][ T8529] ? print_circular_bug+0x1e0/0x1e0 [ 74.257513][ T8529] ? lock_chain_count+0x20/0x20 [ 74.262345][ T8529] ? lockdep_lock+0xc6/0x200 [ 74.266916][ T8529] ? call_rcu_zapped+0xb0/0xb0 [ 74.271661][ T8529] __lock_acquire+0x2a07/0x54a0 [ 74.276498][ T8529] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 74.282462][ T8529] lock_acquire+0x1ab/0x510 [ 74.286957][ T8529] ? loop_add+0x9c/0x8c0 [ 74.291182][ T8529] ? lock_release+0x720/0x720 [ 74.295839][ T8529] ? path_openat+0x1c23/0x27f0 [ 74.300587][ T8529] ? do_filp_open+0x1aa/0x400 [ 74.305258][ T8529] ? do_sys_openat2+0x16d/0x420 [ 74.310105][ T8529] ? __x64_sys_open+0x119/0x1c0 [ 74.314942][ T8529] __mutex_lock+0x12a/0x10a0 [ 74.319521][ T8529] ? loop_add+0x9c/0x8c0 [ 74.323751][ T8529] ? loop_add+0x9c/0x8c0 [ 74.327978][ T8529] ? mark_held_locks+0x9f/0xe0 [ 74.332727][ T8529] ? mutex_lock_io_nested+0xf00/0xf00 [ 74.338085][ T8529] ? rcu_read_lock_sched_held+0x3a/0x70 [ 74.343617][ T8529] loop_add+0x9c/0x8c0 [ 74.347669][ T8529] ? find_inode_fast+0x16f/0x220 [ 74.352591][ T8529] loop_probe+0x6a/0x80 [ 74.356740][ T8529] ? loop_add+0x8c0/0x8c0 [ 74.361049][ T8529] blk_request_module+0x111/0x1d0 [ 74.366060][ T8529] blkdev_get_no_open+0x1d5/0x250 [ 74.371081][ T8529] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 74.376530][ T8529] ? devcgroup_check_permission+0x1bb/0x410 [ 74.382424][ T8529] blkdev_open+0x295/0x300 [ 74.386826][ T8529] do_dentry_open+0x4c8/0x11d0 [ 74.391571][ T8529] ? blkdev_get_by_dev+0x80/0x80 [ 74.396486][ T8529] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 74.402708][ T8529] ? may_open+0x1f6/0x420 [ 74.407019][ T8529] path_openat+0x1c23/0x27f0 [ 74.411592][ T8529] ? path_lookupat+0x860/0x860 [ 74.416337][ T8529] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 74.422303][ T8529] do_filp_open+0x1aa/0x400 [ 74.426784][ T8529] ? may_open_dev+0xf0/0xf0 [ 74.431273][ T8529] ? rwlock_bug.part.0+0x90/0x90 [ 74.436201][ T8529] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 74.442424][ T8529] ? _find_next_bit+0x1e3/0x260 [ 74.447256][ T8529] ? _raw_spin_unlock+0x24/0x40 [ 74.452090][ T8529] ? alloc_fd+0x2f0/0x670 [ 74.456410][ T8529] do_sys_openat2+0x16d/0x420 [ 74.461086][ T8529] ? build_open_flags+0x6f0/0x6f0 [ 74.466096][ T8529] ? __context_tracking_exit+0xb8/0xe0 [ 74.471543][ T8529] __x64_sys_open+0x119/0x1c0 [ 74.476463][ T8529] ? do_sys_open+0x140/0x140 [ 74.481039][ T8529] ? __secure_computing+0x104/0x360 [ 74.486221][ T8529] do_syscall_64+0x35/0xb0 [ 74.490622][ T8529] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 74.496512][ T8529] RIP: 0033:0x7f6a4c62e840 [ 74.500910][ T8529] 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 [ 74.520497][ T8529] RSP: 002b:00007ffd3b9be338 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 74.528892][ T8529] RAX: ffffffffffffffda RBX: 000055ea6e3d68f0 RCX: 00007f6a4c62e840 [ 74.536933][ T8529] RDX: 000055ea6cf33fe3 RSI: 00000000000a0800 RDI: 000055ea6e3d6830 [ 74.544888][ T8529] RBP: 00007ffd3b9be4b0 R08: 000055ea6cf33670 R09: 0000000000000010 [ 74.552853][ T8529] R10: 000055ea6cf33d0c R11: 0000000000000246 R12: 00007ffd3b9be400 [ 74.560802][ T8529] R13: 000055ea6e3d8010 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