bisecting fixing commit since d2b6f8a179194de0ffc4886ffc2c4358d86047b8 building syzkaller on bc5434be1a615eca6d901c20b026712bd9697fd4 testing commit d2b6f8a179194de0ffc4886ffc2c4358d86047b8 with gcc (GCC) 10.2.1 20210217 kernel signature: 3c04afd770a2f1f821894d330f2526e57d5fac52539e0a87b640264acd6602bf run #0: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage run #1: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage run #2: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage run #3: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage run #4: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage run #5: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage run #6: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage run #7: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage run #8: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage run #9: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage run #10: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage run #11: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage run #12: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage run #13: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage run #14: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage run #15: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage run #16: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage run #17: OK run #18: OK run #19: OK testing current HEAD 614124bea77e452aa6df7a8714e8bc820b489922 testing commit 614124bea77e452aa6df7a8714e8bc820b489922 with gcc (GCC) 10.2.1 20210217 kernel signature: 02d25bf4324de9d536f59bf4f0332d0ddc0b6f07ffe2ba8286c417028f04dc8a all runs: crashed: UBSAN: shift-out-of-bounds in do_mpage_readpage revisions tested: 2, total time: 28m16.466130515s (build: 14m37.4416075s, test: 12m57.442017604s) the crash still happens on HEAD commit msg: Linux 5.13-rc5 crash: UBSAN: shift-out-of-bounds in do_mpage_readpage ================================================================================ UBSAN: shift-out-of-bounds in fs/mpage.c:189:40 shift exponent 4294967279 is too large for 64-bit type 'long long unsigned int' CPU: 1 PID: 10138 Comm: systemd-udevd Not tainted 5.13.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0xa5/0xe6 lib/dump_stack.c:120 ubsan_epilogue+0x5/0x40 lib/ubsan.c:148 __ubsan_handle_shift_out_of_bounds.cold+0x61/0xe9 lib/ubsan.c:327 do_mpage_readpage.cold+0xb8/0x29f fs/mpage.c:189 mpage_readahead+0x2c0/0x6c0 fs/mpage.c:389 read_pages+0x1b0/0x7c0 mm/readahead.c:130 page_cache_ra_unbounded+0x456/0x790 mm/readahead.c:238 do_page_cache_ra mm/readahead.c:267 [inline] force_page_cache_ra+0x301/0x530 mm/readahead.c:299 page_cache_sync_readahead include/linux/pagemap.h:879 [inline] filemap_get_pages+0x258/0x1430 mm/filemap.c:2467 filemap_read+0x261/0xb90 mm/filemap.c:2550 blkdev_read_iter+0xfb/0x180 fs/block_dev.c:1730 call_read_iter include/linux/fs.h:2108 [inline] new_sync_read+0x35a/0x5f0 fs/read_write.c:415 vfs_read+0x264/0x470 fs/read_write.c:496 ksys_read+0xf4/0x1d0 fs/read_write.c:634 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f75979bb210 Code: 73 01 c3 48 8b 0d 98 7d 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d b9 c1 20 00 00 75 10 b8 00 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 4e fc ff ff 48 89 04 24 RSP: 002b:00007ffc99d69538 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000559eaa0839b0 RCX: 00007f75979bb210 RDX: 0000000000000400 RSI: 0000559eaa0839d8 RDI: 000000000000000f RBP: 0000559eaa077db0 R08: 00007f75979a6168 R09: 0000000000000430 R10: 000000000000006d R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000400 R14: 0000559eaa077e00 R15: 0000000000000400 ================================================================================