Warning: Permanently added '10.128.0.166' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 73.819041][ T6549] [ 73.821422][ T6549] ====================================================== [ 73.828437][ T6549] WARNING: possible circular locking dependency detected [ 73.835453][ T6549] 5.15.0-rc2-syzkaller #0 Not tainted [ 73.840826][ T6549] ------------------------------------------------------ [ 73.847831][ T6549] syz-executor142/6549 is trying to acquire lock: [ 73.854277][ T6549] ffff88801b27c230 (&mddev->open_mutex){+.+.}-{3:3}, at: md_open+0xfd/0x2e0 [ 73.862980][ T6549] [ 73.862980][ T6549] but task is already holding lock: [ 73.870436][ T6549] ffff888076d7b918 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb60 [ 73.880512][ T6549] [ 73.880512][ T6549] which lock already depends on the new lock. [ 73.880512][ T6549] [ 73.891155][ T6549] [ 73.891155][ T6549] the existing dependency chain (in reverse order) is: [ 73.900189][ T6549] [ 73.900189][ T6549] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 73.908188][ T6549] __mutex_lock+0x131/0x12f0 [ 73.913300][ T6549] bd_register_pending_holders+0x2c/0x470 [ 73.919707][ T6549] device_add_disk+0x74c/0xfc0 [ 73.924973][ T6549] md_alloc+0x91d/0x1150 [ 73.929728][ T6549] md_probe+0x69/0x70 [ 73.934211][ T6549] blk_request_module+0x111/0x1d0 [ 73.939753][ T6549] blkdev_get_no_open+0x178/0x1e0 [ 73.945474][ T6549] blkdev_get_by_dev.part.0+0x22/0xb60 [ 73.951613][ T6549] blkdev_get_by_dev+0x6b/0x80 [ 73.956882][ T6549] swsusp_check+0x4d/0x270 [ 73.961798][ T6549] software_resume.part.0+0x102/0x1f0 [ 73.967676][ T6549] resume_store+0x161/0x190 [ 73.972689][ T6549] kobj_attr_store+0x50/0x80 [ 73.977792][ T6549] sysfs_kf_write+0x110/0x160 [ 73.982974][ T6549] kernfs_fop_write_iter+0x342/0x500 [ 73.988762][ T6549] new_sync_write+0x429/0x660 [ 73.993944][ T6549] vfs_write+0x7cf/0xae0 [ 73.998689][ T6549] ksys_write+0x12d/0x250 [ 74.003520][ T6549] do_syscall_64+0x35/0xb0 [ 74.008457][ T6549] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 74.014941][ T6549] [ 74.014941][ T6549] -> #0 (&mddev->open_mutex){+.+.}-{3:3}: [ 74.022822][ T6549] __lock_acquire+0x2a07/0x54a0 [ 74.028179][ T6549] lock_acquire+0x1ab/0x510 [ 74.033184][ T6549] __mutex_lock+0x131/0x12f0 [ 74.038278][ T6549] md_open+0xfd/0x2e0 [ 74.043287][ T6549] blkdev_get_whole+0x99/0x2a0 [ 74.048649][ T6549] blkdev_get_by_dev.part.0+0x354/0xb60 [ 74.054895][ T6549] blkdev_get_by_dev+0x6b/0x80 [ 74.060163][ T6549] swsusp_check+0x4d/0x270 [ 74.065168][ T6549] software_resume.part.0+0x102/0x1f0 [ 74.071049][ T6549] resume_store+0x161/0x190 [ 74.076263][ T6549] kobj_attr_store+0x50/0x80 [ 74.081358][ T6549] sysfs_kf_write+0x110/0x160 [ 74.086634][ T6549] kernfs_fop_write_iter+0x342/0x500 [ 74.092532][ T6549] new_sync_write+0x429/0x660 [ 74.097726][ T6549] vfs_write+0x7cf/0xae0 [ 74.102473][ T6549] ksys_write+0x12d/0x250 [ 74.107324][ T6549] do_syscall_64+0x35/0xb0 [ 74.112253][ T6549] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 74.118656][ T6549] [ 74.118656][ T6549] other info that might help us debug this: [ 74.118656][ T6549] [ 74.128949][ T6549] Possible unsafe locking scenario: [ 74.128949][ T6549] [ 74.136391][ T6549] CPU0 CPU1 [ 74.141749][ T6549] ---- ---- [ 74.147101][ T6549] lock(&disk->open_mutex); [ 74.151684][ T6549] lock(&mddev->open_mutex); [ 74.158861][ T6549] lock(&disk->open_mutex); [ 74.165951][ T6549] lock(&mddev->open_mutex); [ 74.170617][ T6549] [ 74.170617][ T6549] *** DEADLOCK *** [ 74.170617][ T6549] [ 74.178918][ T6549] 5 locks held by syz-executor142/6549: [ 74.184592][ T6549] #0: ffff888026af8460 (sb_writers#6){.+.+}-{0:0}, at: ksys_write+0x12d/0x250 [ 74.194681][ T6549] #1: ffff888024d5e488 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x287/0x500 [ 74.204965][ T6549] #2: ffff8881441fe830 (kn->active#90){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x2ab/0x500 [ 74.215132][ T6549] #3: ffffffff8b84fe28 (system_transition_mutex/1){+.+.}-{3:3}, at: software_resume.part.0+0x19/0x1f0 [ 74.226348][ T6549] #4: ffff888076d7b918 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb60 [ 74.236886][ T6549] [ 74.236886][ T6549] stack backtrace: [ 74.242856][ T6549] CPU: 0 PID: 6549 Comm: syz-executor142 Not tainted 5.15.0-rc2-syzkaller #0 [ 74.251600][ T6549] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 74.261693][ T6549] Call Trace: [ 74.264979][ T6549] dump_stack_lvl+0xcd/0x134 [ 74.269672][ T6549] check_noncircular+0x25f/0x2e0 [ 74.274600][ T6549] ? print_circular_bug+0x1e0/0x1e0 [ 74.279795][ T6549] ? is_bpf_text_address+0x99/0x170 [ 74.284997][ T6549] ? kernel_text_address+0xbd/0xf0 [ 74.290186][ T6549] ? lockdep_lock+0xc6/0x200 [ 74.294777][ T6549] ? call_rcu_zapped+0xb0/0xb0 [ 74.299529][ T6549] __lock_acquire+0x2a07/0x54a0 [ 74.304372][ T6549] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 74.310441][ T6549] lock_acquire+0x1ab/0x510 [ 74.314931][ T6549] ? md_open+0xfd/0x2e0 [ 74.319246][ T6549] ? lock_release+0x720/0x720 [ 74.323922][ T6549] __mutex_lock+0x131/0x12f0 [ 74.328496][ T6549] ? md_open+0xfd/0x2e0 [ 74.332644][ T6549] ? md_open+0xfd/0x2e0 [ 74.336849][ T6549] ? mutex_lock_io_nested+0x1150/0x1150 [ 74.342402][ T6549] ? lock_downgrade+0x6e0/0x6e0 [ 74.347365][ T6549] ? do_raw_spin_lock+0x120/0x2b0 [ 74.352393][ T6549] ? rwlock_bug.part.0+0x90/0x90 [ 74.357608][ T6549] ? mutex_lock_io_nested+0x1150/0x1150 [ 74.363151][ T6549] ? do_raw_spin_unlock+0x171/0x230 [ 74.368609][ T6549] md_open+0xfd/0x2e0 [ 74.372797][ T6549] ? rdev_size_store+0xb60/0xb60 [ 74.377750][ T6549] blkdev_get_whole+0x99/0x2a0 [ 74.382509][ T6549] blkdev_get_by_dev.part.0+0x354/0xb60 [ 74.388042][ T6549] ? devcgroup_check_permission+0x1bb/0x410 [ 74.393924][ T6549] ? sysfs_file_ops+0x1c0/0x1c0 [ 74.398949][ T6549] blkdev_get_by_dev+0x6b/0x80 [ 74.403711][ T6549] swsusp_check+0x4d/0x270 [ 74.408371][ T6549] software_resume.part.0+0x102/0x1f0 [ 74.413730][ T6549] resume_store+0x161/0x190 [ 74.418218][ T6549] ? software_resume+0x80/0x80 [ 74.422975][ T6549] kobj_attr_store+0x50/0x80 [ 74.427564][ T6549] ? kobj_attr_show+0x70/0x70 [ 74.432228][ T6549] sysfs_kf_write+0x110/0x160 [ 74.436893][ T6549] kernfs_fop_write_iter+0x342/0x500 [ 74.442165][ T6549] new_sync_write+0x429/0x660 [ 74.447014][ T6549] ? new_sync_read+0x6e0/0x6e0 [ 74.451837][ T6549] ? lock_release+0x720/0x720 [ 74.456819][ T6549] vfs_write+0x7cf/0xae0 [ 74.461077][ T6549] ksys_write+0x12d/0x250 [ 74.465416][ T6549] ? __ia32_sys_read+0xb0/0xb0 [ 74.470196][ T6549] ? syscall_enter_from_user_mode+0x21/0x70 [ 74.476268][ T6549] do_syscall_64+0x35/0xb0 [ 74.480852][ T6549] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 74.486738][ T6549] RIP: 0033:0x7efe727d1279 [ 74.491140][ T6549] Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 [ 74.510734][ T6549] RSP: 002b:00007fff6361fb08 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 74.519219][ T6549] RAX: ffffffff