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: 1574d, last: 18h38m

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 102 9d01h 689d 0/1 upstream: reported C repro on 2020/09/20 21:54
linux-4.19 kernel BUG at fs/ntfs/aops.c:LINE! C 272 21h53m 688d 0/1 upstream: reported C repro on 2020/09/21 19:37

Sample crash report:
loop0: detected capacity change from 0 to 103
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: 3604 Comm: syz-executor102 Not tainted 5.19.0-rc6-syzkaller-00115-g4a57a8400075 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline]
RIP: 0010:ntfs_read_folio+0x230d/0x2eb0 fs/ntfs/aops.c:436
Code: 00 48 8b 44 24 48 31 ff 48 8b 98 30 fd ff ff 48 c1 eb 03 83 e3 01 89 de e8 d0 b7 db fe 84 db 0f 85 73 eb ff ff e8 c3 bb db fe <0f> 0b 4c 8b 7c 24 40 e8 b7 bb db fe 48 8b 54 24 20 48 b8 00 00 00
RSP: 0018:ffffc900030af738 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888026241d80 RSI: ffffffff829eaf1d RDI: 0000000000000001
RBP: ffff88823bc32890 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff88823bc32890
R13: ffffea0001c62120 R14: fffff9400038c421 R15: ffffea0001c62100
FS:  0000555556301300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005d84c8 CR3: 000000001be4f000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 do_read_cache_folio+0x281/0x760 mm/filemap.c:3524
 do_read_cache_page mm/filemap.c:3602 [inline]
 read_cache_page+0x59/0x2a0 mm/filemap.c:3611
 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+0x63/0xcd
