[ OK ] Started Getty on tty4. [ OK ] Started Getty on tty3. [ OK ] Started Getty on tty2. [ OK ] Started Getty on tty1. [ OK ] Started Serial Getty on ttyS0. [ 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.237' (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 syzkaller login: [ 76.423061][ T8599] [ 76.425582][ T8599] ====================================================== [ 76.432822][ T8599] WARNING: possible circular locking dependency detected [ 76.440014][ T8599] 5.13.0-rc7-syzkaller #0 Not tainted [ 76.445678][ T8599] ------------------------------------------------------ [ 76.453616][ T8599] systemd-udevd/8599 is trying to acquire lock: [ 76.460296][ T8599] ffffffff8ca6de28 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_probe+0xc7/0x150 [ 76.469250][ T8599] [ 76.469250][ T8599] but task is already holding lock: [ 76.477082][ T8599] ffffffff8c7e0368 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 76.487008][ T8599] [ 76.487008][ T8599] which lock already depends on the new lock. [ 76.487008][ T8599] [ 76.497630][ T8599] [ 76.497630][ T8599] the existing dependency chain (in reverse order) is: [ 76.506638][ T8599] [ 76.506638][ T8599] -> #3 (major_names_lock){+.+.}-{3:3}: [ 76.514888][ T8599] __mutex_lock+0x139/0x10c0 [ 76.520071][ T8599] __register_blkdev+0x2b/0x3e0 [ 76.525901][ T8599] register_mtd_blktrans+0x85/0x3c0 [ 76.531794][ T8599] do_one_initcall+0x103/0x650 [ 76.537262][ T8599] kernel_init_freeable+0x6c4/0x74d [ 76.543294][ T8599] kernel_init+0xd/0x1b8 [ 76.548355][ T8599] ret_from_fork+0x1f/0x30 [ 76.553595][ T8599] [ 76.553595][ T8599] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 76.561553][ T8599] __mutex_lock+0x139/0x10c0 [ 76.566768][ T8599] blktrans_open+0x69/0x600 [ 76.571977][ T8599] __blkdev_get+0x182/0xa30 [ 76.577371][ T8599] blkdev_get_by_dev+0x200/0x660 [ 76.582932][ T8599] blkdev_open+0x154/0x2b0 [ 76.588069][ T8599] do_dentry_open+0x4b9/0x11b0 [ 76.593479][ T8599] path_openat+0x1c0e/0x27e0 [ 76.598806][ T8599] do_filp_open+0x190/0x3d0 [ 76.603927][ T8599] do_sys_openat2+0x16d/0x420 [ 76.609317][ T8599] __x64_sys_open+0x119/0x1c0 [ 76.614511][ T8599] do_syscall_64+0x3a/0xb0 [ 76.619650][ T8599] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 76.626227][ T8599] [ 76.626227][ T8599] -> #1 (&bdev->bd_mutex){+.+.}-{3:3}: [ 76.633863][ T8599] __mutex_lock+0x139/0x10c0 [ 76.639479][ T8599] del_gendisk+0x24b/0xa00 [ 76.644540][ T8599] loop_control_ioctl+0x3e7/0x4c0 [ 76.650277][ T8599] __x64_sys_ioctl+0x193/0x200 [ 76.655728][ T8599] do_syscall_64+0x3a/0xb0 [ 76.660928][ T8599] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 76.667756][ T8599] [ 76.667756][ T8599] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 76.677026][ T8599] __lock_acquire+0x2a17/0x5230 [ 76.682506][ T8599] lock_acquire+0x1ab/0x510 [ 76.687899][ T8599] __mutex_lock+0x139/0x10c0 [ 76.693469][ T8599] loop_probe+0xc7/0x150 [ 76.698439][ T8599] blk_request_module+0x111/0x1d0 [ 76.704504][ T8599] blkdev_get_no_open+0x1d8/0x250 [ 76.710153][ T8599] blkdev_get_by_dev+0x76/0x660 [ 76.715740][ T8599] blkdev_open+0x154/0x2b0 [ 76.720909][ T8599] do_dentry_open+0x4b9/0x11b0 [ 76.726212][ T8599] path_openat+0x1c0e/0x27e0 [ 76.731415][ T8599] do_filp_open+0x190/0x3d0 [ 76.736628][ T8599] do_sys_openat2+0x16d/0x420 [ 76.741884][ T8599] __x64_sys_open+0x119/0x1c0 [ 76.747533][ T8599] do_syscall_64+0x3a/0xb0 [ 76.752602][ T8599] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 76.759016][ T8599] [ 76.759016][ T8599] other info that might help us debug this: [ 76.759016][ T8599] [ 76.769795][ T8599] Chain exists of: [ 76.769795][ T8599] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 76.769795][ T8599] [ 76.783094][ T8599] Possible unsafe locking scenario: [ 76.783094][ T8599] [ 76.790734][ T8599] CPU0 CPU1 [ 76.796325][ T8599] ---- ---- [ 76.802030][ T8599] lock(major_names_lock); [ 76.806519][ T8599] lock(mtd_table_mutex); [ 76.813443][ T8599] lock(major_names_lock); [ 76.820451][ T8599] lock(loop_ctl_mutex); [ 76.824780][ T8599] [ 76.824780][ T8599] *** DEADLOCK *** [ 76.824780][ T8599] [ 76.833003][ T8599] 1 lock held by systemd-udevd/8599: [ 76.838274][ T8599] #0: ffffffff8c7e0368 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 76.848390][ T8599] [ 76.848390][ T8599] stack backtrace: [ 76.854265][ T8599] CPU: 0 PID: 8599 Comm: systemd-udevd Not tainted 5.13.0-rc7-syzkaller #0 [ 76.863013][ T8599] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 76.873175][ T8599] Call Trace: [ 76.876449][ T8599] dump_stack+0x141/0x1d7 [ 76.880776][ T8599] check_noncircular+0x25f/0x2e0 [ 76.885823][ T8599] ? print_circular_bug+0x1e0/0x1e0 [ 76.891151][ T8599] ? mark_lock+0xef/0x17b0 [ 76.895651][ T8599] ? lockdep_lock+0xc6/0x200 [ 76.900240][ T8599] ? call_rcu_zapped+0xb0/0xb0 [ 76.905146][ T8599] ? tomoyo_check_open_permission+0x172/0x380 [ 76.911323][ T8599] ? security_file_open+0x52/0x4f0 [ 76.916444][ T8599] __lock_acquire+0x2a17/0x5230 [ 76.921321][ T8599] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 76.927304][ T8599] lock_acquire+0x1ab/0x510 [ 76.931805][ T8599] ? loop_probe+0xc7/0x150 [ 76.936311][ T8599] ? lock_release+0x720/0x720 [ 76.940983][ T8599] __mutex_lock+0x139/0x10c0 [ 76.945651][ T8599] ? loop_probe+0xc7/0x150 [ 76.950135][ T8599] ? loop_probe+0xc7/0x150 [ 76.954724][ T8599] ? mutex_lock_io_nested+0xf20/0xf20 [ 76.960382][ T8599] ? __mutex_lock+0x5d5/0x10c0 [ 76.965355][ T8599] ? blk_request_module+0x25/0x1d0 [ 76.970917][ T8599] ? find_held_lock+0x2d/0x110 [ 76.975901][ T8599] ? mutex_lock_io_nested+0xf20/0xf20 [ 76.981283][ T8599] ? ilookup+0xb3/0x230 [ 76.985554][ T8599] loop_probe+0xc7/0x150 [ 76.989956][ T8599] ? loop_control_ioctl+0x4c0/0x4c0 [ 76.995724][ T8599] ? find_inode_fast+0x16f/0x220 [ 77.000661][ T8599] ? do_raw_spin_unlock+0x171/0x230 [ 77.005923][ T8599] ? loop_control_ioctl+0x4c0/0x4c0 [ 77.011206][ T8599] blk_request_module+0x111/0x1d0 [ 77.016323][ T8599] blkdev_get_no_open+0x1d8/0x250 [ 77.021607][ T8599] blkdev_get_by_dev+0x76/0x660 [ 77.026453][ T8599] blkdev_open+0x154/0x2b0 [ 77.030869][ T8599] do_dentry_open+0x4b9/0x11b0 [ 77.035709][ T8599] ? blkdev_get_by_dev+0x660/0x660 [ 77.040967][ T8599] ? may_open+0x1f6/0x420 [ 77.045884][ T8599] path_openat+0x1c0e/0x27e0 [ 77.050741][ T8599] ? path_lookupat+0x850/0x850 [ 77.055592][ T8599] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 77.062119][ T8599] do_filp_open+0x190/0x3d0 [ 77.066681][ T8599] ? may_open_dev+0xf0/0xf0 [ 77.071785][ T8599] ? do_raw_spin_lock+0x120/0x2b0 [ 77.076912][ T8599] ? rwlock_bug.part.0+0x90/0x90 [ 77.082069][ T8599] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 77.088325][ T8599] ? _find_next_bit+0x1e3/0x260 [ 77.093291][ T8599] ? _raw_spin_unlock+0x24/0x40 [ 77.098246][ T8599] ? alloc_fd+0x2e6/0x660 [ 77.103362][ T8599] do_sys_openat2+0x16d/0x420 [ 77.108218][ T8599] ? build_open_flags+0x6f0/0x6f0 [ 77.113529][ T8599] ? __context_tracking_exit+0xb8/0xe0 [ 77.119545][ T8599] __x64_sys_open+0x119/0x1c0 [ 77.124362][ T8599] ? do_sys_open+0x140/0x140 [ 77.129331][ T8599] ? __secure_computing+0x104/0x360 [ 77.134656][ T8599] do_syscall_64+0x3a/0xb0 [ 77.139548][ T8599] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 77.145663][ T8599] RIP: 0033:0x7f8981dd5840 [ 77.150097][ T8599] 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 [ 77.170643][ T8599] RSP: 002b:00007fff5673b7a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 77.179464][ T8599] RAX: ffffffffffffffda RBX: 000055f6135beee0 RCX: 00007f8981dd5840 [ 77.187999][ T8599] RDX: 000055f611f7dfe3 RSI: 00000000000a0800 RDI: 000055f6135d21b0 [ 77.196334][ T8599] RBP: 00007fff5673b920 R08: 000055f611f7d670 R09: 0000000000000010 [ 77.205160][ T8599] R10: 000055f611f7dd0c R11: 0000000000000246 R12: 00007fff5673b870 [ 77.213218][ T8599] R13: 000055f6135d3e10 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