Warning: Permanently added '10.128.0.34' (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 syzkaller login: [ 71.480946][ T8572] [ 71.483514][ T8572] ====================================================== [ 71.490777][ T8572] WARNING: possible circular locking dependency detected [ 71.497946][ T8572] 5.13.0-rc7-syzkaller #0 Not tainted [ 71.503315][ T8572] ------------------------------------------------------ [ 71.510359][ T8572] systemd-udevd/8572 is trying to acquire lock: [ 71.516811][ T8572] ffffffff8ca6dca8 (loop_ctl_mutex){+.+.}-{3:3}, at: loop_probe+0xc7/0x150 [ 71.525441][ T8572] [ 71.525441][ T8572] but task is already holding lock: [ 71.533174][ T8572] ffffffff8c7e01e8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 71.542836][ T8572] [ 71.542836][ T8572] which lock already depends on the new lock. [ 71.542836][ T8572] [ 71.553314][ T8572] [ 71.553314][ T8572] the existing dependency chain (in reverse order) is: [ 71.562413][ T8572] [ 71.562413][ T8572] -> #3 (major_names_lock){+.+.}-{3:3}: [ 71.570677][ T8572] __mutex_lock+0x139/0x10c0 [ 71.576060][ T8572] __register_blkdev+0x2b/0x3e0 [ 71.581539][ T8572] register_mtd_blktrans+0x85/0x3c0 [ 71.587799][ T8572] do_one_initcall+0x103/0x650 [ 71.593091][ T8572] kernel_init_freeable+0x6c4/0x74d [ 71.598812][ T8572] kernel_init+0xd/0x1b8 [ 71.603566][ T8572] ret_from_fork+0x1f/0x30 [ 71.608511][ T8572] [ 71.608511][ T8572] -> #2 (mtd_table_mutex){+.+.}-{3:3}: [ 71.616134][ T8572] __mutex_lock+0x139/0x10c0 [ 71.621364][ T8572] blktrans_open+0x69/0x600 [ 71.626596][ T8572] __blkdev_get+0x182/0xa30 [ 71.631621][ T8572] blkdev_get_by_dev+0x200/0x660 [ 71.637071][ T8572] blkdev_open+0x154/0x2b0 [ 71.642011][ T8572] do_dentry_open+0x4b9/0x11b0 [ 71.647284][ T8572] path_openat+0x1c0e/0x27e0 [ 71.652385][ T8572] do_filp_open+0x190/0x3d0 [ 71.657392][ T8572] do_sys_openat2+0x16d/0x420 [ 71.662582][ T8572] __x64_sys_open+0x119/0x1c0 [ 71.667759][ T8572] do_syscall_64+0x3a/0xb0 [ 71.672700][ T8572] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 71.679132][ T8572] [ 71.679132][ T8572] -> #1 (&bdev->bd_mutex){+.+.}-{3:3}: [ 71.686752][ T8572] __mutex_lock+0x139/0x10c0 [ 71.692011][ T8572] del_gendisk+0x24b/0xa00 [ 71.696942][ T8572] loop_control_ioctl+0x3e7/0x4c0 [ 71.702476][ T8572] __x64_sys_ioctl+0x193/0x200 [ 71.707840][ T8572] do_syscall_64+0x3a/0xb0 [ 71.712857][ T8572] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 71.719949][ T8572] [ 71.719949][ T8572] -> #0 (loop_ctl_mutex){+.+.}-{3:3}: [ 71.727507][ T8572] __lock_acquire+0x2a17/0x5230 [ 71.732877][ T8572] lock_acquire+0x1ab/0x510 [ 71.738348][ T8572] __mutex_lock+0x139/0x10c0 [ 71.743472][ T8572] loop_probe+0xc7/0x150 [ 71.748244][ T8572] blk_request_module+0x111/0x1d0 [ 71.753810][ T8572] blkdev_get_no_open+0x1d8/0x250 [ 71.759372][ T8572] blkdev_get_by_dev+0x76/0x660 [ 71.764771][ T8572] blkdev_open+0x154/0x2b0 [ 71.769696][ T8572] do_dentry_open+0x4b9/0x11b0 [ 71.774980][ T8572] path_openat+0x1c0e/0x27e0 [ 71.780088][ T8572] do_filp_open+0x190/0x3d0 [ 71.785194][ T8572] do_sys_openat2+0x16d/0x420 [ 71.790389][ T8572] __x64_sys_open+0x119/0x1c0 [ 71.795592][ T8572] do_syscall_64+0x3a/0xb0 [ 71.800737][ T8572] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 71.807143][ T8572] [ 71.807143][ T8572] other info that might help us debug this: [ 71.807143][ T8572] [ 71.817441][ T8572] Chain exists of: [ 71.817441][ T8572] loop_ctl_mutex --> mtd_table_mutex --> major_names_lock [ 71.817441][ T8572] [ 71.830455][ T8572] Possible unsafe locking scenario: [ 71.830455][ T8572] [ 71.837883][ T8572] CPU0 CPU1 [ 71.843332][ T8572] ---- ---- [ 71.848689][ T8572] lock(major_names_lock); [ 71.853712][ T8572] lock(mtd_table_mutex); [ 71.860808][ T8572] lock(major_names_lock); [ 71.867830][ T8572] lock(loop_ctl_mutex); [ 71.872288][ T8572] [ 71.872288][ T8572] *** DEADLOCK *** [ 71.872288][ T8572] [ 71.880508][ T8572] 1 lock held by systemd-udevd/8572: [ 71.885782][ T8572] #0: ffffffff8c7e01e8 (major_names_lock){+.+.}-{3:3}, at: blk_request_module+0x25/0x1d0 [ 71.895690][ T8572] [ 71.895690][ T8572] stack backtrace: [ 71.901558][ T8572] CPU: 0 PID: 8572 Comm: systemd-udevd Not tainted 5.13.0-rc7-syzkaller #0 [ 71.910374][ T8572] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 71.920418][ T8572] Call Trace: [ 71.923697][ T8572] dump_stack+0x141/0x1d7 [ 71.928038][ T8572] check_noncircular+0x25f/0x2e0 [ 71.933250][ T8572] ? print_circular_bug+0x1e0/0x1e0 [ 71.938465][ T8572] ? mark_lock+0xef/0x17b0 [ 71.942982][ T8572] ? lockdep_lock+0xc6/0x200 [ 71.947581][ T8572] ? call_rcu_zapped+0xb0/0xb0 [ 71.952344][ T8572] ? tomoyo_check_open_permission+0x172/0x380 [ 71.959504][ T8572] ? security_file_open+0x52/0x4f0 [ 71.964816][ T8572] __lock_acquire+0x2a17/0x5230 [ 71.969676][ T8572] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 71.975672][ T8572] lock_acquire+0x1ab/0x510 [ 71.980191][ T8572] ? loop_probe+0xc7/0x150 [ 71.984597][ T8572] ? lock_release+0x720/0x720 [ 71.989677][ T8572] __mutex_lock+0x139/0x10c0 [ 71.994450][ T8572] ? loop_probe+0xc7/0x150 [ 71.998885][ T8572] ? loop_probe+0xc7/0x150 [ 72.003795][ T8572] ? mutex_lock_io_nested+0xf20/0xf20 [ 72.009456][ T8572] ? __mutex_lock+0x5d5/0x10c0 [ 72.016997][ T8572] ? blk_request_module+0x25/0x1d0 [ 72.022312][ T8572] ? find_held_lock+0x2d/0x110 [ 72.027192][ T8572] ? mutex_lock_io_nested+0xf20/0xf20 [ 72.032706][ T8572] ? ilookup+0xb3/0x230 [ 72.037044][ T8572] loop_probe+0xc7/0x150 [ 72.041284][ T8572] ? loop_control_ioctl+0x4c0/0x4c0 [ 72.046651][ T8572] ? find_inode_fast+0x16f/0x220 [ 72.051937][ T8572] ? do_raw_spin_unlock+0x171/0x230 [ 72.057248][ T8572] ? loop_control_ioctl+0x4c0/0x4c0 [ 72.063361][ T8572] blk_request_module+0x111/0x1d0 [ 72.068856][ T8572] blkdev_get_no_open+0x1d8/0x250 [ 72.074168][ T8572] blkdev_get_by_dev+0x76/0x660 [ 72.079352][ T8572] blkdev_open+0x154/0x2b0 [ 72.083864][ T8572] do_dentry_open+0x4b9/0x11b0 [ 72.088825][ T8572] ? blkdev_get_by_dev+0x660/0x660 [ 72.094185][ T8572] ? may_open+0x1f6/0x420 [ 72.098543][ T8572] path_openat+0x1c0e/0x27e0 [ 72.103602][ T8572] ? path_lookupat+0x850/0x850 [ 72.108492][ T8572] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 72.114485][ T8572] do_filp_open+0x190/0x3d0 [ 72.119176][ T8572] ? may_open_dev+0xf0/0xf0 [ 72.124047][ T8572] ? do_raw_spin_lock+0x120/0x2b0 [ 72.129902][ T8572] ? rwlock_bug.part.0+0x90/0x90 [ 72.135051][ T8572] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 72.141717][ T8572] ? _find_next_bit+0x1e3/0x260 [ 72.146808][ T8572] ? _raw_spin_unlock+0x24/0x40 [ 72.151737][ T8572] ? alloc_fd+0x2e6/0x660 [ 72.156112][ T8572] do_sys_openat2+0x16d/0x420 [ 72.160797][ T8572] ? build_open_flags+0x6f0/0x6f0 [ 72.165810][ T8572] ? __context_tracking_exit+0xb8/0xe0 [ 72.171263][ T8572] __x64_sys_open+0x119/0x1c0 [ 72.176384][ T8572] ? do_sys_open+0x140/0x140 [ 72.180971][ T8572] ? __secure_computing+0x104/0x360 [ 72.186382][ T8572] do_syscall_64+0x3a/0xb0 [ 72.190802][ T8572] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 72.196787][ T8572] RIP: 0033:0x7fc2a453b840 [ 72.201189][ T8572] 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 [ 72.221191][ T8572] RSP: 002b:00007ffdf90150f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 executing program [ 72.229792][ T8572] RAX: ffffffffffffffda RBX: 000055b97c6028f0 RCX: 00007fc2a453b840 [ 72.237851][ T8572] RDX: 000055b97b217fe3 RSI: 00000000000a0800 RDI: 000055b97c602830 [ 72.245980][ T8572] RBP: 00007ffdf9015270 R08: 000055b97b217670 R09: 0000000000000010 [ 72.253957][ T8572] R10: 000055b97b217d0c R11: 0000000000000246 R12: 00007ffdf90151c0 [ 72.262053][ T8572] R13: 000055b97c604010 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