RIP: 0033:0x7fac367f348a
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:00007ffd374ee568 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffd374ee5c0 RCX: 00007fac367f348a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffd374ee580
RBP: 00007ffd374ee580 R08: 00007ffd374ee5c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000020000368
R13: 0000000000000003 R14: 0000000000000004 R15: 000000000000000f
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline]
RIP: 0010:ntfs_read_folio+0x230d/0x2eb0 fs/ntfs/aops.c:436
Code: 00 48 8b 44 24 48 31 ff 48 8b 98 30 fd ff ff 48 c1 eb 03 83 e3 01 89 de e8 d0 b7 db fe 84 db 0f 85 73 eb ff ff e8 c3 bb db fe <0f> 0b 4c 8b 7c 24 40 e8 b7 bb db fe 48 8b 54 24 20 48 b8 00 00 00
RSP: 0018:ffffc900030af738 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888026241d80 RSI: ffffffff829eaf1d RDI: 0000000000000001
RBP: ffff88823bc32890 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff88823bc32890
R13: ffffea0001c62120 R14: fffff9400038c421 R15: ffffea0001c62100
FS:  0000555556301300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005d84c8 CR3: 000000001be4f000 CR4: 0000000000350ef0

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 (461):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/07/14 20:36 upstream 4a57a8400075 5d921b08 .config log report syz C kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-selinux-root 2022/07/11 02:32 upstream d9919d43cbf6 b5765a15 .config log report syz C kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-root 2022/07/05 08:43 upstream c1084b6c5620 bff65f44 .config log report syz C kernel BUG in ntfs_read_folio
ci-qemu-upstream 2022/06/25 06:43 upstream cbe232ab07ab a371c43c .config log report syz C kernel BUG in ntfs_read_folio
ci-qemu-upstream 2022/06/22 04:51 upstream ca1fdab7fd27 0fc5c330 .config log report syz C kernel BUG in ntfs_read_folio
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 2022/06/01 19:20 linux-next 5d8e7e3bbaaf 3666edfe .config log report syz C kernel BUG in ntfs_read_folio
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-root 2022/08/08 08:18 upstream 200e340f2196 88e3a122 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-smack-root 2022/08/08 02:54 upstream 200e340f2196 88e3a122 .config log report info kernel BUG in ntfs_read_block
ci-upstream-kasan-gce-smack-root 2022/08/07 16:28 upstream 200e340f2196 88e3a122 .config log report info kernel BUG in ntfs_read_block
ci-upstream-kasan-gce-smack-root 2022/08/07 07:30 upstream 200e340f2196 88e3a122 .config log report info kernel BUG in ntfs_read_block
ci-upstream-kasan-gce-root 2022/08/06 23:33 upstream 200e340f2196 88e3a122 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-selinux-root 2022/08/05 22:45 upstream 200e340f2196 e853abd9 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-selinux-root 2022/08/05 01:26 upstream 200e340f2196 1c9013ac .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-selinux-root 2022/08/04 04:36 upstream 200e340f2196 1c9013ac .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-smack-root 2022/08/01 22:41 upstream 3d7cb6b04c3f fef302b1 .config log report info kernel BUG in ntfs_read_block
ci-upstream-kasan-gce-selinux-root 2022/07/30 11:28 upstream e65c6a46df94 fef302b1 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-selinux-root 2022/07/25 22:51 upstream e0dccc3b76fb 664c519c .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-selinux-root 2022/07/25 18:32 upstream e0dccc3b76fb 664c519c .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-root 2022/07/22 09:45 upstream 68e77ffbfd06 5e6028b9 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-smack-root 2022/07/22 07:38 upstream 68e77ffbfd06 5e6028b9 .config log report info kernel BUG in ntfs_read_block
ci-upstream-kasan-gce-smack-root 2022/07/16 07:00 upstream 9b59ec8d50a1 95cb00d1 .config log report info kernel BUG in ntfs_read_block
ci-upstream-kasan-gce-root 2022/07/11 16:05 upstream 32346491ddf2 da3d6955 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-smack-root 2022/07/09 22:40 upstream e5524c2a1fc4 b5765a15 .config log report info kernel BUG in ntfs_read_block
ci-upstream-kasan-gce-root 2022/07/07 11:07 upstream 9f09069cde34 bff65f44 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-root 2022/07/06 18:15 upstream e35e5b6f695d bff65f44 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-root 2022/06/29 04:08 upstream 941e3e791269 496a8536 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-selinux-root 2022/06/18 01:37 upstream f0ec9c65a8d6 cb58b3b2 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-root 2022/06/13 03:26 upstream 7a68065eb9cd 0d5abf15 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-smack-root 2022/06/11 23:35 upstream 0885eacdc81f 0d5abf15 .config log report info kernel BUG in ntfs_read_block
ci-upstream-kasan-gce-root 2022/06/06 19:02 upstream f2906aa86338 c8857892 .config log report info kernel BUG in ntfs_read_folio
ci-qemu-upstream 2022/06/06 10:48 upstream f2906aa86338 c8857892 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-smack-root 2022/06/03 23:56 upstream 50fd82b3a9a9 eee80d3c .config log report info kernel BUG in ntfs_read_block
ci-upstream-kasan-gce-selinux-root 2022/06/03 22:49 upstream 50fd82b3a9a9 eee80d3c .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-selinux-root 2022/06/02 21:24 upstream d1dc87763f40 5783034f .config log report info kernel BUG in ntfs_read_folio
ci-upstream-kasan-gce-smack-root 2022/06/02 06:39 upstream 8171acb8bc9b b4bc6a3d .config log report info kernel BUG in ntfs_read_block
ci-upstream-kasan-gce-root 2022/05/29 13:30 upstream 664a393a2663 a46af346 .config log report info kernel BUG in ntfs_read_folio
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-root 2018/04/19 14:35 upstream 87ef12027b9b 3642839c .config log report
ci-qemu-upstream-386 2022/08/01 17:03 upstream 3d7cb6b04c3f fef302b1 .config log report info kernel BUG in ntfs_read_folio
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/08/10 04:19 linux-next 6c8f479764eb c2a623d6 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-linux-next-kasan-gce-root 2022/08/07 23:19 linux-next cb71b93c2dc3 88e3a122 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-linux-next-kasan-gce-root 2022/08/04 13:22 linux-next cb71b93c2dc3 1c9013ac .config log report info kernel BUG in ntfs_read_folio
ci-upstream-linux-next-kasan-gce-root 2022/08/01 13:18 linux-next cb71b93c2dc3 fef302b1 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-linux-next-kasan-gce-root 2022/07/31 03:43 linux-next cb71b93c2dc3 fef302b1 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-linux-next-kasan-gce-root 2022/07/23 17:40 linux-next cb71b93c2dc3 22343af4 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-linux-next-kasan-gce-root 2022/07/23 03:26 linux-next cb71b93c2dc3 22343af4 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-linux-next-kasan-gce-root 2022/06/30 17:34 linux-next cb71b93c2dc3 1434eec0 .config log report info kernel BUG in ntfs_read_folio
ci-upstream-linux-next-kasan-gce-root 2022/06/27 04:34 linux-next 2f9cb3d3bd73 a371c43c .config log report info kernel BUG in ntfs_read_folio
ci-upstream-linux-next-kasan-gce-root 2020/12/26 20:44 linux-next d7a03a44a5e9 821e0b09 .config log report info