md: async del_gendisk mode will be removed in future, please upgrade to mdadm-4.5+ md: async del_gendisk mode will be removed in future, please upgrade to mdadm-4.5+ md: could not open device unknown-block(1,0). md/raid1:md0: active with 1 out of 124 mirrors ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in drivers/md/md.c:1726:20 index 28 is out of range for type 'mdp_disk_t[27]' (aka 'struct mdp_device_descriptor_s[27]') CPU: 0 UID: 0 PID: 5324 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 ubsan_epilogue+0xa/0x30 lib/ubsan.c:233 __ubsan_handle_out_of_bounds+0xe8/0xf0 lib/ubsan.c:455 super_90_sync+0x1398/0x21d0 drivers/md/md.c:1726 sync_super drivers/md/md.c:-1 [inline] sync_sbs drivers/md/md.c:2747 [inline] md_update_sb+0xd0d/0x26a0 drivers/md/md.c:2923 md_run+0x15b6/0x1cd0 drivers/md/md.c:6855 do_md_run+0x35/0x720 drivers/md/md.c:6880 array_state_store+0x958/0xe90 drivers/md/md.c:-1 md_attr_store+0x3b7/0x640 drivers/md/md.c:6158 kernfs_fop_write_iter+0x3a4/0x540 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x612/0xba0 fs/read_write.c:687 ksys_write+0x150/0x270 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f92cc19e159 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f92ccf8ffe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f92cc425fa0 RCX: 00007f92cc19e159 RDX: 0000000000000006 RSI: 0000200000000500 RDI: 000000000000000b RBP: 00007f92cc23503b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f92cc426038 R14: 00007f92cc425fa0 R15: 00007ffe190072d8 ---[ end trace ]---