Warning: Permanently added '10.128.0.88' (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 syzkaller login: [ 59.271042][ T8567] [ 59.273655][ T8567] ====================================================== [ 59.280653][ T8567] WARNING: possible circular locking dependency detected [ 59.287969][ T8567] 5.13.0-rc6-syzkaller #0 Not tainted [ 59.293313][ T8567] ------------------------------------------------------ [ 59.300392][ T8567] systemd-udevd/8567 is trying to acquire lock: [ 59.306601][ T8567] ffffffff8ca6de28 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_probe+0xc7/0x150 [ 59.315290][ T8567] [ 59.315290][ T8567] but task is already holding lock: [ 59.323072][ T8567] ffffffff8c7e0368 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 59.332527][ T8567] [ 59.332527][ T8567] which lock already depends on the new lock. [ 59.332527][ T8567] [ 59.342900][ T8567] [ 59.342900][ T8567] the existing dependency chain (in reverse order) is: [ 59.351885][ T8567] [ 59.351885][ T8567] -> #3 (major_names_lock){+.+.}-{3:3}: [ 59.359611][ T8567] __mutex_lock+0x139/0x10c0 [ 59.364711][ T8567] __register_blkdev+0x2b/0x3e0 [ 59.370060][ T8567] register_mtd_blktrans+0x85/0x3c0 [ 59.375758][ T8567] do_one_initcall+0x103/0x650 [ 59.381028][ T8567] kernel_init_freeable+0x6c4/0x74d [ 59.387111][ T8567] kernel_init+0xd/0x1b8 [ 59.391851][ T8567] ret_from_fork+0x1f/0x30 [ 59.396766][ T8567] [ 59.396766][ T8567] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 59.404551][ T8567] __mutex_lock+0x139/0x10c0 [ 59.409639][ T8567] blktrans_open+0x69/0x600 [ 59.414642][ T8567] __blkdev_get+0x182/0xa30 [ 59.419644][ T8567] blkdev_get_by_dev+0x200/0x660 [ 59.425098][ T8567] blkdev_open+0x154/0x2b0 [ 59.430012][ T8567] do_dentry_open+0x4b9/0x11b0 [ 59.435282][ T8567] path_openat+0x1c0e/0x27e0 [ 59.440374][ T8567] do_filp_open+0x190/0x3d0 [ 59.445393][ T8567] do_sys_openat2+0x16d/0x420 [ 59.450568][ T8567] __x64_sys_open+0x119/0x1c0 [ 59.455829][ T8567] do_syscall_64+0x3a/0xb0 [ 59.460832][ T8567] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 59.467398][ T8567] [ 59.467398][ T8567] -> #1 (&bdev->bd_mutex){+.+.}-{3:3}: [ 59.475012][ T8567] __mutex_lock+0x139/0x10c0 [ 59.480102][ T8567] del_gendisk+0x24b/0xa00 [ 59.485015][ T8567] loop_control_ioctl+0x3e7/0x4c0 [ 59.490541][ T8567] __x64_sys_ioctl+0x193/0x200 [ 59.496066][ T8567] do_syscall_64+0x3a/0xb0 [ 59.500982][ T8567] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 59.507547][ T8567] [ 59.507547][ T8567] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 59.515075][ T8567] __lock_acquire+0x2a17/0x5230 [ 59.520430][ T8567] lock_acquire+0x1ab/0x740 [ 59.525433][ T8567] __mutex_lock+0x139/0x10c0 [ 59.530698][ T8567] loop_probe+0xc7/0x150 [ 59.535440][ T8567] blk_request_module+0x111/0x1d0 [ 59.540978][ T8567] blkdev_get_no_open+0x1d8/0x250 [ 59.546497][ T8567] blkdev_get_by_dev+0x76/0x660 [ 59.551844][ T8567] blkdev_open+0x154/0x2b0 [ 59.556759][ T8567] do_dentry_open+0x4b9/0x11b0 [ 59.562285][ T8567] path_openat+0x1c0e/0x27e0 [ 59.567389][ T8567] do_filp_open+0x190/0x3d0 [ 59.572392][ T8567] do_sys_openat2+0x16d/0x420 [ 59.577566][ T8567] __x64_sys_open+0x119/0x1c0 [ 59.582737][ T8567] do_syscall_64+0x3a/0xb0 [ 59.587825][ T8567] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 59.594218][ T8567] [ 59.594218][ T8567] other info that might help us debug this: [ 59.594218][ T8567] [ 59.604418][ T8567] Chain exists of: [ 59.604418][ T8567] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 59.604418][ T8567] [ 59.617606][ T8567] Possible unsafe locking scenario: [ 59.617606][ T8567] [ 59.625211][ T8567] CPU0 CPU1 [ 59.630555][ T8567] ---- ---- [ 59.635892][ T8567] lock(major_names_lock); [ 59.640369][ T8567] lock(mtd_table_mutex); [ 59.647287][ T8567] lock(major_names_lock); [ 59.654280][ T8567] lock(loop_ctl_mutex); [ 59.658580][ T8567] [ 59.658580][ T8567] *** DEADLOCK *** [ 59.658580][ T8567] [ 59.666707][ T8567] 1 lock held by systemd-udevd/8567: [ 59.671963][ T8567] #0: ffffffff8c7e0368 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 59.681851][ T8567] [ 59.681851][ T8567] stack backtrace: [ 59.687709][ T8567] CPU: 1 PID: 8567 Comm: systemd-udevd Not tainted 5.13.0-rc6-syzkaller #0 [ 59.696270][ T8567] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 59.706300][ T8567] Call Trace: [ 59.709562][ T8567] dump_stack+0x141/0x1d7 [ 59.713872][ T8567] check_noncircular+0x25f/0x2e0 [ 59.718787][ T8567] ? print_circular_bug+0x1e0/0x1e0 [ 59.723963][ T8567] ? mark_lock+0xef/0x17b0 [ 59.728361][ T8567] ? lockdep_lock+0xc6/0x200 [ 59.732930][ T8567] ? call_rcu_zapped+0xb0/0xb0 [ 59.737672][ T8567] ? tomoyo_check_open_permission+0x172/0x380 [ 59.743718][ T8567] ? security_file_open+0x52/0x4f0 [ 59.748811][ T8567] __lock_acquire+0x2a17/0x5230 [ 59.753652][ T8567] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 59.759611][ T8567] lock_acquire+0x1ab/0x740 [ 59.764099][ T8567] ? loop_probe+0xc7/0x150 [ 59.768496][ T8567] ? lock_release+0x720/0x720 [ 59.773156][ T8567] __mutex_lock+0x139/0x10c0 [ 59.777727][ T8567] ? loop_probe+0xc7/0x150 [ 59.782123][ T8567] ? loop_probe+0xc7/0x150 [ 59.786515][ T8567] ? mutex_lock_io_nested+0xf20/0xf20 [ 59.791862][ T8567] ? __mutex_lock+0x5d5/0x10c0 [ 59.796604][ T8567] ? blk_request_module+0x25/0x1d0 [ 59.801694][ T8567] ? find_held_lock+0x2d/0x110 [ 59.806435][ T8567] ? mutex_lock_io_nested+0xf20/0xf20 [ 59.811787][ T8567] ? ilookup+0xb3/0x230 [ 59.815921][ T8567] loop_probe+0xc7/0x150 [ 59.820144][ T8567] ? loop_control_ioctl+0x4c0/0x4c0 [ 59.825319][ T8567] ? find_inode_fast+0x16f/0x220 [ 59.830241][ T8567] ? do_raw_spin_unlock+0x171/0x230 [ 59.835416][ T8567] ? loop_control_ioctl+0x4c0/0x4c0 [ 59.840593][ T8567] blk_request_module+0x111/0x1d0 [ 59.845598][ T8567] blkdev_get_no_open+0x1d8/0x250 [ 59.850601][ T8567] blkdev_get_by_dev+0x76/0x660 [ 59.855429][ T8567] blkdev_open+0x154/0x2b0 [ 59.860045][ T8567] do_dentry_open+0x4b9/0x11b0 [ 59.865055][ T8567] ? blkdev_get_by_dev+0x660/0x660 [ 59.870374][ T8567] ? may_open+0x1f6/0x420 [ 59.874684][ T8567] path_openat+0x1c0e/0x27e0 [ 59.879253][ T8567] ? path_lookupat+0x850/0x850 [ 59.883996][ T8567] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 59.889957][ T8567] do_filp_open+0x190/0x3d0 [ 59.894527][ T8567] ? may_open_dev+0xf0/0xf0 [ 59.899043][ T8567] ? do_raw_spin_lock+0x120/0x2b0 [ 59.904720][ T8567] ? rwlock_bug.part.0+0x90/0x90 [ 59.909633][ T8567] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 59.915854][ T8567] ? _find_next_bit+0x1e3/0x260 [ 59.920686][ T8567] ? _raw_spin_unlock+0x24/0x40 [ 59.925512][ T8567] ? alloc_fd+0x2e6/0x660 [ 59.929992][ T8567] do_sys_openat2+0x16d/0x420 [ 59.934875][ T8567] ? build_open_flags+0x6f0/0x6f0 [ 59.940112][ T8567] ? __context_tracking_exit+0xb8/0xe0 [ 59.945757][ T8567] __x64_sys_open+0x119/0x1c0 [ 59.950503][ T8567] ? do_sys_open+0x140/0x140 [ 59.955076][ T8567] ? __secure_computing+0x104/0x360 [ 59.960463][ T8567] do_syscall_64+0x3a/0xb0 [ 59.964866][ T8567] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 59.970736][ T8567] RIP: 0033:0x7fd08f43a840 [ 59.975129][ T8567] 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 [ 59.994886][ T8567] RSP: 002b:00007fffcb9ba3d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 60.003507][ T8567] RAX: ffffffffffffffda RBX: 0000557e16c38810 RCX: 00007fd08f43a840 [ 60.011668][ T8567] RDX: 0000557e15204fe3 RSI: 00000000000a0800 RDI: 0000557e16c3d1b0 executing program executing program executing program executing program executing program [ 60.019876][ T8567] RBP: 00007fffcb9ba550 R08: 0000557e15204670 R09: 0000000000000010 [ 60.027826][ T8567] R10: 00007fd08f1b4d70 R11: 0000000000000246 R12: 00007fffcb9ba4a0 [ 60.036004][ T8567] R13: 0000557e16c3ee10 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