bisecting fixing commit since 87ef12027b9b1dd0e0b12cf311fbcb19f9d92539 building syzkaller on 3642839c105d2c84160c10866805f903a22fa343 testing commit 87ef12027b9b1dd0e0b12cf311fbcb19f9d92539 with gcc (GCC) 8.1.0 kernel signature: 459dea62825351409f0d1ea30de106e096ed9dfec04963cb62c21aa3936dba9f all runs: crashed: kernel BUG at fs/ntfs/aops.c:LINE! testing current HEAD fb33c6510d5595144d585aa194d377cf74d31911 testing commit fb33c6510d5595144d585aa194d377cf74d31911 with gcc (GCC) 8.1.0 kernel signature: a2a6e46688929d6e55dc7399d6b4d056a772e393e807b453a67abe0cdb0f27fb all runs: crashed: kernel BUG at fs/ntfs/aops.c:LINE! revisions tested: 2, total time: 17m29.10672375s (build: 10m12.389247629s, test: 6m32.130229265s) the crash still happens on HEAD commit msg: Linux 5.6-rc6 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 loop3): is_boot_sector_ntfs(): Invalid end of sector marker. ------------[ cut here ]------------ kernel BUG at fs/ntfs/aops.c:189! invalid opcode: 0000 [#1] SMP KASAN CPU: 0 PID: 4569 Comm: syz-executor3 Not tainted 5.6.0-rc6-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:189 [inline] RIP: 0010:ntfs_readpage+0x174e/0x1cc0 fs/ntfs/aops.c:438 Code: 89 fa 48 c1 e0 2a 48 c1 ea 03 80 3c 02 00 0f 85 39 05 00 00 48 8b 85 18 ff ff ff 48 8b 80 70 fd ff ff a8 08 0f 85 5d f3 ff ff <0f> 0b 0f 0b 0f 0b 4c 89 f7 41 bc f4 ff ff ff e8 8e 72 5d ff e9 75 ntfs: (device loop0): is_boot_sector_ntfs(): Invalid end of sector marker. RSP: 0018:ffff8881c33076d8 EFLAGS: 00010246 RAX: 0000000000000230 RBX: ffff8881d0adfc68 RCX: ffffffff82265750 RDX: 1ffff1103a15bef9 RSI: 0000000000000008 RDI: ffff8881d0adf7c8 RBP: ffff8881c3307858 R08: ffffed103a15befa R09: ffffed103a15befa R10: ffffed103a15bef9 R11: ffff8881d0adf7cf R12: ffffea0006eb48a0 R13: ffff8881d0adf7c8 R14: ffffea0006eb4880 R15: dffffc0000000000 FS: 00007fd7f794a700(0000) GS:ffff8881db000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000700000 CR3: 00000001c1e9e000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_read_cache_page+0x65c/0x12d0 mm/filemap.c:2761 read_cache_page+0x45/0x70 mm/filemap.c:2852 read_mapping_page include/linux/pagemap.h:396 [inline] ntfs_map_page fs/ntfs/aops.h:75 [inline] map_mft_record_page fs/ntfs/mft.c:73 [inline] map_mft_record+0x184/0x950 fs/ntfs/mft.c:156 ntfs_read_locked_inode+0x18e/0x52a0 fs/ntfs/inode.c:549 ntfs_read_inode_mount+0xa3f/0x20c0 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:2822 [inline] do_mount+0x1285/0x1b70 fs/namespace.c:3107 __do_sys_mount fs/namespace.c:3316 [inline] __se_sys_mount fs/namespace.c:3293 [inline] __x64_sys_mount+0x169/0x1c0 fs/namespace.c:3293 do_syscall_64+0xd0/0x630 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe 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:00007fd7f7949bb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 0000000000457eaa RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fd7f7949c00 RBP: 00000000000000b2 R08: 000000002007e200 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 000000000000067c R14: 00000000006fcc40 R15: 0000000000000000 Modules linked in: ---[ end trace e3b7c01a19d6d022 ]--- RIP: 0010:ntfs_read_block fs/ntfs/aops.c:189 [inline] RIP: 0010:ntfs_readpage+0x174e/0x1cc0 fs/ntfs/aops.c:438 ------------[ cut here ]------------ Code: 89 fa 48 c1 e0 2a 48 c1 ea 03 80 3c 02 00 0f 85 39 05 00 00 48 8b 85 18 ff ff ff 48 8b 80 70 fd ff ff a8 08 0f 85 5d f3 ff ff <0f> 0b 0f 0b 0f 0b 4c 89 f7 41 bc f4 ff ff ff e8 8e 72 5d ff e9 75 kernel BUG at fs/ntfs/aops.c:189! invalid opcode: 0000 [#2] SMP KASAN RSP: 0018:ffff8881c33076d8 EFLAGS: 00010246 CPU: 1 PID: 4574 Comm: syz-executor Tainted: G D 5.6.0-rc6-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:189 [inline] RIP: 0010:ntfs_readpage+0x174e/0x1cc0 fs/ntfs/aops.c:438 Code: 89 fa 48 c1 e0 2a 48 c1 ea 03 80 3c 02 00 0f 85 39 05 00 00 48 8b 85 18 ff ff ff 48 8b 80 70 fd ff ff a8 08 0f 85 5d f3 ff ff <0f> 0b 0f 0b 0f 0b 4c 89 f7 41 bc f4 ff ff ff e8 8e 72 5d ff e9 75 RAX: 0000000000000230 RBX: ffff8881d0adfc68 RCX: ffffffff82265750 RSP: 0018:ffff8881c1a176d8 EFLAGS: 00010246 RAX: 0000000000000230 RBX: ffff8881d0b23ca8 RCX: ffffffff82265750 RDX: 1ffff1103a164701 RSI: 0000000000000008 RDI: ffff8881d0b23808 RBP: ffff8881c1a17858 R08: ffffed103a164702 R09: ffffed103a164702 R10: ffffed103a164701 R11: ffff8881d0b2380f R12: ffffea0006eb3920 R13: ffff8881d0b23808 R14: ffffea0006eb3900 R15: dffffc0000000000 RDX: 1ffff1103a15bef9 RSI: 0000000000000008 RDI: ffff8881d0adf7c8 FS: 00007f8e054ae700(0000) GS:ffff8881db100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000625208 CR3: 00000001d1d27000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 RBP: ffff8881c3307858 R08: ffffed103a15befa R09: ffffed103a15befa Call Trace: R10: ffffed103a15bef9 R11: ffff8881d0adf7cf R12: ffffea0006eb48a0 do_read_cache_page+0x65c/0x12d0 mm/filemap.c:2761 R13: ffff8881d0adf7c8 R14: ffffea0006eb4880 R15: dffffc0000000000 FS: 00007fd7f794a700(0000) GS:ffff8881db000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 read_cache_page+0x45/0x70 mm/filemap.c:2852 read_mapping_page include/linux/pagemap.h:396 [inline] ntfs_map_page fs/ntfs/aops.h:75 [inline] map_mft_record_page fs/ntfs/mft.c:73 [inline] map_mft_record+0x184/0x950 fs/ntfs/mft.c:156 ntfs_read_locked_inode+0x18e/0x52a0 fs/ntfs/inode.c:549 CR2: 0000000000700000 CR3: 00000001c1e9e000 CR4: 00000000001406f0 ntfs_read_inode_mount+0xa3f/0x20c0 fs/ntfs/inode.c:2074 ntfs_fill_super+0x1217/0x2d40 fs/ntfs/super.c:2857 mount_bdev+0x27b/0x340 fs/super.c:1417 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 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 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 do_new_mount fs/namespace.c:2822 [inline] do_mount+0x1285/0x1b70 fs/namespace.c:3107