[ 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.1.63' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 72.349808][ T8492] [ 72.352167][ T8492] ====================================================== [ 72.359168][ T8492] WARNING: possible circular locking dependency detected [ 72.366199][ T8492] 5.14.0-rc5-syzkaller #0 Not tainted [ 72.371547][ T8492] ------------------------------------------------------ [ 72.378577][ T8492] systemd-udevd/8492 is trying to acquire lock: [ 72.384817][ T8492] ffffffff8c487be8 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 72.393248][ T8492] [ 72.393248][ T8492] but task is already holding lock: [ 72.400589][ T8492] ffffffff8c1f4188 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 72.410047][ T8492] [ 72.410047][ T8492] which lock already depends on the new lock. [ 72.410047][ T8492] [ 72.420425][ T8492] [ 72.420425][ T8492] the existing dependency chain (in reverse order) is: [ 72.429439][ T8492] [ 72.429439][ T8492] -> #3 (major_names_lock){+.+.}-{3:3}: [ 72.437142][ T8492] __mutex_lock+0x12a/0x10a0 [ 72.442252][ T8492] __register_blkdev+0x2b/0x3e0 [ 72.447619][ T8492] register_mtd_blktrans+0x85/0x3c0 [ 72.453317][ T8492] do_one_initcall+0x103/0x650 [ 72.458587][ T8492] kernel_init_freeable+0x6b8/0x741 [ 72.464288][ T8492] kernel_init+0x1a/0x1d0 [ 72.469119][ T8492] ret_from_fork+0x1f/0x30 [ 72.474060][ T8492] [ 72.474060][ T8492] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 72.481684][ T8492] __mutex_lock+0x12a/0x10a0 [ 72.486788][ T8492] blktrans_open+0x69/0x600 [ 72.491809][ T8492] blkdev_get_whole+0xa1/0x420 [ 72.497074][ T8492] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 72.503128][ T8492] blkdev_open+0x295/0x300 [ 72.508049][ T8492] do_dentry_open+0x4c8/0x11d0 [ 72.513318][ T8492] path_openat+0x1c23/0x27f0 [ 72.518410][ T8492] do_filp_open+0x1aa/0x400 [ 72.523430][ T8492] do_sys_openat2+0x16d/0x420 [ 72.528610][ T8492] __x64_sys_open+0x119/0x1c0 [ 72.533789][ T8492] do_syscall_64+0x35/0xb0 [ 72.538708][ T8492] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 72.545099][ T8492] [ 72.545099][ T8492] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 72.552899][ T8492] __mutex_lock+0x12a/0x10a0 [ 72.557989][ T8492] del_gendisk+0x8b/0x770 [ 72.562820][ T8492] loop_control_ioctl+0x3b5/0x450 [ 72.568346][ T8492] __x64_sys_ioctl+0x193/0x200 [ 72.573617][ T8492] do_syscall_64+0x35/0xb0 [ 72.578543][ T8492] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 72.584941][ T8492] [ 72.584941][ T8492] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 72.592528][ T8492] __lock_acquire+0x2a07/0x54a0 [ 72.597937][ T8492] lock_acquire+0x1ab/0x510 [ 72.602946][ T8492] __mutex_lock+0x12a/0x10a0 [ 72.608052][ T8492] loop_add+0x9c/0x8c0 [ 72.612629][ T8492] loop_probe+0x6a/0x80 [ 72.617331][ T8492] blk_request_module+0x111/0x1d0 [ 72.622903][ T8492] blkdev_get_no_open+0x1d5/0x250 [ 72.628430][ T8492] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 72.634399][ T8492] blkdev_open+0x295/0x300 [ 72.639327][ T8492] do_dentry_open+0x4c8/0x11d0 [ 72.644604][ T8492] path_openat+0x1c23/0x27f0 [ 72.649703][ T8492] do_filp_open+0x1aa/0x400 [ 72.654711][ T8492] do_sys_openat2+0x16d/0x420 [ 72.659890][ T8492] __x64_sys_open+0x119/0x1c0 [ 72.665069][ T8492] do_syscall_64+0x35/0xb0 [ 72.669986][ T8492] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 72.676390][ T8492] [ 72.676390][ T8492] other info that might help us debug this: [ 72.676390][ T8492] [ 72.686648][ T8492] Chain exists of: [ 72.686648][ T8492] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 72.686648][ T8492] [ 72.699772][ T8492] Possible unsafe locking scenario: [ 72.699772][ T8492] [ 72.707290][ T8492] CPU0 CPU1 [ 72.712634][ T8492] ---- ---- [ 72.717974][ T8492] lock(major_names_lock); [ 72.722536][ T8492] lock(mtd_table_mutex); [ 72.729596][ T8492] lock(major_names_lock); [ 72.737214][ T8492] lock(loop_ctl_mutex); [ 72.741535][ T8492] [ 72.741535][ T8492] *** DEADLOCK *** [ 72.741535][ T8492] [ 72.749721][ T8492] 1 lock held by systemd-udevd/8492: [ 72.754991][ T8492] #0: ffffffff8c1f4188 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 72.764942][ T8492] [ 72.764942][ T8492] stack backtrace: [ 72.770814][ T8492] CPU: 0 PID: 8492 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 72.779388][ T8492] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 72.789437][ T8492] Call Trace: [ 72.792727][ T8492] dump_stack_lvl+0xcd/0x134 [ 72.797307][ T8492] check_noncircular+0x25f/0x2e0 [ 72.802227][ T8492] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 72.808186][ T8492] ? print_circular_bug+0x1e0/0x1e0 [ 72.813366][ T8492] ? lock_chain_count+0x20/0x20 [ 72.818202][ T8492] ? lockdep_lock+0xc6/0x200 [ 72.822774][ T8492] ? call_rcu_zapped+0xb0/0xb0 [ 72.827539][ T8492] __lock_acquire+0x2a07/0x54a0 [ 72.832394][ T8492] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 72.838355][ T8492] lock_acquire+0x1ab/0x510 [ 72.842840][ T8492] ? loop_add+0x9c/0x8c0 [ 72.847069][ T8492] ? lock_release+0x720/0x720 [ 72.851723][ T8492] ? path_openat+0x1c23/0x27f0 [ 72.856465][ T8492] ? do_filp_open+0x1aa/0x400 [ 72.861122][ T8492] ? do_sys_openat2+0x16d/0x420 [ 72.865959][ T8492] ? __x64_sys_open+0x119/0x1c0 [ 72.870793][ T8492] __mutex_lock+0x12a/0x10a0 [ 72.875368][ T8492] ? loop_add+0x9c/0x8c0 [ 72.879611][ T8492] ? loop_add+0x9c/0x8c0 [ 72.883834][ T8492] ? mutex_lock_io_nested+0xf00/0xf00 [ 72.889191][ T8492] ? rcu_read_lock_sched_held+0x3a/0x70 [ 72.894721][ T8492] loop_add+0x9c/0x8c0 [ 72.898791][ T8492] ? find_inode_fast+0x16f/0x220 [ 72.903728][ T8492] loop_probe+0x6a/0x80 [ 72.907880][ T8492] ? loop_add+0x8c0/0x8c0 [ 72.912189][ T8492] blk_request_module+0x111/0x1d0 [ 72.917201][ T8492] blkdev_get_no_open+0x1d5/0x250 [ 72.922207][ T8492] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 72.927750][ T8492] ? devcgroup_check_permission+0x1bb/0x410 [ 72.933624][ T8492] blkdev_open+0x295/0x300 [ 72.938020][ T8492] do_dentry_open+0x4c8/0x11d0 [ 72.942764][ T8492] ? blkdev_get_by_dev+0x80/0x80 [ 72.947679][ T8492] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 72.953898][ T8492] ? may_open+0x1f6/0x420 [ 72.958225][ T8492] path_openat+0x1c23/0x27f0 [ 72.962809][ T8492] ? path_lookupat+0x860/0x860 [ 72.967552][ T8492] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 72.973513][ T8492] do_filp_open+0x1aa/0x400 [ 72.977997][ T8492] ? may_open_dev+0xf0/0xf0 [ 72.982493][ T8492] ? rwlock_bug.part.0+0x90/0x90 [ 72.987419][ T8492] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 72.993700][ T8492] ? _find_next_bit+0x1e3/0x260 [ 72.998554][ T8492] ? _raw_spin_unlock+0x24/0x40 [ 73.003390][ T8492] ? alloc_fd+0x2f0/0x670 [ 73.007713][ T8492] do_sys_openat2+0x16d/0x420 [ 73.012408][ T8492] ? build_open_flags+0x6f0/0x6f0 [ 73.017425][ T8492] ? __context_tracking_exit+0xb8/0xe0 [ 73.022913][ T8492] __x64_sys_open+0x119/0x1c0 [ 73.027586][ T8492] ? do_sys_open+0x140/0x140 [ 73.032163][ T8492] ? __secure_computing+0x104/0x360 [ 73.037355][ T8492] do_syscall_64+0x35/0xb0 [ 73.041757][ T8492] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 73.048013][ T8492] RIP: 0033:0x7fa60506c840 [ 73.052415][ T8492] 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 [ 73.072003][ T8492] RSP: 002b:00007ffe7513dd78 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 73.080396][ T8492] RAX: ffffffffffffffda RBX: 00005590a33bb8f0 RCX: 00007fa60506c840 [ 73.088351][ T8492] RDX: 00005590a2707fe3 RSI: 00000000000a0800 RDI: 00005590a33bb830 executing program [ 73.096309][ T8492] RBP: 00007ffe7513def0 R08: 00005590a2707670 R09: 0000000000000010 [ 73.104266][ T8492] R10: 00005590a2707d0c R11: 0000000000000246 R12: 00007ffe7513de40 [ 73.112219][ T8492] R13: 00005590a33bd010 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