syzbot


kernel BUG at fs/ntfs/aops.c:LINE!
Status: upstream: reported C repro on 2018/04/19 17:02
Reported-by: syzbot+6a5a7672f663cce8b156@syzkaller.appspotmail.com
First crash: 1497d, last: 3d02h

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: no output from test machine (log)
Repro: C syz .config
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG at fs/ntfs/aops.c:LINE! C 99 5d01h 612d 0/1 upstream: reported C repro on 2020/09/20 21:54
linux-4.19 kernel BUG at fs/ntfs/aops.c:LINE! C 245 6d22h 611d 0/1 upstream: reported C repro on 2020/09/21 19:37

Sample crash report:
loop0: detected capacity change from 0 to 71
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: 1 PID: 3588 Comm: syz-executor116 Not tainted 5.18.0-rc3-syzkaller-00080-gd569e86915b7 #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+0x230d/0x2e70 fs/ntfs/aops.c:435
Code: 00 48 8b 44 24 40 31 ff 48 8b 98 30 fd ff ff 48 c1 eb 03 83 e3 01 89 de e8 20 7a de fe 84 db 0f 85 59 eb ff ff e8 33 76 de fe <0f> 0b e8 2c 76 de fe 48 c7 c6 60 1f 00 8a 4c 89 ef e8 1d 59 14 ff
RSP: 0018:ffffc9000309f740 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888023513a00 RSI: ffffffff829ab97d RDI: 0000000000000003
RBP: ffff888075218050 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff829ab970 R11: 0000000000000000 R12: ffff888075218050
R13: ffffea0001c459c0 R14: ffffea0001c459e0 R15: ffff888075218070
FS:  0000555556104300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020010000 CR3: 000000007cd1c000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 do_read_cache_folio+0x454/0x760 mm/filemap.c:3509
 do_read_cache_page mm/filemap.c:3588 [inline]
 read_cache_page+0x59/0x2a0 mm/filemap.c:3597
 read_mapping_page include/linux/pagemap.h:759 [inline]
 ntfs_map_page fs/ntfs/aops.h:75 [inline]
 map_mft_record_page fs/ntfs/mft.c:73 [inline]
 map_mft_record+0x1db/0xbe0 fs/ntfs/mft.c:156
 ntfs_read_locked_inode+0x19c/0x5ae0 fs/ntfs/inode.c:550
 ntfs_read_inode_mount+0xd72/0x24b0 fs/ntfs/inode.c:2091
 ntfs_fill_super+0x17a6/0x9080 fs/ntfs/super.c:2854
 mount_bdev+0x34d/0x410 fs/super.c:1367
 legacy_get_tree+0x105/0x220 fs/fs_context.c:610
 vfs_get_tree+0x89/0x2f0 fs/super.c:1497
 do_new_mount fs/namespace.c:3040 [inline]
 path_mount+0x1320/0x1fa0 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+0x44/0xae
