bisecting fixing commit since 87ef12027b9b1dd0e0b12cf311fbcb19f9d92539 building syzkaller on 3642839c105d2c84160c10866805f903a22fa343 testing commit 87ef12027b9b1dd0e0b12cf311fbcb19f9d92539 with gcc (GCC) 8.1.0 kernel signature: 382e65d9c3b857108296c7c84b180d3c128b162d6924cfb9bf2da493dd84b6dd all runs: crashed: kernel BUG at fs/ntfs/aops.c:LINE! testing current HEAD 12bf0b632ed090358cbf03e323e5342212d0b2e4 testing commit 12bf0b632ed090358cbf03e323e5342212d0b2e4 with gcc (GCC) 8.1.0 kernel signature: e5e670dc246f6e72002e4a6c9052e7b353513e707056cb4c2826284228331475 all runs: crashed: kernel BUG at fs/ntfs/aops.c:LINE! revisions tested: 2, total time: 16m6.697489231s (build: 9m1.860030519s, test: 6m19.398145472s) the crash still happens on HEAD commit msg: Merge tag 'nfs-for-5.7-5' of git://git.linux-nfs.org/projects/trondmy/linux-nfs crash: kernel BUG at fs/ntfs/aops.c:LINE! IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 ntfs: (device loop1): is_boot_sector_ntfs(): Invalid end of sector marker. ------------[ cut here ]------------ kernel BUG at fs/ntfs/aops.c:186! invalid opcode: 0000 [#1] SMP KASAN CPU: 0 PID: 4066 Comm: syz-executor1 Not tainted 5.7.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+0x1793/0x1d60 fs/ntfs/aops.c:435 Code: 89 fa 48 c1 e0 2a 48 c1 ea 03 80 3c 02 00 0f 85 b7 02 00 00 48 8b 85 18 ff ff ff 48 8b 80 30 fd ff ff a8 08 0f 85 1d f3 ff ff <0f> 0b 0f 0b 0f 0b be 01 00 00 00 48 89 df e8 1a de ff ff e9 4a ff RSP: 0018:ffff8881c79876d8 EFLAGS: 00010246 RAX: 0000000000000230 RBX: ffff8881b878cd08 RCX: ffffffff8228adf5 RDX: 1ffff110370f1902 RSI: 0000000000000008 RDI: ffff8881b878c810 RBP: ffff8881c7987858 R08: ffffed10370f1903 R09: ffffed10370f1903 R10: ffff8881b878c817 R11: ffffed10370f1902 R12: ffffea0006de55a0 R13: ffff8881b878c810 R14: ffffea0006de5580 R15: dffffc0000000000 FS: 00007fdbb7ed0700(0000) GS:ffff8881db000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 ntfs: (device loop0): is_boot_sector_ntfs(): Invalid end of sector marker. CR2: 00000000004da898 CR3: 00000001c643c000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_read_cache_page+0x65c/0x1380 mm/filemap.c:2768 read_cache_page+0x45/0x70 mm/filemap.c:2867 read_mapping_page include/linux/pagemap.h:397 [inline] ntfs_map_page fs/ntfs/aops.h:75 [inline] map_mft_record_page fs/ntfs/mft.c:73 [inline] map_mft_record+0x182/0x990 fs/ntfs/mft.c:156 ntfs_read_locked_inode+0x18e/0x52a0 fs/ntfs/inode.c:549 ntfs_read_inode_mount+0xa42/0x21b0 fs/ntfs/inode.c:2074 ntfs_fill_super+0x1217/0x2d40 fs/ntfs/super.c:2857 mount_bdev+0x27b/0x340 fs/super.c:1417 ntfs_mount+0x10/0x20 fs/ntfs/super.c:3051 legacy_get_tree+0x103/0x1f0 fs/fs_context.c:622 vfs_get_tree+0x8b/0x2d0 fs/super.c:1547 do_new_mount fs/namespace.c:2816 [inline] do_mount+0x1287/0x1c30 fs/namespace.c:3141 __do_sys_mount fs/namespace.c:3350 [inline] __se_sys_mount fs/namespace.c:3327 [inline] __x64_sys_mount+0x169/0x1c0 fs/namespace.c:3327 do_syscall_64+0xd0/0x630 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x457eaa Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 dd 8f fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 ba 8f fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007fdbb7ecfbb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 0000000000457eaa RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fdbb7ecfc00 RBP: 00000000000000b2 R08: 000000002007e200 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 000000000000067c R14: 00000000006fcc40 R15: 0000000000000000 Modules linked in: ---[ end trace 371bc2d36dd6b989 ]--- RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline] RIP: 0010:ntfs_readpage+0x1793/0x1d60 fs/ntfs/aops.c:435 Code: 89 fa 48 c1 e0 2a 48 c1 ea 03 80 3c 02 00 0f 85 b7 02 00 00 48 8b 85 18 ff ff ff 48 8b 80 30 fd ff ff a8 08 0f 85 1d f3 ff ff <0f> 0b 0f 0b 0f 0b be 01 00 00 00 48 89 df e8 1a de ff ff e9 4a ff ------------[ cut here ]------------ RSP: 0018:ffff8881c79876d8 EFLAGS: 00010246 kernel BUG at fs/ntfs/aops.c:186! invalid opcode: 0000 [#2] SMP KASAN RAX: 0000000000000230 RBX: ffff8881b878cd08 RCX: ffffffff8228adf5 CPU: 1 PID: 4146 Comm: syz-executor Tainted: G D 5.7.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+0x1793/0x1d60 fs/ntfs/aops.c:435 Code: 89 fa 48 c1 e0 2a 48 c1 ea 03 80 3c 02 00 0f 85 b7 02 00 00 48 8b 85 18 ff ff ff 48 8b 80 30 fd ff ff a8 08 0f 85 1d f3 ff ff <0f> 0b 0f 0b 0f 0b be 01 00 00 00 48 89 df e8 1a de ff ff e9 4a ff RDX: 1ffff110370f1902 RSI: 0000000000000008 RDI: ffff8881b878c810 RSP: 0018:ffff8881c63976d8 EFLAGS: 00010246 RAX: 0000000000000230 RBX: ffff8881b87e4d08 RCX: ffffffff8228adf5 RDX: 1ffff110370fc902 RSI: 0000000000000008 RDI: ffff8881b87e4810 RBP: ffff8881c6397858 R08: ffffed10370fc903 R09: ffffed10370fc903 R10: ffff8881b87e4817 R11: ffffed10370fc902 R12: ffffea0006de7e60 R13: ffff8881b87e4810 R14: ffffea0006de7e40 R15: dffffc0000000000 RBP: ffff8881c7987858 R08: ffffed10370f1903 R09: ffffed10370f1903 FS: 00007ff2654f5700(0000) GS:ffff8881db100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f295b4f7000 CR3: 00000001c6d9d000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 R10: ffff8881b878c817 R11: ffffed10370f1902 R12: ffffea0006de55a0 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_read_cache_page+0x65c/0x1380 mm/filemap.c:2768 read_cache_page+0x45/0x70 mm/filemap.c:2867 read_mapping_page include/linux/pagemap.h:397 [inline] ntfs_map_page fs/ntfs/aops.h:75 [inline] map_mft_record_page fs/ntfs/mft.c:73 [inline] map_mft_record+0x182/0x990 fs/ntfs/mft.c:156 ntfs_read_locked_inode+0x18e/0x52a0 fs/ntfs/inode.c:549 ntfs_read_inode_mount+0xa42/0x21b0 fs/ntfs/inode.c:2074 ntfs_fill_super+0x1217/0x2d40 fs/ntfs/super.c:2857 mount_bdev+0x27b/0x340 fs/super.c:1417 ntfs_mount+0x10/0x20 fs/ntfs/super.c:3051 legacy_get_tree+0x103/0x1f0 fs/fs_context.c:622 vfs_get_tree+0x8b/0x2d0 fs/super.c:1547 do_new_mount fs/namespace.c:2816 [inline] do_mount+0x1287/0x1c30 fs/namespace.c:3141 R13: ffff8881b878c810 R14: ffffea0006de5580 R15: dffffc0000000000 FS: 00007fdbb7ed0700(0000) GS:ffff8881db000000(0000) knlGS:0000000000000000 __do_sys_mount fs/namespace.c:3350 [inline] __se_sys_mount fs/namespace.c:3327 [inline] __x64_sys_mount+0x169/0x1c0 fs/namespace.c:3327 do_syscall_64+0xd0/0x630 arch/x86/entry/common.c:295 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x457eaa Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 dd 8f fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 ba 8f fb ff c3 66 0f 1f 84 00 00 00 00 00 CR2: 00000000004da898 CR3: 00000001c643c000 CR4: 00000000001406f0 RSP: 002b:00007ff2654f4bb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 0000000000457eaa RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ff2654f4c00 RBP: 00000000000000b2 R08: 000000002007e200 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 R13: 000000000000067c R14: 00000000006fcc40 R15: 0000000000000000 Modules linked in: ---[ end trace 371bc2d36dd6b98a ]--- DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline] RIP: 0010:ntfs_readpage+0x1793/0x1d60 fs/ntfs/aops.c:435