Warning: Permanently added '10.128.10.8' (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 [ 77.030357][ T8770] [ 77.032699][ T8770] ====================================================== [ 77.039782][ T8770] WARNING: possible circular locking dependency detected [ 77.046780][ T8770] 5.14.0-rc5-syzkaller #0 Not tainted [ 77.052242][ T8770] ------------------------------------------------------ [ 77.059305][ T8770] systemd-udevd/8770 is trying to acquire lock: [ 77.065588][ T8770] ffffffff8c486b88 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_add+0x9c/0x8c0 [ 77.074293][ T8770] [ 77.074293][ T8770] but task is already holding lock: [ 77.081651][ T8770] ffffffff8c1f3fe8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 77.091845][ T8770] [ 77.091845][ T8770] which lock already depends on the new lock. [ 77.091845][ T8770] [ 77.102238][ T8770] [ 77.102238][ T8770] the existing dependency chain (in reverse order) is: [ 77.111482][ T8770] [ 77.111482][ T8770] -> #3 (major_names_lock){+.+.}-{3:3}: [ 77.119225][ T8770] __mutex_lock+0x12a/0x10a0 [ 77.124376][ T8770] __register_blkdev+0x2b/0x3e0 [ 77.129742][ T8770] register_mtd_blktrans+0x85/0x3c0 [ 77.135538][ T8770] do_one_initcall+0x103/0x650 [ 77.140810][ T8770] kernel_init_freeable+0x6b8/0x741 [ 77.146516][ T8770] kernel_init+0x1a/0x1d0 [ 77.151359][ T8770] ret_from_fork+0x1f/0x30 [ 77.156294][ T8770] [ 77.156294][ T8770] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 77.164038][ T8770] __mutex_lock+0x12a/0x10a0 [ 77.169245][ T8770] blktrans_open+0x69/0x600 [ 77.174322][ T8770] blkdev_get_whole+0xa1/0x420 [ 77.179600][ T8770] blkdev_get_by_dev.part.0+0x30c/0xdd0 [ 77.185901][ T8770] blkdev_open+0x295/0x300 [ 77.190936][ T8770] do_dentry_open+0x4c8/0x11d0 [ 77.196217][ T8770] path_openat+0x1c23/0x27f0 [ 77.201605][ T8770] do_filp_open+0x1aa/0x400 [ 77.206658][ T8770] do_sys_openat2+0x16d/0x420 [ 77.212019][ T8770] __x64_sys_open+0x119/0x1c0 [ 77.217328][ T8770] do_syscall_64+0x35/0xb0 [ 77.222357][ T8770] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 77.228969][ T8770] [ 77.228969][ T8770] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 77.236771][ T8770] __mutex_lock+0x12a/0x10a0 [ 77.241887][ T8770] del_gendisk+0x8b/0x770 [ 77.246786][ T8770] loop_control_ioctl+0x3b5/0x450 [ 77.252617][ T8770] __do_compat_sys_ioctl+0x1c7/0x290 [ 77.258428][ T8770] __do_fast_syscall_32+0x65/0xf0 [ 77.264551][ T8770] do_fast_syscall_32+0x2f/0x70 [ 77.269975][ T8770] entry_SYSENTER_compat_after_hwframe+0x4d/0x5c [ 77.278379][ T8770] [ 77.278379][ T8770] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 77.285925][ T8770] __lock_acquire+0x2a07/0x54a0 [ 77.291790][ T8770] lock_acquire+0x1ab/0x510 [ 77.296825][ T8770] __mutex_lock+0x12a/0x10a0 [ 77.302212][ T8770] loop_add+0x9c/0x8c0 [ 77.306882][ T8770] loop_probe+0x6a/0x80 [ 77.311544][ T8770] blk_request_module+0x111/0x1d0 [ 77.317187][ T8770] blkdev_get_no_open+0x1d5/0x250 [ 77.322773][ T8770] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 77.329543][ T8770] blkdev_open+0x295/0x300 [ 77.334676][ T8770] do_dentry_open+0x4c8/0x11d0 [ 77.340152][ T8770] path_openat+0x1c23/0x27f0 [ 77.345251][ T8770] do_filp_open+0x1aa/0x400 [ 77.350259][ T8770] do_sys_openat2+0x16d/0x420 [ 77.355442][ T8770] __x64_sys_open+0x119/0x1c0 [ 77.360624][ T8770] do_syscall_64+0x35/0xb0 [ 77.365553][ T8770] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 77.372127][ T8770] [ 77.372127][ T8770] other info that might help us debug this: [ 77.372127][ T8770] [ 77.382448][ T8770] Chain exists of: [ 77.382448][ T8770] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 77.382448][ T8770] [ 77.395466][ T8770] Possible unsafe locking scenario: [ 77.395466][ T8770] [ 77.403184][ T8770] CPU0 CPU1 [ 77.413481][ T8770] ---- ---- [ 77.418829][ T8770] lock(major_names_lock); [ 77.423309][ T8770] lock(mtd_table_mutex); [ 77.430228][ T8770] lock(major_names_lock); [ 77.437328][ T8770] lock(loop_ctl_mutex); [ 77.441663][ T8770] [ 77.441663][ T8770] *** DEADLOCK *** [ 77.441663][ T8770] [ 77.449785][ T8770] 1 lock held by systemd-udevd/8770: [ 77.455051][ T8770] #0: ffffffff8c1f3fe8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 77.465058][ T8770] [ 77.465058][ T8770] stack backtrace: [ 77.471714][ T8770] CPU: 0 PID: 8770 Comm: systemd-udevd Not tainted 5.14.0-rc5-syzkaller #0 [ 77.480670][ T8770] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 77.490816][ T8770] Call Trace: [ 77.494221][ T8770] dump_stack_lvl+0xcd/0x134 [ 77.498894][ T8770] check_noncircular+0x25f/0x2e0 [ 77.504196][ T8770] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 77.510286][ T8770] ? print_circular_bug+0x1e0/0x1e0 [ 77.515464][ T8770] ? lock_chain_count+0x20/0x20 [ 77.520298][ T8770] ? lockdep_lock+0xc6/0x200 [ 77.524962][ T8770] ? call_rcu_zapped+0xb0/0xb0 [ 77.529746][ T8770] __lock_acquire+0x2a07/0x54a0 [ 77.534594][ T8770] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 77.540578][ T8770] lock_acquire+0x1ab/0x510 [ 77.545363][ T8770] ? loop_add+0x9c/0x8c0 [ 77.549949][ T8770] ? lock_release+0x720/0x720 [ 77.554707][ T8770] ? path_openat+0x1c23/0x27f0 [ 77.559645][ T8770] ? do_filp_open+0x1aa/0x400 [ 77.564710][ T8770] ? do_sys_openat2+0x16d/0x420 [ 77.569641][ T8770] ? __x64_sys_open+0x119/0x1c0 [ 77.575239][ T8770] __mutex_lock+0x12a/0x10a0 [ 77.580190][ T8770] ? loop_add+0x9c/0x8c0 [ 77.584427][ T8770] ? loop_add+0x9c/0x8c0 [ 77.588656][ T8770] ? mark_held_locks+0x9f/0xe0 [ 77.593496][ T8770] ? mutex_lock_io_nested+0xf00/0xf00 [ 77.599384][ T8770] ? rcu_read_lock_sched_held+0x3a/0x70 [ 77.605020][ T8770] loop_add+0x9c/0x8c0 [ 77.609227][ T8770] ? find_inode_fast+0x16f/0x220 [ 77.614164][ T8770] loop_probe+0x6a/0x80 [ 77.618319][ T8770] ? loop_add+0x8c0/0x8c0 [ 77.622719][ T8770] blk_request_module+0x111/0x1d0 [ 77.627744][ T8770] blkdev_get_no_open+0x1d5/0x250 [ 77.632769][ T8770] blkdev_get_by_dev.part.0+0x25/0xdd0 [ 77.638416][ T8770] ? devcgroup_check_permission+0x1bb/0x410 [ 77.644677][ T8770] blkdev_open+0x295/0x300 [ 77.649211][ T8770] do_dentry_open+0x4c8/0x11d0 [ 77.653980][ T8770] ? blkdev_get_by_dev+0x80/0x80 [ 77.659118][ T8770] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 77.665531][ T8770] ? may_open+0x1f6/0x420 [ 77.669848][ T8770] path_openat+0x1c23/0x27f0 [ 77.674783][ T8770] ? path_lookupat+0x860/0x860 [ 77.679530][ T8770] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 77.685643][ T8770] do_filp_open+0x1aa/0x400 [ 77.690408][ T8770] ? may_open_dev+0xf0/0xf0 [ 77.694906][ T8770] ? rwlock_bug.part.0+0x90/0x90 [ 77.700015][ T8770] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 77.706331][ T8770] ? _find_next_bit+0x1e3/0x260 [ 77.711202][ T8770] ? _raw_spin_unlock+0x24/0x40 [ 77.716217][ T8770] ? alloc_fd+0x2f0/0x670 [ 77.720576][ T8770] do_sys_openat2+0x16d/0x420 [ 77.725260][ T8770] ? build_open_flags+0x6f0/0x6f0 [ 77.730364][ T8770] ? __context_tracking_exit+0xb8/0xe0 [ 77.735902][ T8770] __x64_sys_open+0x119/0x1c0 [ 77.741014][ T8770] ? do_sys_open+0x140/0x140 [ 77.746191][ T8770] ? __secure_computing+0x104/0x360 [ 77.751926][ T8770] do_syscall_64+0x35/0xb0 [ 77.756438][ T8770] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 77.762521][ T8770] RIP: 0033:0x7f3a32631840 [ 77.767014][ T8770] 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.787341][ T8770] RSP: 002b:00007ffed0fe0858 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 77.796004][ T8770] RAX: ffffffffffffffda RBX: 0000556b464d68f0 RCX: 00007f3a32631840 [ 77.804142][ T8770] RDX: 0000556b4573afe3 RSI: 00000000000a0800 RDI: 0000556b464d6830 [ 77.812195][ T8770] RBP: 00007ffed0fe09d0 R08: 0000556b4573a670 R09: 0000000000000010 [ 77.820185][ T8770] R10: 0000556b4573ad0c R11: 0000000000000246 R12: 00007ffed0fe0920 [ 77.828167][ T8770] R13: 0000556b464d8010 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