bisecting fixing commit since 87ef12027b9b1dd0e0b12cf311fbcb19f9d92539 building syzkaller on 3642839c105d2c84160c10866805f903a22fa343 testing commit 87ef12027b9b1dd0e0b12cf311fbcb19f9d92539 with gcc (GCC) 8.1.0 kernel signature: 8c8cd0adf22692e8fda7e7b06428577ae29297ac5861e29a04decb402c3ead30 all runs: crashed: kernel BUG at fs/ntfs/aops.c:LINE! testing current HEAD 04300d66f0a06d572d9f2ad6768c38cabde22179 testing commit 04300d66f0a06d572d9f2ad6768c38cabde22179 with gcc (GCC) 8.1.0 kernel signature: f0f62aa207490dc33072d45349f9bd09df542ff36c0cca30382fd3a188b7c59d all runs: crashed: kernel BUG at fs/ntfs/aops.c:LINE! revisions tested: 2, total time: 15m26.026294587s (build: 8m13.255649736s, test: 6m27.378993086s) the crash still happens on HEAD commit msg: Merge tag 'riscv-for-linus-5.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux into master 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:186! invalid opcode: 0000 [#1] SMP CPU: 1 PID: 3836 Comm: syz-executor3 Not tainted 5.8.0-rc6-syzkaller #0 ntfs: (device loop4): is_boot_sector_ntfs(): Invalid end of sector marker. 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+0xa65/0xb00 fs/ntfs/aops.c:435 Code: 00 48 89 d7 e8 ac e5 ff ff eb da 49 83 bc 24 38 fd ff ff 00 0f 85 d1 f9 ff ff 49 8b 84 24 30 fd ff ff a8 08 0f 85 c1 f9 ff ff <0f> 0b 48 8b 45 88 48 05 90 00 00 00 48 89 85 60 ff ff ff e9 57 fe RSP: 0018:ffffc900002c7af0 EFLAGS: 00010246 RAX: 0000000000000230 RBX: ffffea00081d0140 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffea00081d0140 RDI: 0000000000000000 RBP: ffffc900002c7bd0 R08: 0000000000010000 R09: 0000000000000000 R10: 0000000000000001 R11: ffff88821177e400 R12: ffff88820b9dcaa0 R13: ffff88820b9dc780 R14: ffff88820b9dc780 R15: ffffea00081d0140 FS: 00007ff97884d700(0000) GS:ffff888218500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000558a51569cf8 CR3: 000000020d3fb000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_read_cache_page+0x591/0x6e0 mm/filemap.c:2784 read_cache_page+0xd/0x10 mm/filemap.c:2883 read_mapping_page include/linux/pagemap.h:437 [inline] ntfs_map_page fs/ntfs/aops.h:75 [inline] map_mft_record_page fs/ntfs/mft.c:73 [inline] map_mft_record+0x84/0x2a0 fs/ntfs/mft.c:156 ntfs_read_locked_inode+0x57/0x1350 fs/ntfs/inode.c:549 ntfs_read_inode_mount+0x2e1/0x9c0 fs/ntfs/inode.c:2074 ntfs_fill_super+0x507/0xf60 fs/ntfs/super.c:2857 mount_bdev+0x18c/0x1c0 fs/super.c:1417 ntfs_mount+0x10/0x20 fs/ntfs/super.c:3051 legacy_get_tree+0x2f/0x50 fs/fs_context.c:592 vfs_get_tree+0x28/0xc0 fs/super.c:1547 do_new_mount fs/namespace.c:2875 [inline] do_mount+0x892/0xab0 fs/namespace.c:3200 __do_sys_mount fs/namespace.c:3410 [inline] __se_sys_mount fs/namespace.c:3387 [inline] __x64_sys_mount+0xc0/0xe0 fs/namespace.c:3387 do_syscall_64+0x6e/0xf0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x457f2a Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 5d 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 3a 8f fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007ff97884cbb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 0000000000457f2a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ff97884cc00 RBP: 00000000000000b2 R08: 000000002007e200 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 000000000000067c R14: 00000000006fcc40 R15: 0000000000000000 Modules linked in: ---[ end trace 92c84513f9af2b75 ]--- ------------[ cut here ]------------ RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline] RIP: 0010:ntfs_readpage+0xa65/0xb00 fs/ntfs/aops.c:435 Code: 00 48 89 d7 e8 ac e5 ff ff eb da 49 83 bc 24 38 fd ff ff 00 0f 85 d1 f9 ff ff 49 8b 84 24 30 fd ff ff a8 08 0f 85 c1 f9 ff ff <0f> 0b 48 8b 45 88 48 05 90 00 00 00 48 89 85 60 ff ff ff e9 57 fe kernel BUG at fs/ntfs/aops.c:186! RSP: 0018:ffffc900002c7af0 EFLAGS: 00010246 invalid opcode: 0000 [#2] SMP RAX: 0000000000000230 RBX: ffffea00081d0140 RCX: 0000000000000000 CPU: 0 PID: 3893 Comm: syz-executor4 Tainted: G D 5.8.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:186 [inline] RIP: 0010:ntfs_readpage+0xa65/0xb00 fs/ntfs/aops.c:435 Code: 00 48 89 d7 e8 ac e5 ff ff eb da 49 83 bc 24 38 fd ff ff 00 0f 85 d1 f9 ff ff 49 8b 84 24 30 fd ff ff a8 08 0f 85 c1 f9 ff ff <0f> 0b 48 8b 45 88 48 05 90 00 00 00 48 89 85 60 ff ff ff e9 57 fe RDX: 0000000000000000 RSI: ffffea00081d0140 RDI: 0000000000000000 RSP: 0018:ffffc90000337af0 EFLAGS: 00010246 RAX: 0000000000000230 RBX: ffffea00081d1440 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffea00081d1440 RDI: 0000000000000000 RBP: ffffc90000337bd0 R08: 0000000000010000 R09: 0000000000000000 R10: 0000000000000000 R11: ffff888208b5c000 R12: ffff88820ba09ae0 R13: ffff88820ba097c0 R14: ffff88820ba097c0 R15: ffffea00081d1440 FS: 00007f8101348700(0000) GS:ffff888218400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f662460c08 CR3: 00000002089bd000 CR4: 00000000001406f0 RBP: ffffc900002c7bd0 R08: 0000000000010000 R09: 0000000000000000 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: R10: 0000000000000001 R11: ffff88821177e400 R12: ffff88820b9dcaa0 do_read_cache_page+0x591/0x6e0 mm/filemap.c:2784 read_cache_page+0xd/0x10 mm/filemap.c:2883 R13: ffff88820b9dc780 R14: ffff88820b9dc780 R15: ffffea00081d0140 read_mapping_page include/linux/pagemap.h:437 [inline] ntfs_map_page fs/ntfs/aops.h:75 [inline] map_mft_record_page fs/ntfs/mft.c:73 [inline] map_mft_record+0x84/0x2a0 fs/ntfs/mft.c:156 ntfs_read_locked_inode+0x57/0x1350 fs/ntfs/inode.c:549 ntfs_read_inode_mount+0x2e1/0x9c0 fs/ntfs/inode.c:2074 ntfs_fill_super+0x507/0xf60 fs/ntfs/super.c:2857 mount_bdev+0x18c/0x1c0 fs/super.c:1417 FS: 00007ff97884d700(0000) GS:ffff888218500000(0000) knlGS:0000000000000000 ntfs_mount+0x10/0x20 fs/ntfs/super.c:3051 legacy_get_tree+0x2f/0x50 fs/fs_context.c:592 vfs_get_tree+0x28/0xc0 fs/super.c:1547 do_new_mount fs/namespace.c:2875 [inline] do_mount+0x892/0xab0 fs/namespace.c:3200 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 __do_sys_mount fs/namespace.c:3410 [inline] __se_sys_mount fs/namespace.c:3387 [inline] __x64_sys_mount+0xc0/0xe0 fs/namespace.c:3387 do_syscall_64+0x6e/0xf0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x457f2a CR2: 0000558a51569cf8 CR3: 000000020d3fb000 CR4: 00000000001406e0 Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 5d 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 3a 8f fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007f8101347bb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 0000000000457f2a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f8101347c00 RBP: 00000000000000b2 R08: 000000002007e200 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 000000000000067c R14: 00000000006fcc40 R15: 0000000000000000 Modules linked in: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 ---[ end trace 92c84513f9af2b76 ]--- DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline] RIP: 0010:ntfs_readpage+0xa65/0xb00 fs/ntfs/aops.c:435