bisecting fixing commit since 583090b1b8232e6eae243a9009699666153a13a9 building syzkaller on d81b165e87aa21172574c227b0808df2957e29ce testing commit 583090b1b8232e6eae243a9009699666153a13a9 with gcc (GCC) 8.4.1 20210217 kernel signature: 05f38585c13dd5f31655ba9a2c6ef7a8d7deb20472e27586c2c5ebe69c136925 all runs: crashed: kernel BUG in ntfs_readpage testing current HEAD 1678e493d530e7977cce34e59a86bb86f3c5631e testing commit 1678e493d530e7977cce34e59a86bb86f3c5631e with gcc (GCC) 10.2.1 20210217 kernel signature: ef66c396778bb08b05bf5eb6a5bd9661f80f92d82490bce1b08120566da94dd8 all runs: crashed: kernel BUG in ntfs_readpage revisions tested: 2, total time: 19m46.839847474s (build: 12m46.210818527s, test: 6m19.333398245s) the crash still happens on HEAD commit msg: Merge tag 'lto-v5.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux crash: kernel BUG in ntfs_readpage loop2: detected capacity change from 0 to 71 ntfs: (device loop2): is_boot_sector_ntfs(): Invalid end of sector marker. ------------[ cut here ]------------ kernel BUG at fs/ntfs/aops.c:186! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 7471 Comm: syz-executor.2 Not tainted 5.12.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline] RIP: 0010:ntfs_readpage+0x1484/0x1ca0 fs/ntfs/aops.c:435 Code: ff ff 37 00 48 c1 ea 03 48 c1 e0 2a 80 3c 02 00 0f 85 e2 05 00 00 48 8b 44 24 28 48 8b 80 30 fd ff ff a8 08 0f 85 5c f4 ff ff <0f> 0b 48 c7 c6 00 03 59 88 4c 89 ff e8 0b 53 41 ff 0f 0b 48 c7 c6 RSP: 0018:ffffc900044777b0 EFLAGS: 00010246 RAX: 0000000000000230 RBX: ffff88812bd40d08 RCX: ffffffff8257bd06 RDX: 1ffff110257a8102 RSI: 0000000000000008 RDI: ffff88812bd40810 RBP: ffff88812bd40810 R08: 0000000000000000 R09: ffff88812bd40817 R10: ffffed10257a8102 R11: 0000000000000100 R12: fffff940009547a1 R13: ffffea0004aa3d20 R14: dffffc0000000000 R15: ffffea0004aa3d00 FS: 00007f40fc1a4700(0000) GS:ffff8881f6300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055aa045fd908 CR3: 000000011af0e001 CR4: 00000000001706e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_read_cache_page+0x540/0xd00 mm/filemap.c:3263 read_mapping_page include/linux/pagemap.h:500 [inline] ntfs_map_page fs/ntfs/aops.h:75 [inline] map_mft_record_page fs/ntfs/mft.c:73 [inline] map_mft_record+0x18f/0xc60 fs/ntfs/mft.c:156 ntfs_read_locked_inode+0x183/0x5620 fs/ntfs/inode.c:550 ntfs_read_inode_mount+0xbb7/0x20b0 fs/ntfs/inode.c:2087 ntfs_fill_super+0x94a/0x6c30 fs/ntfs/super.c:2856 mount_bdev+0x2cb/0x3b0 fs/super.c:1367 legacy_get_tree+0xfa/0x1f0 fs/fs_context.c:592 vfs_get_tree+0x7f/0x2c0 fs/super.c:1497 do_new_mount fs/namespace.c:2903 [inline] path_mount+0x7f3/0x1a40 fs/namespace.c:3233 do_mount fs/namespace.c:3246 [inline] __do_sys_mount fs/namespace.c:3454 [inline] __se_sys_mount fs/namespace.c:3431 [inline] __x64_sys_mount+0x1f5/0x260 fs/namespace.c:3431 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x466d2a Code: 48 c7 c2 bc ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f40fc1a3fa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 0000000000466d2a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f40fc1a4000 RBP: 00007f40fc1a4040 R08: 00007f40fc1a4040 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000000 R13: 0000000020000100 R14: 00007f40fc1a4000 R15: 000000002007dc00 Modules linked in: ---[ end trace ae8153a46037478c ]--- RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline] RIP: 0010:ntfs_readpage+0x1484/0x1ca0 fs/ntfs/aops.c:435 Code: ff ff 37 00 48 c1 ea 03 48 c1 e0 2a 80 3c 02 00 0f 85 e2 05 00 00 48 8b 44 24 28 48 8b 80 30 fd ff ff a8 08 0f 85 5c f4 ff ff <0f> 0b 48 c7 c6 00 03 59 88 4c 89 ff e8 0b 53 41 ff 0f 0b 48 c7 c6 RSP: 0018:ffffc900044777b0 EFLAGS: 00010246 RAX: 0000000000000230 RBX: ffff88812bd40d08 RCX: ffffffff8257bd06 RDX: 1ffff110257a8102 RSI: 0000000000000008 RDI: ffff88812bd40810 RBP: ffff88812bd40810 R08: 0000000000000000 R09: ffff88812bd40817 R10: ffffed10257a8102 R11: 0000000000000100 R12: fffff940009547a1 R13: ffffea0004aa3d20 R14: dffffc0000000000 R15: ffffea0004aa3d00 FS: 00007f40fc1a4700(0000) GS:ffff8881f6300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055aa045fd908 CR3: 000000011af0e001 CR4: 00000000001706e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400