md: async del_gendisk mode will be removed in future, please upgrade to mdadm-4.5+ md/raid1:md0: not clean -- starting background reconstruction md/raid1:md0: active with 2 out of 8194 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: 5326 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 md_ioctl+0x1e2b/0x2610 drivers/md/md.c:8515 blkdev_ioctl+0x5e3/0x740 block/ioctl.c:798 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 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:0x7f097759e159 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:00007f09784a3fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f0977825fa0 RCX: 00007f097759e159 RDX: 0000000000000000 RSI: 00000000400c0930 RDI: 0000000000000005 RBP: 00007f097763506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0977826038 R14: 00007f0977825fa0 R15: 00007ffe7d0b9bd8 ---[ end trace ]---