[ OK ] Started Daily Cleanup of Temporary Directories. [ OK ] Started Daily apt upgrade and clean activities. [ OK ] Reached target Timers. [ OK ] Started System Logging Service. [ OK ] Started Permit User Sessions. [ OK ] Started Load/Save RF Kill Switch Status. [ OK ] Started OpenBSD Secure Shell server. [ OK ] Started getty on tty2-tty6 if dbus and logind are not available. [ OK ] Started Getty on tty6. [ OK ] Started Getty on tty5. [ OK ] Started Getty on tty4. [ OK ] Started Getty on tty3. [ OK ] Started Getty on tty2. [ OK ] Started Getty on tty1. [ OK ] Started Serial Getty on ttyS0. [ OK ] Reached target Login Prompts. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.10.9' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 72.038862][ T6547] [ 72.041251][ T6547] ====================================================== [ 72.048268][ T6547] WARNING: possible circular locking dependency detected [ 72.055288][ T6547] 5.15.0-rc1-syzkaller #0 Not tainted [ 72.060661][ T6547] ------------------------------------------------------ [ 72.067698][ T6547] syz-executor220/6547 is trying to acquire lock: [ 72.074157][ T6547] ffff88807c024230 (&mddev->open_mutex){+.+.}-{3:3}, at: md_open+0xfd/0x2e0 [ 72.082942][ T6547] [ 72.082942][ T6547] but task is already holding lock: [ 72.090330][ T6547] ffff88807c2b4118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb60 [ 72.100448][ T6547] [ 72.100448][ T6547] which lock already depends on the new lock. [ 72.100448][ T6547] [ 72.110831][ T6547] [ 72.110831][ T6547] the existing dependency chain (in reverse order) is: [ 72.119884][ T6547] [ 72.119884][ T6547] -> #1 (&disk->open_mutex){+.+.}-{3:3}: [ 72.127705][ T6547] __mutex_lock+0x131/0x12f0 [ 72.132802][ T6547] bd_register_pending_holders+0x2c/0x470 [ 72.139026][ T6547] device_add_disk+0x74c/0xfc0 [ 72.144304][ T6547] md_alloc+0x91d/0x1150 [ 72.149051][ T6547] md_probe+0x69/0x70 [ 72.153535][ T6547] blk_request_module+0x111/0x1d0 [ 72.159093][ T6547] blkdev_get_no_open+0x178/0x1e0 [ 72.164647][ T6547] blkdev_get_by_dev.part.0+0x22/0xb60 [ 72.170627][ T6547] blkdev_get_by_dev+0x6b/0x80 [ 72.175904][ T6547] swsusp_check+0x4d/0x270 [ 72.180828][ T6547] software_resume.part.0+0x102/0x1f0 [ 72.186717][ T6547] resume_store+0x161/0x190 [ 72.191727][ T6547] kobj_attr_store+0x50/0x80 [ 72.196836][ T6547] sysfs_kf_write+0x110/0x160 [ 72.202023][ T6547] kernfs_fop_write_iter+0x342/0x500 [ 72.207826][ T6547] new_sync_write+0x40b/0x640 [ 72.213274][ T6547] vfs_write+0x7cf/0xae0 [ 72.218028][ T6547] ksys_write+0x12d/0x250 [ 72.222888][ T6547] do_syscall_64+0x35/0xb0 [ 72.227813][ T6547] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 72.234217][ T6547] [ 72.234217][ T6547] -> #0 (&mddev->open_mutex){+.+.}-{3:3}: [ 72.242195][ T6547] __lock_acquire+0x2a07/0x54a0 [ 72.247578][ T6547] lock_acquire+0x1ab/0x510 [ 72.252588][ T6547] __mutex_lock+0x131/0x12f0 [ 72.257681][ T6547] md_open+0xfd/0x2e0 [ 72.262168][ T6547] blkdev_get_whole+0x99/0x2a0 [ 72.268395][ T6547] blkdev_get_by_dev.part.0+0x354/0xb60 [ 72.274467][ T6547] blkdev_get_by_dev+0x6b/0x80 [ 72.279759][ T6547] swsusp_check+0x4d/0x270 [ 72.284781][ T6547] software_resume.part.0+0x102/0x1f0 [ 72.290663][ T6547] resume_store+0x161/0x190 [ 72.295675][ T6547] kobj_attr_store+0x50/0x80 [ 72.300768][ T6547] sysfs_kf_write+0x110/0x160 [ 72.305957][ T6547] kernfs_fop_write_iter+0x342/0x500 [ 72.311750][ T6547] new_sync_write+0x40b/0x640 [ 72.316931][ T6547] vfs_write+0x7cf/0xae0 [ 72.321709][ T6547] ksys_write+0x12d/0x250 [ 72.326538][ T6547] do_syscall_64+0x35/0xb0 [ 72.331462][ T6547] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 72.337878][ T6547] [ 72.337878][ T6547] other info that might help us debug this: [ 72.337878][ T6547] [ 72.348084][ T6547] Possible unsafe locking scenario: [ 72.348084][ T6547] [ 72.355688][ T6547] CPU0 CPU1 [ 72.361054][ T6547] ---- ---- [ 72.366401][ T6547] lock(&disk->open_mutex); [ 72.370983][ T6547] lock(&mddev->open_mutex); [ 72.378157][ T6547] lock(&disk->open_mutex); [ 72.385426][ T6547] lock(&mddev->open_mutex); [ 72.390085][ T6547] [ 72.390085][ T6547] *** DEADLOCK *** [ 72.390085][ T6547] [ 72.398300][ T6547] 5 locks held by syz-executor220/6547: [ 72.403831][ T6547] #0: ffff888025bcc460 (sb_writers#6){.+.+}-{0:0}, at: ksys_write+0x12d/0x250 [ 72.412778][ T6547] #1: ffff88801b883c88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x287/0x500 [ 72.422500][ T6547] #2: ffff8881441fd830 (kn->active#90){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x2ab/0x500 [ 72.432594][ T6547] #3: ffffffff8b84fda8 (system_transition_mutex/1){+.+.}-{3:3}, at: software_resume.part.0+0x19/0x1f0 [ 72.443622][ T6547] #4: ffff88807c2b4118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb60 [ 72.454130][ T6547] [ 72.454130][ T6547] stack backtrace: [ 72.460000][ T6547] CPU: 1 PID: 6547 Comm: syz-executor220 Not tainted 5.15.0-rc1-syzkaller #0 [ 72.468742][ T6547] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 72.478880][ T6547] Call Trace: [ 72.482144][ T6547] dump_stack_lvl+0xcd/0x134 [ 72.486720][ T6547] check_noncircular+0x25f/0x2e0 [ 72.491641][ T6547] ? print_circular_bug+0x1e0/0x1e0 [ 72.496821][ T6547] ? is_bpf_text_address+0x99/0x170 [ 72.504001][ T6547] ? kernel_text_address+0xbd/0xf0 [ 72.509097][ T6547] ? lockdep_lock+0xc6/0x200 [ 72.513676][ T6547] ? call_rcu_zapped+0xb0/0xb0 [ 72.518424][ T6547] __lock_acquire+0x2a07/0x54a0 [ 72.523359][ T6547] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 72.529333][ T6547] lock_acquire+0x1ab/0x510 [ 72.533823][ T6547] ? md_open+0xfd/0x2e0 [ 72.537965][ T6547] ? lock_release+0x720/0x720 [ 72.542629][ T6547] __mutex_lock+0x131/0x12f0 [ 72.547200][ T6547] ? md_open+0xfd/0x2e0 [ 72.551353][ T6547] ? md_open+0xfd/0x2e0 [ 72.555491][ T6547] ? mutex_lock_io_nested+0x1150/0x1150 [ 72.561018][ T6547] ? lock_downgrade+0x6e0/0x6e0 [ 72.565851][ T6547] ? do_raw_spin_lock+0x120/0x2b0 [ 72.570862][ T6547] ? rwlock_bug.part.0+0x90/0x90 [ 72.575783][ T6547] ? mutex_lock_io_nested+0x1150/0x1150 [ 72.581322][ T6547] ? do_raw_spin_unlock+0x171/0x230 [ 72.586506][ T6547] md_open+0xfd/0x2e0 [ 72.590483][ T6547] ? rdev_size_store+0xb60/0xb60 [ 72.595403][ T6547] blkdev_get_whole+0x99/0x2a0 [ 72.600152][ T6547] blkdev_get_by_dev.part.0+0x354/0xb60 [ 72.605680][ T6547] ? devcgroup_check_permission+0x1bb/0x410 [ 72.611568][ T6547] ? sysfs_file_ops+0x1c0/0x1c0 [ 72.616412][ T6547] blkdev_get_by_dev+0x6b/0x80 [ 72.621164][ T6547] swsusp_check+0x4d/0x270 [ 72.625566][ T6547] software_resume.part.0+0x102/0x1f0 [ 72.630928][ T6547] resume_store+0x161/0x190 [ 72.635429][ T6547] ? software_resume+0x80/0x80 [ 72.640176][ T6547] kobj_attr_store+0x50/0x80 [ 72.644753][ T6547] ? kobj_attr_show+0x70/0x70 [ 72.649411][ T6547] sysfs_kf_write+0x110/0x160 [ 72.654076][ T6547] kernfs_fop_write_iter+0x342/0x500 [ 72.659348][ T6547] new_sync_write+0x40b/0x640 [ 72.664016][ T6547] ? new_sync_read+0x6b0/0x6b0 [ 72.668768][ T6547] vfs_write+0x7cf/0xae0 [ 72.673017][ T6547] ksys_write+0x12d/0x250 [ 72.677342][ T6547] ? __ia32_sys_read+0xb0/0xb0 [ 72.682188][ T6547] ? syscall_enter_from_user_mode+0x21/0x70 [ 72.688067][ T6547] do_syscall_64+0x35/0xb0 [ 72.692485][ T6547] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 72.698362][ T6547] RIP: 0033:0x43f0e9 [ 72.702251][ T6547] 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 [ 72.721946][ T6547] RSP: 002b:00007ffefc5e5ea8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 72.730342][ T6547] RAX: ffffffffffffffda RBX: 0000000000400488 RCX: 000000000043f0e9 [ 72.738299][ T6547] RDX: 000000000000f