Warning: Permanently added '10.128.1.66' (ECDSA) to the list of known hosts. executing program executing program syzkaller login: [ 84.770915][ T8477] [ 84.773530][ T8477] ====================================================== [ 84.781268][ T8477] WARNING: possible circular locking dependency detected [ 84.788369][ T8477] 5.13.0-rc7-syzkaller #0 Not tainted [ 84.793909][ T8477] ------------------------------------------------------ [ 84.801224][ T8477] systemd-udevd/8477 is trying to acquire lock: [ 84.808207][ T8477] ffffffff8ca6de28 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_probe+0xc7/0x150 [ 84.817092][ T8477] [ 84.817092][ T8477] but task is already holding lock: [ 84.825412][ T8477] ffffffff8c7e0368 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 84.835460][ T8477] [ 84.835460][ T8477] which lock already depends on the new lock. [ 84.835460][ T8477] [ 84.846921][ T8477] [ 84.846921][ T8477] the existing dependency chain (in reverse order) is: [ 84.856656][ T8477] [ 84.856656][ T8477] -> #3 (major_names_lock){+.+.}-{3:3}: [ 84.864399][ T8477] __mutex_lock+0x139/0x10c0 [ 84.869544][ T8477] __register_blkdev+0x2b/0x3e0 [ 84.875138][ T8477] register_mtd_blktrans+0x85/0x3c0 [ 84.881110][ T8477] do_one_initcall+0x103/0x650 [ 84.886487][ T8477] kernel_init_freeable+0x6c4/0x74d [ 84.892208][ T8477] kernel_init+0xd/0x1b8 [ 84.898917][ T8477] ret_from_fork+0x1f/0x30 [ 84.904357][ T8477] [ 84.904357][ T8477] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 84.913036][ T8477] __mutex_lock+0x139/0x10c0 [ 84.918978][ T8477] blktrans_open+0x69/0x600 [ 84.924017][ T8477] __blkdev_get+0x182/0xa30 [ 84.929838][ T8477] blkdev_get_by_dev+0x200/0x660 [ 84.936845][ T8477] blkdev_open+0x154/0x2b0 [ 84.942953][ T8477] do_dentry_open+0x4b9/0x11b0 [ 84.949457][ T8477] path_openat+0x1c0e/0x27e0 [ 84.954576][ T8477] do_filp_open+0x190/0x3d0 [ 84.960204][ T8477] do_sys_openat2+0x16d/0x420 [ 84.965491][ T8477] __x64_sys_open+0x119/0x1c0 [ 84.971162][ T8477] do_syscall_64+0x3a/0xb0 [ 84.976766][ T8477] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 84.983918][ T8477] [ 84.983918][ T8477] -> #1 (&bdev->bd_mutex){+.+.}-{3:3}: [ 84.992534][ T8477] __mutex_lock+0x139/0x10c0 [ 84.997759][ T8477] del_gendisk+0x24b/0xa00 [ 85.002878][ T8477] loop_control_ioctl+0x3e7/0x4c0 [ 85.008738][ T8477] __x64_sys_ioctl+0x193/0x200 [ 85.014031][ T8477] do_syscall_64+0x3a/0xb0 [ 85.019111][ T8477] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 85.026317][ T8477] [ 85.026317][ T8477] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 85.034026][ T8477] __lock_acquire+0x2a17/0x5230 [ 85.039644][ T8477] lock_acquire+0x1ab/0x740 [ 85.045044][ T8477] __mutex_lock+0x139/0x10c0 [ 85.050369][ T8477] loop_probe+0xc7/0x150 [ 85.055923][ T8477] blk_request_module+0x111/0x1d0 [ 85.061914][ T8477] blkdev_get_no_open+0x1d8/0x250 [ 85.067984][ T8477] blkdev_get_by_dev+0x76/0x660 [ 85.073773][ T8477] blkdev_open+0x154/0x2b0 [ 85.079167][ T8477] do_dentry_open+0x4b9/0x11b0 [ 85.084907][ T8477] path_openat+0x1c0e/0x27e0 [ 85.090682][ T8477] do_filp_open+0x190/0x3d0 [ 85.095721][ T8477] do_sys_openat2+0x16d/0x420 [ 85.101186][ T8477] __x64_sys_open+0x119/0x1c0 [ 85.107265][ T8477] do_syscall_64+0x3a/0xb0 [ 85.112337][ T8477] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 85.119589][ T8477] [ 85.119589][ T8477] other info that might help us debug this: [ 85.119589][ T8477] [ 85.129819][ T8477] Chain exists of: [ 85.129819][ T8477] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 85.129819][ T8477] [ 85.143852][ T8477] Possible unsafe locking scenario: [ 85.143852][ T8477] [ 85.151587][ T8477] CPU0 CPU1 [ 85.157381][ T8477] ---- ---- [ 85.162737][ T8477] lock(major_names_lock); [ 85.167250][ T8477] lock(mtd_table_mutex); [ 85.174370][ T8477] lock(major_names_lock); [ 85.182136][ T8477] lock(loop_ctl_mutex); [ 85.186996][ T8477] [ 85.186996][ T8477] *** DEADLOCK *** [ 85.186996][ T8477] [ 85.195520][ T8477] 1 lock held by systemd-udevd/8477: [ 85.201075][ T8477] #0: ffffffff8c7e0368 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 85.211182][ T8477] [ 85.211182][ T8477] stack backtrace: [ 85.217463][ T8477] CPU: 0 PID: 8477 Comm: systemd-udevd Not tainted 5.13.0-rc7-syzkaller #0 [ 85.226786][ T8477] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 85.237369][ T8477] Call Trace: [ 85.240689][ T8477] dump_stack+0x141/0x1d7 [ 85.245251][ T8477] check_noncircular+0x25f/0x2e0 [ 85.250718][ T8477] ? print_circular_bug+0x1e0/0x1e0 [ 85.256016][ T8477] ? mark_lock+0xef/0x17b0 [ 85.260914][ T8477] ? lockdep_lock+0xc6/0x200 [ 85.266193][ T8477] ? call_rcu_zapped+0xb0/0xb0 [ 85.271309][ T8477] ? tomoyo_check_open_permission+0x172/0x380 [ 85.277965][ T8477] ? security_file_open+0x52/0x4f0 [ 85.283221][ T8477] __lock_acquire+0x2a17/0x5230 [ 85.288557][ T8477] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 85.295706][ T8477] lock_acquire+0x1ab/0x740 [ 85.300617][ T8477] ? loop_probe+0xc7/0x150 [ 85.305414][ T8477] ? lock_release+0x720/0x720 [ 85.310974][ T8477] __mutex_lock+0x139/0x10c0 [ 85.315744][ T8477] ? loop_probe+0xc7/0x150 [ 85.321433][ T8477] ? loop_probe+0xc7/0x150 [ 85.326263][ T8477] ? mutex_lock_io_nested+0xf20/0xf20 [ 85.332118][ T8477] ? __mutex_lock+0x5d5/0x10c0 [ 85.337012][ T8477] ? blk_request_module+0x25/0x1d0 [ 85.343223][ T8477] ? find_held_lock+0x2d/0x110 [ 85.348462][ T8477] ? mutex_lock_io_nested+0xf20/0xf20 [ 85.353837][ T8477] ? ilookup+0xb3/0x230 [ 85.358172][ T8477] loop_probe+0xc7/0x150 [ 85.362794][ T8477] ? loop_control_ioctl+0x4c0/0x4c0 [ 85.368486][ T8477] ? find_inode_fast+0x16f/0x220 [ 85.373740][ T8477] ? do_raw_spin_unlock+0x171/0x230 [ 85.379180][ T8477] ? loop_control_ioctl+0x4c0/0x4c0 [ 85.384811][ T8477] blk_request_module+0x111/0x1d0 [ 85.389924][ T8477] blkdev_get_no_open+0x1d8/0x250 [ 85.395570][ T8477] blkdev_get_by_dev+0x76/0x660 [ 85.401104][ T8477] blkdev_open+0x154/0x2b0 [ 85.405770][ T8477] do_dentry_open+0x4b9/0x11b0 [ 85.411769][ T8477] ? blkdev_get_by_dev+0x660/0x660 [ 85.417874][ T8477] ? may_open+0x1f6/0x420 [ 85.422341][ T8477] path_openat+0x1c0e/0x27e0 [ 85.427477][ T8477] ? path_lookupat+0x850/0x850 [ 85.432621][ T8477] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 85.438968][ T8477] do_filp_open+0x190/0x3d0 [ 85.444126][ T8477] ? may_open_dev+0xf0/0xf0 [ 85.449282][ T8477] ? do_raw_spin_lock+0x120/0x2b0 [ 85.454824][ T8477] ? rwlock_bug.part.0+0x90/0x90 [ 85.460884][ T8477] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 85.467603][ T8477] ? _find_next_bit+0x1e3/0x260 [ 85.473228][ T8477] ? _raw_spin_unlock+0x24/0x40 [ 85.479340][ T8477] ? alloc_fd+0x2e6/0x660 [ 85.484247][ T8477] do_sys_openat2+0x16d/0x420 [ 85.489532][ T8477] ? build_open_flags+0x6f0/0x6f0 [ 85.495689][ T8477] ? __context_tracking_exit+0xb8/0xe0 [ 85.502562][ T8477] __x64_sys_open+0x119/0x1c0 [ 85.507447][ T8477] ? do_sys_open+0x140/0x140 [ 85.513055][ T8477] ? __secure_computing+0x104/0x360 [ 85.518542][ T8477] do_syscall_64+0x3a/0xb0 [ 85.523479][ T8477] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 85.530357][ T8477] RIP: 0033:0x7f1a1de94840 [ 85.534988][ T8477] 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 [ 85.556123][ T8477] RSP: 002b:00007ffe98fbd0a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 85.565440][ T8477] RAX: ffffffffffffffda RBX: 000055f1ea47e8f0 RCX: 00007f1a1de94840 executing program executing program [ 85.574440][ T8477] RDX: 000055f1e991ffe3 RSI: 00000000000a0800 RDI: 000055f1ea47e830 [ 85.583453][ T8477] RBP: 00007ffe98fbd220 R08: 000055f1e991f670 R09: 0000000000000010 [ 85.592237][ T8477] R10: 000055f1e991fd0c R11: 0000000000000246 R12: 00007ffe98fbd170 [ 85.601222][ T8477] R13: 000055f1ea480010 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program