md/raid:md0: not clean -- starting background reconstruction md/raid:md0: device ram0 operational as raid disk 0 md/raid:md0: raid level 5 active with 1 out of 1 devices, algorithm 0 ------------[ cut here ]------------ UBSAN: shift-out-of-bounds in ./include/linux/log2.h:57:13 shift exponent 64 is too large for 64-bit type 'long unsigned int' CPU: 0 UID: 0 PID: 12475 Comm: syz.3.2608 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 lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 ubsan_epilogue+0xa/0x30 lib/ubsan.c:233 __ubsan_handle_shift_out_of_bounds+0x279/0x2a0 lib/ubsan.c:494 __roundup_pow_of_two include/linux/log2.h:57 [inline] raid5_set_limits+0x310/0x53c drivers/md/raid5.c:7835 raid5_run.cold+0x35a/0xd19 drivers/md/raid5.c:8133 md_run+0xc2f/0x2510 drivers/md/md.c:6760 do_md_run+0x36/0x660 drivers/md/md.c:6861 array_state_store+0x9c5/0xcf0 drivers/md/md.c:4757 md_attr_store+0x1c5/0x330 drivers/md/md.c:6137 sysfs_kf_write+0xf2/0x150 fs/sysfs/file.c:145 kernfs_fop_write_iter+0x3e0/0x5f0 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1050 fs/read_write.c:687 ksys_write+0x12a/0x250 fs/read_write.c:739 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0xe7/0x970 arch/x86/entry/syscall_32.c:307 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:332 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf7f64fec Code: Unable to access opcode bytes at 0xf7f64fc2. RSP: 002b:00000000f542650c EFLAGS: 00000292 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 000000000000000b RCX: 00000000800007c0 RDX: 0000000000000006 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---[ end trace ]---