loop0: detected capacity change from 0 to 258 ntfs: (device loop0): 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: 0 PID: 3601 Comm: syz-executor877 Not tainted 6.1.0-rc1-next-20221020-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline] RIP: 0010:ntfs_read_folio+0x2346/0x2e10 fs/ntfs/aops.c:436 Code: 00 48 8b 44 24 50 31 ff 48 8b 98 30 fd ff ff 48 c1 eb 03 83 e3 01 89 de e8 27 8c df fe 84 db 0f 85 59 eb ff ff e8 8a 8f df fe <0f> 0b e8 83 8f df fe 48 c7 c6 e0 70 01 8a 4c 89 f7 e8 94 08 16 ff RSP: 0018:ffffc90003cdf6e0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888024e357c0 RSI: ffffffff829cf656 RDI: 0000000000000001 RBP: ffff888072e70050 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff888072e70050 R13: ffffea0001c2e818 R14: ffffea0001c2e800 R15: ffffea0001c2e820 FS: 0000555555bbc300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff8619c000 CR3: 000000007317e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: filemap_read_folio+0xdb/0x2c0 mm/filemap.c:2425 do_read_cache_folio+0x1df/0x510 mm/filemap.c:3552 do_read_cache_page mm/filemap.c:3594 [inline] read_cache_page+0x59/0x170 mm/filemap.c:3603 read_mapping_page include/linux/pagemap.h:755 [inline] ntfs_map_page fs/ntfs/aops.h:75 [inline] map_mft_record_page fs/ntfs/mft.c:73 [inline] map_mft_record+0x1db/0x8c0 fs/ntfs/mft.c:156 ntfs_read_locked_inode+0x19c/0x5ae0 fs/ntfs/inode.c:550 ntfs_read_inode_mount+0xe51/0x26a0 fs/ntfs/inode.c:2098 ntfs_fill_super+0x1888/0x8f20 fs/ntfs/super.c:2855 mount_bdev+0x34d/0x410 fs/super.c:1401 legacy_get_tree+0x105/0x220 fs/fs_context.c:617 vfs_get_tree+0x89/0x2f0 fs/super.c:1531 do_new_mount fs/namespace.c:3040 [inline] path_mount+0x1326/0x1e20 fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __x64_sys_mount+0x27f/0x300 fs/namespace.c:3568 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+0x63/0xcd RIP: 0033:0x7f7b466b81fa Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff8619b068 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f7b466b81fa RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fff8619b080 RBP: 00007fff8619b080 R08: 00007fff8619b0c0 R09: 0000555555bbc2c0 R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000004 R13: 00007fff8619b0c0 R14: 0000000000000004 R15: 0000000020000260 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline] RIP: 0010:ntfs_read_folio+0x2346/0x2e10 fs/ntfs/aops.c:436 Code: 00 48 8b 44 24 50 31 ff 48 8b 98 30 fd ff ff 48 c1 eb 03 83 e3 01 89 de e8 27 8c df fe 84 db 0f 85 59 eb ff ff e8 8a 8f df fe <0f> 0b e8 83 8f df fe 48 c7 c6 e0 70 01 8a 4c 89 f7 e8 94 08 16 ff RSP: 0018:ffffc90003cdf6e0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888024e357c0 RSI: ffffffff829cf656 RDI: 0000000000000001 RBP: ffff888072e70050 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffff888072e70050 R13: ffffea0001c2e818 R14: ffffea0001c2e800 R15: ffffea0001c2e820 FS: 0000555555bbc300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff8619c000 CR3: 000000007317e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400