Warning: Permanently added '10.128.0.215' (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 [ 69.769405][ T8577] [ 69.771865][ T8577] ====================================================== [ 69.778858][ T8577] WARNING: possible circular locking dependency detected [ 69.785843][ T8577] 5.13.0-syzkaller #0 Not tainted [ 69.790832][ T8577] ------------------------------------------------------ [ 69.797816][ T8577] systemd-udevd/8577 is trying to acquire lock: [ 69.804019][ T8577] ffffffff8cc7c968 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_probe+0xc7/0x150 [ 69.812618][ T8577] [ 69.812618][ T8577] but task is already holding lock: [ 69.819948][ T8577] ffffffff8c9e9ba8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 69.829478][ T8577] [ 69.829478][ T8577] which lock already depends on the new lock. [ 69.829478][ T8577] [ 69.839893][ T8577] [ 69.839893][ T8577] the existing dependency chain (in reverse order) is: [ 69.848889][ T8577] [ 69.848889][ T8577] -> #3 (major_names_lock){+.+.}-{3:3}: [ 69.856586][ T8577] __mutex_lock+0x12a/0x10a0 [ 69.861684][ T8577] __register_blkdev+0x2b/0x3e0 [ 69.867030][ T8577] register_mtd_blktrans+0x85/0x3c0 [ 69.872865][ T8577] do_one_initcall+0x103/0x650 [ 69.878123][ T8577] kernel_init_freeable+0x6b8/0x741 [ 69.883817][ T8577] kernel_init+0x1a/0x1d0 [ 69.888639][ T8577] ret_from_fork+0x1f/0x30 [ 69.893549][ T8577] [ 69.893549][ T8577] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 69.901167][ T8577] __mutex_lock+0x12a/0x10a0 [ 69.906253][ T8577] blktrans_open+0x69/0x600 [ 69.911251][ T8577] blkdev_get_whole+0xa1/0x420 [ 69.916513][ T8577] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 69.922552][ T8577] blkdev_open+0x295/0x300 [ 69.927470][ T8577] do_dentry_open+0x4c8/0x11c0 [ 69.932728][ T8577] path_openat+0x1c0e/0x27e0 [ 69.937810][ T8577] do_filp_open+0x190/0x3d0 [ 69.942804][ T8577] do_sys_openat2+0x16d/0x420 [ 69.947992][ T8577] __x64_sys_open+0x119/0x1c0 [ 69.953160][ T8577] do_syscall_64+0x35/0xb0 [ 69.958069][ T8577] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 69.964455][ T8577] [ 69.964455][ T8577] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 69.972244][ T8577] __mutex_lock+0x12a/0x10a0 [ 69.977325][ T8577] del_gendisk+0x8b/0x770 [ 69.982258][ T8577] loop_control_ioctl+0x3e7/0x480 [ 69.987778][ T8577] __do_compat_sys_ioctl+0x1c7/0x290 [ 69.993554][ T8577] __do_fast_syscall_32+0x65/0xf0 [ 69.999075][ T8577] do_fast_syscall_32+0x2f/0x70 [ 70.004415][ T8577] entry_SYSENTER_compat_after_hwframe+0x4d/0x5c [ 70.011234][ T8577] [ 70.011234][ T8577] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 70.018758][ T8577] __lock_acquire+0x2a07/0x54a0 [ 70.024101][ T8577] lock_acquire+0x1ab/0x510 [ 70.029093][ T8577] __mutex_lock+0x12a/0x10a0 [ 70.034177][ T8577] loop_probe+0xc7/0x150 [ 70.038910][ T8577] blk_request_module+0x111/0x1d0 [ 70.044427][ T8577] blkdev_get_no_open+0x1d5/0x250 [ 70.049949][ T8577] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 70.055903][ T8577] blkdev_open+0x295/0x300 [ 70.060810][ T8577] do_dentry_open+0x4c8/0x11c0 [ 70.066068][ T8577] path_openat+0x1c0e/0x27e0 [ 70.071191][ T8577] do_filp_open+0x190/0x3d0 [ 70.076189][ T8577] do_sys_openat2+0x16d/0x420 [ 70.081355][ T8577] __x64_sys_open+0x119/0x1c0 [ 70.086524][ T8577] do_syscall_64+0x35/0xb0 [ 70.091438][ T8577] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.097828][ T8577] [ 70.097828][ T8577] other info that might help us debug this: [ 70.097828][ T8577] [ 70.108021][ T8577] Chain exists of: [ 70.108021][ T8577] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 70.108021][ T8577] [ 70.121014][ T8577] Possible unsafe locking scenario: [ 70.121014][ T8577] [ 70.128428][ T8577] CPU0 CPU1 [ 70.133760][ T8577] ---- ---- [ 70.139092][ T8577] lock(major_names_lock); [ 70.143564][ T8577] lock(mtd_table_mutex); [ 70.150463][ T8577] lock(major_names_lock); [ 70.157451][ T8577] lock(loop_ctl_mutex); [ 70.161753][ T8577] [ 70.161753][ T8577] *** DEADLOCK *** [ 70.161753][ T8577] [ 70.169865][ T8577] 1 lock held by systemd-udevd/8577: [ 70.175116][ T8577] #0: ffffffff8c9e9ba8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 70.184995][ T8577] [ 70.184995][ T8577] stack backtrace: [ 70.190851][ T8577] CPU: 0 PID: 8577 Comm: systemd-udevd Not tainted 5.13.0-syzkaller #0 [ 70.199063][ T8577] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 70.209087][ T8577] Call Trace: [ 70.212339][ T8577] dump_stack_lvl+0xcd/0x134 [ 70.216921][ T8577] check_noncircular+0x25f/0x2e0 [ 70.221832][ T8577] ? print_circular_bug+0x1e0/0x1e0 [ 70.227002][ T8577] ? mark_lock+0xef/0x17b0 [ 70.231390][ T8577] ? kasan_save_stack+0x32/0x40 [ 70.236213][ T8577] ? kasan_save_stack+0x1b/0x40 [ 70.241035][ T8577] ? lockdep_lock+0xc6/0x200 [ 70.245617][ T8577] ? call_rcu_zapped+0xb0/0xb0 [ 70.250351][ T8577] ? do_filp_open+0x190/0x3d0 [ 70.255001][ T8577] ? __x64_sys_open+0x119/0x1c0 [ 70.259822][ T8577] __lock_acquire+0x2a07/0x54a0 [ 70.264649][ T8577] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 70.270614][ T8577] lock_acquire+0x1ab/0x510 [ 70.275089][ T8577] ? loop_probe+0xc7/0x150 [ 70.279477][ T8577] ? lock_release+0x720/0x720 [ 70.284125][ T8577] __mutex_lock+0x12a/0x10a0 [ 70.288687][ T8577] ? loop_probe+0xc7/0x150 [ 70.293073][ T8577] ? loop_probe+0xc7/0x150 [ 70.297462][ T8577] ? mutex_lock_io_nested+0xf00/0xf00 [ 70.302807][ T8577] ? __mutex_lock+0x5bf/0x10a0 [ 70.307542][ T8577] ? find_held_lock+0x2d/0x110 [ 70.312275][ T8577] ? blk_request_module+0x25/0x1d0 [ 70.317367][ T8577] ? ilookup+0xb3/0x230 [ 70.321494][ T8577] loop_probe+0xc7/0x150 [ 70.325725][ T8577] ? loop_control_ioctl+0x480/0x480 [ 70.330894][ T8577] ? find_inode_fast+0x16f/0x220 [ 70.335802][ T8577] ? do_raw_spin_unlock+0x171/0x230 [ 70.340969][ T8577] ? loop_control_ioctl+0x480/0x480 [ 70.346138][ T8577] blk_request_module+0x111/0x1d0 [ 70.351134][ T8577] blkdev_get_no_open+0x1d5/0x250 [ 70.356131][ T8577] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 70.361565][ T8577] ? devcgroup_check_permission+0x1a8/0x420 [ 70.367442][ T8577] blkdev_open+0x295/0x300 [ 70.371858][ T8577] do_dentry_open+0x4c8/0x11c0 [ 70.376596][ T8577] ? blkdev_get_by_dev+0x80/0x80 [ 70.381506][ T8577] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 70.387737][ T8577] ? may_open+0x1f6/0x420 [ 70.392040][ T8577] path_openat+0x1c0e/0x27e0 [ 70.396606][ T8577] ? path_lookupat+0x850/0x850 [ 70.401339][ T8577] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 70.407392][ T8577] do_filp_open+0x190/0x3d0 [ 70.411896][ T8577] ? may_open_dev+0xf0/0xf0 [ 70.416388][ T8577] ? do_raw_spin_lock+0x120/0x2b0 [ 70.421385][ T8577] ? rwlock_bug.part.0+0x90/0x90 [ 70.426291][ T8577] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 70.432506][ T8577] ? _find_next_bit+0x1e3/0x260 [ 70.437338][ T8577] ? _raw_spin_unlock+0x24/0x40 [ 70.442164][ T8577] ? alloc_fd+0x2e6/0x660 [ 70.446468][ T8577] do_sys_openat2+0x16d/0x420 [ 70.451180][ T8577] ? build_open_flags+0x6f0/0x6f0 [ 70.456179][ T8577] ? __context_tracking_exit+0xb8/0xe0 [ 70.461711][ T8577] __x64_sys_open+0x119/0x1c0 [ 70.466361][ T8577] ? do_sys_open+0x140/0x140 [ 70.470924][ T8577] ? __secure_computing+0x104/0x360 [ 70.476093][ T8577] do_syscall_64+0x35/0xb0 [ 70.480482][ T8577] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 70.486352][ T8577] RIP: 0033:0x7fb46ae7f840 [ 70.490741][ T8577] 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 [ 70.510320][ T8577] RSP: 002b:00007fffdd309608 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 executing program executing program executing program executing program [ 70.518736][ T8577] RAX: ffffffffffffffda RBX: 00005608a17eeee0 RCX: 00007fb46ae7f840 [ 70.526713][ T8577] RDX: 00005608a04ebfe3 RSI: 00000000000a0800 RDI: 00005608a18021b0 [ 70.534657][ T8577] RBP: 00007fffdd309780 R08: 00005608a04eb670 R09: 0000000000000010 [ 70.542615][ T8577] R10: 00005608a04ebd0c R11: 0000000000000246 R12: 00007fffdd3096d0 [ 70.550561][ T8577] R13: 00005608a1803e10 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