bisecting fixing commit since d2b6f8a179194de0ffc4886ffc2c4358d86047b8 building syzkaller on bc5434be1a615eca6d901c20b026712bd9697fd4 testing commit d2b6f8a179194de0ffc4886ffc2c4358d86047b8 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c8f1fe0f0b4bac1ea98c178b6f4fe5b3808ae15b3084c944e4d322adfdbe870e 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: OK run #17: OK run #18: OK run #19: OK testing current HEAD 3ca706c189db861b2ca2019a0901b94050ca49d8 testing commit 3ca706c189db861b2ca2019a0901b94050ca49d8 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 735585f58c9851ac81ed43bbd6f540f1add128fdb93be445d3f581bc94daeb3d 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: OK revisions tested: 2, total time: 32m49.141677237s (build: 13m21.118682614s, test: 18m45.638758852s) the crash still happens on HEAD commit msg: drm/ttm: fix type mismatch error on sparc64 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: 0 PID: 9031 Comm: systemd-udevd Not tainted 5.15.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:106 ubsan_epilogue+0x5/0x40 lib/ubsan.c:151 __ubsan_handle_shift_out_of_bounds.cold+0x61/0xe9 lib/ubsan.c:330 do_mpage_readpage.cold+0xb8/0x299 fs/mpage.c:189 mpage_readahead+0x2c0/0x6c0 fs/mpage.c:389 read_pages+0x1b0/0x7c0 mm/readahead.c:130 page_cache_ra_unbounded+0x47c/0x7c0 mm/readahead.c:239 do_page_cache_ra mm/readahead.c:269 [inline] force_page_cache_ra+0x301/0x560 mm/readahead.c:301 page_cache_sync_readahead include/linux/pagemap.h:883 [inline] filemap_get_pages+0x253/0x1380 mm/filemap.c:2545 filemap_read+0x28e/0xbc0 mm/filemap.c:2628 blkdev_read_iter+0x10d/0x210 block/fops.c:544 call_read_iter include/linux/fs.h:2157 [inline] new_sync_read+0x33c/0x5c0 fs/read_write.c:404 vfs_read+0x265/0x4c0 fs/read_write.c:485 ksys_read+0xf4/0x1d0 fs/read_write.c:623 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f90b71de210 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:00007ffdd9801508 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00005621a989cb40 RCX: 00007f90b71de210 RDX: 0000000000000400 RSI: 00005621a989cb68 RDI: 000000000000000f RBP: 00005621a989c460 R08: 00007f90b71c8f78 R09: 0000000000000430 R10: 000000000000006d R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000400 R14: 00005621a989c4b0 R15: 0000000000000400 ================================================================================