Warning: Permanently added '10.128.0.39' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 127.040403][ T8493] [ 127.042776][ T8493] ====================================================== [ 127.049789][ T8493] WARNING: possible circular locking dependency detected [ 127.057032][ T8493] 5.13.0-rc7-syzkaller #0 Not tainted [ 127.062395][ T8493] ------------------------------------------------------ [ 127.069400][ T8493] systemd-udevd/8493 is trying to acquire lock: [ 127.075625][ T8493] ffffffff8ca6dca8 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_probe+0xc7/0x150 [ 127.084240][ T8493] [ 127.084240][ T8493] but task is already holding lock: [ 127.091602][ T8493] ffffffff8c7e01e8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 127.101167][ T8493] [ 127.101167][ T8493] which lock already depends on the new lock. [ 127.101167][ T8493] [ 127.111555][ T8493] [ 127.111555][ T8493] the existing dependency chain (in reverse order) is: [ 127.120658][ T8493] [ 127.120658][ T8493] -> #3 (major_names_lock){+.+.}-{3:3}: [ 127.128456][ T8493] __mutex_lock+0x139/0x10c0 [ 127.133583][ T8493] __register_blkdev+0x2b/0x3e0 [ 127.138950][ T8493] register_mtd_blktrans+0x85/0x3c0 [ 127.144659][ T8493] do_one_initcall+0x103/0x650 [ 127.149929][ T8493] kernel_init_freeable+0x6c4/0x74d [ 127.155656][ T8493] kernel_init+0xd/0x1b8 [ 127.160405][ T8493] ret_from_fork+0x1f/0x30 [ 127.165350][ T8493] [ 127.165350][ T8493] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 127.172986][ T8493] __mutex_lock+0x139/0x10c0 [ 127.178175][ T8493] blktrans_open+0x69/0x600 [ 127.183186][ T8493] __blkdev_get+0x182/0xa30 [ 127.188291][ T8493] blkdev_get_by_dev+0x200/0x660 [ 127.193867][ T8493] blkdev_open+0x154/0x2b0 [ 127.198963][ T8493] do_dentry_open+0x4b9/0x11b0 [ 127.204246][ T8493] path_openat+0x1c0e/0x27e0 [ 127.209381][ T8493] do_filp_open+0x190/0x3d0 [ 127.214399][ T8493] do_sys_openat2+0x16d/0x420 [ 127.219732][ T8493] __x64_sys_open+0x119/0x1c0 [ 127.225006][ T8493] do_syscall_64+0x3a/0xb0 [ 127.229933][ T8493] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 127.236419][ T8493] [ 127.236419][ T8493] -> #1 (&bdev->bd_mutex){+.+.}-{3:3}: [ 127.244066][ T8493] __mutex_lock+0x139/0x10c0 [ 127.249165][ T8493] del_gendisk+0x24b/0xa00 [ 127.254207][ T8493] loop_control_ioctl+0x3e7/0x4c0 [ 127.259864][ T8493] __x64_sys_ioctl+0x193/0x200 [ 127.265403][ T8493] do_syscall_64+0x3a/0xb0 [ 127.270353][ T8493] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 127.276768][ T8493] [ 127.276768][ T8493] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 127.284541][ T8493] __lock_acquire+0x2a17/0x5230 [ 127.289914][ T8493] lock_acquire+0x1ab/0x510 [ 127.295185][ T8493] __mutex_lock+0x139/0x10c0 [ 127.300289][ T8493] loop_probe+0xc7/0x150 [ 127.305045][ T8493] blk_request_module+0x111/0x1d0 [ 127.310673][ T8493] blkdev_get_no_open+0x1d8/0x250 [ 127.316232][ T8493] blkdev_get_by_dev+0x76/0x660 [ 127.321603][ T8493] blkdev_open+0x154/0x2b0 [ 127.326526][ T8493] do_dentry_open+0x4b9/0x11b0 [ 127.331808][ T8493] path_openat+0x1c0e/0x27e0 [ 127.337003][ T8493] do_filp_open+0x190/0x3d0 [ 127.342192][ T8493] do_sys_openat2+0x16d/0x420 [ 127.347464][ T8493] __x64_sys_open+0x119/0x1c0 [ 127.352649][ T8493] do_syscall_64+0x3a/0xb0 [ 127.357574][ T8493] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 127.363991][ T8493] [ 127.363991][ T8493] other info that might help us debug this: [ 127.363991][ T8493] [ 127.374362][ T8493] Chain exists of: [ 127.374362][ T8493] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 127.374362][ T8493] [ 127.387467][ T8493] Possible unsafe locking scenario: [ 127.387467][ T8493] [ 127.394902][ T8493] CPU0 CPU1 [ 127.400271][ T8493] ---- ---- [ 127.405616][ T8493] lock(major_names_lock); [ 127.410224][ T8493] lock(mtd_table_mutex); [ 127.417366][ T8493] lock(major_names_lock); [ 127.424380][ T8493] lock(loop_ctl_mutex); [ 127.428713][ T8493] [ 127.428713][ T8493] *** DEADLOCK *** [ 127.428713][ T8493] [ 127.436841][ T8493] 1 lock held by systemd-udevd/8493: [ 127.442114][ T8493] #0: ffffffff8c7e01e8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 127.452122][ T8493] [ 127.452122][ T8493] stack backtrace: [ 127.457992][ T8493] CPU: 0 PID: 8493 Comm: systemd-udevd Not tainted 5.13.0-rc7-syzkaller #0 [ 127.466558][ T8493] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 127.476625][ T8493] Call Trace: [ 127.479899][ T8493] dump_stack+0x141/0x1d7 [ 127.484329][ T8493] check_noncircular+0x25f/0x2e0 [ 127.489254][ T8493] ? print_circular_bug+0x1e0/0x1e0 [ 127.494453][ T8493] ? mark_lock+0xef/0x17b0 [ 127.498853][ T8493] ? lockdep_lock+0xc6/0x200 [ 127.503428][ T8493] ? call_rcu_zapped+0xb0/0xb0 [ 127.508172][ T8493] ? tomoyo_check_open_permission+0x172/0x380 [ 127.514226][ T8493] ? security_file_open+0x52/0x4f0 [ 127.519342][ T8493] __lock_acquire+0x2a17/0x5230 [ 127.524212][ T8493] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 127.530218][ T8493] lock_acquire+0x1ab/0x510 [ 127.535196][ T8493] ? loop_probe+0xc7/0x150 [ 127.539598][ T8493] ? lock_release+0x720/0x720 [ 127.544261][ T8493] __mutex_lock+0x139/0x10c0 [ 127.548880][ T8493] ? loop_probe+0xc7/0x150 [ 127.553335][ T8493] ? loop_probe+0xc7/0x150 [ 127.557968][ T8493] ? mutex_lock_io_nested+0xf20/0xf20 [ 127.563337][ T8493] ? __mutex_lock+0x5d5/0x10c0 [ 127.568179][ T8493] ? blk_request_module+0x25/0x1d0 [ 127.573320][ T8493] ? find_held_lock+0x2d/0x110 [ 127.578161][ T8493] ? mutex_lock_io_nested+0xf20/0xf20 [ 127.583522][ T8493] ? ilookup+0xb3/0x230 [ 127.587666][ T8493] loop_probe+0xc7/0x150 [ 127.591917][ T8493] ? loop_control_ioctl+0x4c0/0x4c0 [ 127.597154][ T8493] ? find_inode_fast+0x16f/0x220 [ 127.602179][ T8493] ? do_raw_spin_unlock+0x171/0x230 [ 127.607367][ T8493] ? loop_control_ioctl+0x4c0/0x4c0 [ 127.612623][ T8493] blk_request_module+0x111/0x1d0 [ 127.617656][ T8493] blkdev_get_no_open+0x1d8/0x250 [ 127.622851][ T8493] blkdev_get_by_dev+0x76/0x660 [ 127.627726][ T8493] blkdev_open+0x154/0x2b0 [ 127.632153][ T8493] do_dentry_open+0x4b9/0x11b0 [ 127.636908][ T8493] ? blkdev_get_by_dev+0x660/0x660 [ 127.642005][ T8493] ? may_open+0x1f6/0x420 [ 127.646319][ T8493] path_openat+0x1c0e/0x27e0 [ 127.650896][ T8493] ? path_lookupat+0x850/0x850 [ 127.655651][ T8493] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 127.661633][ T8493] do_filp_open+0x190/0x3d0 [ 127.666230][ T8493] ? may_open_dev+0xf0/0xf0 [ 127.670725][ T8493] ? do_raw_spin_lock+0x120/0x2b0 [ 127.675782][ T8493] ? rwlock_bug.part.0+0x90/0x90 [ 127.680727][ T8493] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 127.686957][ T8493] ? _find_next_bit+0x1e3/0x260 [ 127.691795][ T8493] ? _raw_spin_unlock+0x24/0x40 [ 127.696627][ T8493] ? alloc_fd+0x2e6/0x660 [ 127.700939][ T8493] do_sys_openat2+0x16d/0x420 [ 127.705600][ T8493] ? build_open_flags+0x6f0/0x6f0 [ 127.710604][ T8493] ? __context_tracking_exit+0xb8/0xe0 [ 127.716044][ T8493] __x64_sys_open+0x119/0x1c0 [ 127.720787][ T8493] ? do_sys_open+0x140/0x140 [ 127.725359][ T8493] ? __secure_computing+0x104/0x360 [ 127.730557][ T8493] do_syscall_64+0x3a/0xb0 [ 127.734958][ T8493] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 127.740922][ T8493] RIP: 0033:0x7f10fd84f840 [ 127.745427][ T8493] 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 [ 127.765050][ T8493] RSP: 002b:00007ffe18311028 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 127.773463][ T8493] RAX: ffffffffffffffda RBX: 000055d38ec55380 RCX: 00007f10fd84f840 [ 127.781420][ T8493] RDX: 000055d38cf88fe3 RSI: 00000000000a0800 RDI: 000055d38ec56390 executing program executing program executing program [ 127.789404][ T8493] RBP: 00007ffe183111a0 R08: 000055d38cf88670 R09: 0000000000000010 [ 127.797354][ T8493] R10: 000055d38cf88d0c R11: 0000000000000246 R12: 00007ffe183110f0 [ 127.805346][ T8493] R13: 000055d38ec55090 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program