RIP: 0033:0x7f791f5142ca
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:00007fff5722ed18 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fff5722ed70 RCX: 00007f791f5142ca
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fff5722ed30
RBP: 00007fff5722ed30 R08: 00007fff5722ed70 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000020000290
R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000006
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline]
RIP: 0010:ntfs_readpage+0x230d/0x2e70 fs/ntfs/aops.c:435
Code: 00 48 8b 44 24 40 31 ff 48 8b 98 30 fd ff ff 48 c1 eb 03 83 e3 01 89 de e8 20 7a de fe 84 db 0f 85 59 eb ff ff e8 33 76 de fe <0f> 0b e8 2c 76 de fe 48 c7 c6 60 1f 00 8a 4c 89 ef e8 1d 59 14 ff
RSP: 0018:ffffc9000309f740 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888023513a00 RSI: ffffffff829ab97d RDI: 0000000000000003
RBP: ffff888075218050 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff829ab970 R11: 0000000000000000 R12: ffff888075218050
R13: ffffea0001c459c0 R14: ffffea0001c459e0 R15: ffff888075218070
FS:  0000555556104300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020010000 CR3: 000000007cd1c000 CR4: 0000000000350ee0

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2021/04/02 13:37 upstream 1678e493d530 d81b165e .config log report syz C
ci-upstream-kasan-gce-root 2020/08/27 03:08 upstream 15bc20c6af4c 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2020/07/26 13:40 upstream 04300d66f0a0 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2020/06/15 14:26 upstream b3a9e3b9622a 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2020/05/16 13:19 upstream 12bf0b632ed0 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2020/04/16 13:03 upstream 00086336a8d9 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2020/03/16 22:15 upstream fb33c6510d55 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2020/02/11 21:13 upstream 0a679e13ea30 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2020/01/12 20:49 upstream 040a3c33623b 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2019/12/10 13:36 upstream 6794862a16ef 3642839c .config log report syz C
ci-upstream-kasan-gce-root 2019/08/01 06:57 upstream 87ef12027b9b 3642839c .config log report syz C
Crashes (403):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/04/22 17:58 upstream d569e86915b7 131df97d .config log report syz C kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-selinux-root 2022/02/19 16:24 upstream 4f12b742eb2b 3cd800e4 .config log report syz C kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-root 2021/12/18 07:13 upstream 6441998e2e37 44068e19 .config log report syz C kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-smack-root 2020/10/09 16:05 upstream 583090b1b823 d81b165e .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/10/07 16:36 upstream c85fb28b6f99 1880b4a9 .config log report syz C
ci-upstream-kasan-gce-root 2020/10/04 22:03 upstream 22fbc037cd32 5ef9c291 .config log report syz C
ci-upstream-kasan-gce-smack-root 2020/09/26 12:26 upstream 7c7ec3226f5f 4a006f63 .config log report syz C
ci-upstream-kasan-gce-root 2018/04/19 16:49 upstream 87ef12027b9b 3642839c .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/11/02 17:27 linux-next b49976d8ef64 8bc4594f .config log report syz C
ci-upstream-kasan-gce-smack-root 2022/05/22 23:30 upstream eaea45fc0e7b 7268fa62 .config log report info kernel BUG in ntfs_read_block
ci-upstream-kasan-gce-selinux-root 2022/05/13 01:53 upstream 0ac824f379fb 9ad6612a .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-selinux-root 2022/05/12 11:58 upstream feb9c5e19e91 beb0b407 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-root 2022/05/12 03:02 upstream feb9c5e19e91 beb0b407 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-selinux-root 2022/04/29 18:50 upstream 38d741cb70b3 44a5ca63 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-smack-root 2022/04/27 12:26 upstream 46cf2c613f4b 1fa34c1b .config log report info kernel BUG in ntfs_read_block
ci-upstream-kasan-gce-selinux-root 2022/04/25 03:13 upstream af2d861d4cd2 131df97d .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-root 2022/04/18 10:28 upstream b2d229d4ddb1 8bcc32a6 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-selinux-root 2022/04/17 14:32 upstream a2c29ccd9477 8bcc32a6 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-smack-root 2022/04/16 19:47 upstream 59250f8a7f3a 8bcc32a6 .config log report info kernel BUG in ntfs_read_block
ci-upstream-kasan-gce-root 2022/04/12 08:26 upstream ce522ba9ef7e af01ee7d .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-root 2022/04/10 16:43 upstream e1f700ebd6be e22c3da3 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-root 2022/04/08 09:38 upstream 42e7a03d3bad c6ff3e05 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-root 2022/03/29 22:39 upstream 1930a6e739c4 6bdac766 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-root 2022/03/17 09:58 upstream 56e337f2cf13 dfa9a8ed .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-smack-root 2022/03/16 09:46 upstream 56e337f2cf13 9e8eaa75 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-root 2022/03/16 03:20 upstream 56e337f2cf13 9e8eaa75 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-root 2022/03/13 08:08 upstream aad611a868d1 9e8eaa75 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-root 2022/03/13 07:41 upstream aad611a868d1 9e8eaa75 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-smack-root 2022/03/11 21:34 upstream 79b00034e9dc 9e8eaa75 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-root 2022/03/08 14:29 upstream ea4424be1688 7bdd8b2c .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-selinux-root 2022/03/07 11:05 upstream ffb217a13a2e 7bdd8b2c .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-root 2022/03/05 04:23 upstream 07ebd38a0da2 45a13a73 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-smack-root 2022/03/03 10:07 upstream 92ebf5f91b4d 45a13a73 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-selinux-root 2022/03/01 17:49 upstream 719fce7539cd 45a13a73 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-smack-root 2022/02/24 05:13 upstream 23d04328444a 6e821dbf .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-selinux-root 2022/02/21 09:04 upstream 7f25f0412c9e 3cd800e4 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-smack-root 2022/02/14 05:33 upstream 42964a18f81c 8b9ca619 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-selinux-root 2022/02/12 07:14 upstream 1d41d2e82623 8b9ca619 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-root 2022/02/07 07:09 upstream d8ad2ce873ab a7dab638 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-root 2022/02/05 13:37 upstream 0457e5153e0e a7dab638 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-smack-root 2022/02/04 20:46 upstream dcb85f85fa6f e13a05ed .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-smack-root 2022/02/04 18:02 upstream dcb85f85fa6f e13a05ed .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-root 2022/01/31 16:24 upstream 26291c54e111 6b7c57fe .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-root 2022/01/31 08:10 upstream 26291c54e111 495e00c5 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-smack-root 2022/01/30 22:20 upstream 24f4db1f3a27 495e00c5 .config log report info kernel BUG in ntfs_readpage
ci-qemu-upstream 2021/12/01 00:51 upstream 58e1100fdc59 80270552 .config log report info kernel BUG in ntfs_readpage
ci-upstream-kasan-gce-root 2018/04/19 14:35 upstream 87ef12027b9b 3642839c .config log report
ci-qemu-upstream-386 2022/03/02 00:09 upstream 575115360652 45a13a73 .config log report info kernel BUG in ntfs_readpage
ci-qemu-upstream-386 2022/02/26 05:33 upstream 53ab78cd6d5a 45a13a73 .config log report info kernel BUG in ntfs_readpage
ci-qemu2-arm64-compat 2021/03/02 22:38 upstream 7a7fd0de4a98 e5b64d68 .config log report info kernel BUG in ntfs_readpage
ci-upstream-linux-next-kasan-gce-root 2022/04/17 15:50 linux-next 40354149f4d7 8bcc32a6 .config log report info kernel BUG in ntfs_readpage
ci-upstream-linux-next-kasan-gce-root 2022/04/15 03:10 linux-next 40354149f4d7 b17b2923 .config log report info kernel BUG in ntfs_readpage
ci-upstream-linux-next-kasan-gce-root 2022/04/12 05:51 linux-next d12d7e1cfe38 af01ee7d .config log report info kernel BUG in ntfs_readpage
ci-upstream-linux-next-kasan-gce-root 2022/04/09 20:43 linux-next ff511c1c68a5 e22c3da3 .config log report info kernel BUG in ntfs_readpage
ci-upstream-linux-next-kasan-gce-root 2022/03/04 22:34 linux-next 91265a6da44d 45a13a73 .config log report info kernel BUG in ntfs_readpage
ci-upstream-linux-next-kasan-gce-root 2022/02/20 02:20 linux-next ef6b35306dd8 3cd800e4 .config log report info kernel BUG in ntfs_readpage
ci-upstream-linux-next-kasan-gce-root 2022/02/14 20:17 linux-next ef6b35306dd8 8b9ca619 .config log report info kernel BUG in ntfs_readpage
ci-upstream-linux-next-kasan-gce-root 2022/02/10 17:38 linux-next ef6b35306dd8 0b33604d .config log report info kernel BUG in ntfs_readpage
ci-upstream-linux-next-kasan-gce-root 2022/02/08 22:47 linux-next ef6b35306dd8 0b33604d .config log report info kernel BUG in ntfs_readpage
ci-upstream-linux-next-kasan-gce-root 2022/02/08 01:31 linux-next ef6b35306dd8 a7dab638 .config log report info kernel BUG in ntfs_readpage
ci-upstream-linux-next-kasan-gce-root 2022/02/08 00:24 linux-next ef6b35306dd8 a7dab638 .config log report info kernel BUG in ntfs_readpage
ci-upstream-linux-next-kasan-gce-root 2020/12/26 20:44 linux-next d7a03a44a5e9 821e0b09 .config log report info