[ OK ] Started Getty on tty3. [ OK ] Started Getty on tty2. [ OK ] Started Getty on tty1. [ OK ] Started Serial Getty on ttyS0. [ OK ] Started getty on tty2-tty6 if dbus and logind are not available. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.152' (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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.567450][ T8743] [ 71.569822][ T8743] ====================================================== [ 71.576821][ T8743] WARNING: possible circular locking dependency detected [ 71.583819][ T8743] 5.14.0-rc5-syzkaller #0 Not tainted [ 71.589168][ T8743] ------------------------------------------------------ [ 71.596165][ T8743] systemd-udevd/8743 is trying to acquire lock: [ 71.602378][ T8743] ffffffff8c486b88 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 71.610805][ T8743] [ 71.610805][ T8743] but task is already holding lock: [ 71.618154][ T8743] ffffffff8c1f3fe8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 71.627664][ T8743] [ 71.627664][ T8743] which lock already depends on the new lock. [ 71.627664][ T8743] [ 71.638043][ T8743] [ 71.638043][ T8743] the existing dependency chain (in reverse order) is: [ 71.647075][ T8743] [ 71.647075][ T8743] -> #3 (major_names_lock){+.+.}-{3:3}: [ 71.654780][ T8743] __mutex_lock+0x12a/0x10a0 [ 71.659888][ T8743] __register_blkdev+0x2b/0x3e0 [ 71.665281][ T8743] register_mtd_blktrans+0x85/0x3c0 [ 71.670984][ T8743] do_one_initcall+0x103/0x650 [ 71.676252][ T8743] kernel_init_freeable+0x6b8/0x741 [ 71.681961][ T8743] kernel_init+0x1a/0x1d0 [ 71.686793][ T8743] ret_from_fork+0x1f/0x30 [ 71.691729][ T8743] [ 71.691729][ T8743] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 71.699345][ T8743] __mutex_lock+0x12a/0x10a0 [ 71.704440][ T8743] blktrans_open+0x69/0x600 [ 71.709444][ T8743] blkdev_get_whole+0xa1/0x420 [ 71.714766][ T8743] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 71.720810][ T8743] blkdev_open+0x295/0x300 [ 71.725765][ T8743] do_dentry_open+0x4c8/0x11d0 [ 71.731036][ T8743] path_openat+0x1c23/0x27f0 [ 71.736162][ T8743] do_filp_open+0x1aa/0x400 [ 71.741168][ T8743] do_sys_openat2+0x16d/0x420 [ 71.746350][ T8743] __x64_sys_open+0x119/0x1c0 [ 71.751527][ T8743] do_syscall_64+0x35/0xb0 [ 71.756455][ T8743] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 71.762856][ T8743] [ 71.762856][ T8743] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 71.770646][ T8743] __mutex_lock+0x12a/0x10a0 [ 71.775780][ T8743] del_gendisk+0x8b/0x770 [ 71.780614][ T8743] loop_control_ioctl+0x3b5/0x450 [ 71.786144][ T8743] __x64_sys_ioctl+0x193/0x200 [ 71.791415][ T8743] do_syscall_64+0x35/0xb0 [ 71.796333][ T8743] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 71.802728][ T8743] [ 71.802728][ T8743] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 71.810258][ T8743] __lock_acquire+0x2a07/0x54a0 [ 71.815610][ T8743] lock_acquire+0x1ab/0x510 [ 71.820617][ T8743] __mutex_lock+0x12a/0x10a0 [ 71.825715][ T8743] loop_add+0x9c/0x8c0 [ 71.830285][ T8743] loop_probe+0x6a/0x80 [ 71.834942][ T8743] blk_request_module+0x111/0x1d0 [ 71.840470][ T8743] blkdev_get_no_open+0x1d5/0x250 [ 71.845996][ T8743] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 71.851956][ T8743] blkdev_open+0x295/0x300 [ 71.856873][ T8743] do_dentry_open+0x4c8/0x11d0 [ 71.862135][ T8743] path_openat+0x1c23/0x27f0 [ 71.867224][ T8743] do_filp_open+0x1aa/0x400 [ 71.872226][ T8743] do_sys_openat2+0x16d/0x420 [ 71.877404][ T8743] __x64_sys_open+0x119/0x1c0 [ 71.882586][ T8743] do_syscall_64+0x35/0xb0 [ 71.887504][ T8743] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 71.893942][ T8743] [ 71.893942][ T8743] other info that might help us debug this: [ 71.893942][ T8743] [ 71.904145][ T8743] Chain exists of: [ 71.904145][ T8743] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 71.904145][ T8743] [ 71.917150][ T8743] Possible unsafe locking scenario: [ 71.917150][ T8743] [ 71.924574][ T8743] CPU0 CPU1 [ 71.929915][ T8743] ---- ---- [ 71.935255][ T8743] lock(major_names_lock); [ 71.939733][ T8743] lock(mtd_table_mutex); [ 71.946645][ T8743] lock(major_names_lock); [ 71.953658][ T8743] lock(loop_ctl_mutex); [ 71.957965][ T8743] [ 71.957965][ T8743] *** DEADLOCK *** [ 71.957965][ T8743] [ 71.966088][ T8743] 1 lock held by systemd-udevd/8743: [ 71.971347][ T8743] #0: ffffffff8c1f3fe8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 71.981246][ T8743] [ 71.981246][ T8743] stack backtrace: [ 71.987109][ T8743] CPU: 0 PID: 8743 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 71.995689][ T8743] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 72.005725][ T8743] Call Trace: [ 72.008992][ T8743] dump_stack_lvl+0xcd/0x134 [ 72.013571][ T8743] check_noncircular+0x25f/0x2e0 [ 72.018489][ T8743] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 72.024452][ T8743] ? print_circular_bug+0x1e0/0x1e0 [ 72.029631][ T8743] ? lock_chain_count+0x20/0x20 [ 72.034466][ T8743] ? lockdep_lock+0xc6/0x200 [ 72.039041][ T8743] ? call_rcu_zapped+0xb0/0xb0 [ 72.043789][ T8743] __lock_acquire+0x2a07/0x54a0 [ 72.048621][ T8743] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 72.054598][ T8743] lock_acquire+0x1ab/0x510 [ 72.059080][ T8743] ? loop_add+0x9c/0x8c0 [ 72.063303][ T8743] ? lock_release+0x720/0x720 [ 72.067962][ T8743] ? path_openat+0x1c23/0x27f0 [ 72.072720][ T8743] ? do_filp_open+0x1aa/0x400 [ 72.077391][ T8743] ? do_sys_openat2+0x16d/0x420 [ 72.082227][ T8743] ? __x64_sys_open+0x119/0x1c0 [ 72.087113][ T8743] __mutex_lock+0x12a/0x10a0 [ 72.091698][ T8743] ? loop_add+0x9c/0x8c0 [ 72.095930][ T8743] ? loop_add+0x9c/0x8c0 [ 72.100161][ T8743] ? mutex_lock_io_nested+0xf00/0xf00 [ 72.105525][ T8743] ? rcu_read_lock_sched_held+0x3a/0x70 [ 72.111083][ T8743] loop_add+0x9c/0x8c0 [ 72.115134][ T8743] ? find_inode_fast+0x16f/0x220 [ 72.120056][ T8743] loop_probe+0x6a/0x80 [ 72.124211][ T8743] ? loop_add+0x8c0/0x8c0 [ 72.128526][ T8743] blk_request_module+0x111/0x1d0 [ 72.133536][ T8743] blkdev_get_no_open+0x1d5/0x250 [ 72.138541][ T8743] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 72.144101][ T8743] ? devcgroup_check_permission+0x1bb/0x410 [ 72.149992][ T8743] blkdev_open+0x295/0x300 [ 72.154392][ T8743] do_dentry_open+0x4c8/0x11d0 [ 72.159142][ T8743] ? blkdev_get_by_dev+0x80/0x80 [ 72.164063][ T8743] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 72.170292][ T8743] ? may_open+0x1f6/0x420 [ 72.174607][ T8743] path_openat+0x1c23/0x27f0 [ 72.179185][ T8743] ? path_lookupat+0x860/0x860 [ 72.183931][ T8743] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 72.189913][ T8743] do_filp_open+0x1aa/0x400 [ 72.194400][ T8743] ? may_open_dev+0xf0/0xf0 [ 72.198893][ T8743] ? rwlock_bug.part.0+0x90/0x90 [ 72.203825][ T8743] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 72.210056][ T8743] ? _find_next_bit+0x1e3/0x260 [ 72.214891][ T8743] ? _raw_spin_unlock+0x24/0x40 [ 72.219727][ T8743] ? alloc_fd+0x2f0/0x670 [ 72.224161][ T8743] do_sys_openat2+0x16d/0x420 [ 72.228827][ T8743] ? build_open_flags+0x6f0/0x6f0 [ 72.233888][ T8743] ? __context_tracking_exit+0xb8/0xe0 [ 72.239337][ T8743] __x64_sys_open+0x119/0x1c0 [ 72.244001][ T8743] ? do_sys_open+0x140/0x140 [ 72.248573][ T8743] ? __secure_computing+0x104/0x360 [ 72.253757][ T8743] do_syscall_64+0x35/0xb0 [ 72.258158][ T8743] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 72.264031][ T8743] RIP: 0033:0x7f3ed1d7f840 [ 72.268426][ T8743] 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.288052][ T8743] RSP: 002b:00007ffcc8635da8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 72.296445][ T8743] RAX: ffffffffffffffda RBX: 000055869b9f7520 RCX: 00007f3ed1d7f840 [ 72.304397][ T8743] RDX: 000055869a35cfe3 RSI: 00000000000a0800 RDI: 000055869b9f71d0 [ 72.312346][ T8743] RBP: 00007ffcc8635f20 R08: 000055869a35c670 R09: 0000000000000010 executing program [ 72.320297][ T8743] R10: 000055869a35cd0c R11: 0000000000000246 R12: 00007ffcc8635e70 [ 72.328254][ T8743] R13: 000055869b9f8e10 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