syzbot


kernel BUG in ntfs_read_folio

Status: upstream: reported C repro on 2023/03/10 09:54
Bug presence: origin:lts-only
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+21a0e44e538079fa4e88@syzkaller.appspotmail.com
First crash: 573d, last: 146d
Fix commit to backport (bisect log) :
tree: upstream
commit 7ffa8f3d30236e0ab897c30bdb01224ff1fe1c89
Author: Matthew Wilcox (Oracle) <willy@infradead.org>
Date: Mon Jan 15 07:20:25 2024 +0000

  fs: Remove NTFS classic

  
Bug presence (2)
Date Name Commit Repro Result
2024/05/10 linux-6.1.y (ToT) 909ba1f1b414 C [report] kernel BUG in ntfs_read_folio
2024/05/10 upstream (ToT) 448b3fe5a0ea C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG at fs/ntfs/aops.c:LINE! ntfs3 C done done 3893 177d 2358d 0/28 auto-obsoleted due to no activity on 2024/07/09 06:04
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/05/28 21:35 5h51m fix candidate upstream OK (1) job log

Sample crash report:
loop0: detected capacity change from 0 to 4096
------------[ cut here ]------------
kernel BUG at fs/ntfs/aops.c:186!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3546 Comm: syz-executor287 Not tainted 6.1.90-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline]
RIP: 0010:ntfs_read_folio+0x27aa/0x29d0 fs/ntfs/aops.c:436
Code: 0b 48 83 7c 24 48 00 0f 84 eb 00 00 00 e8 5e 04 cb fe e9 11 02 00 00 e8 54 04 cb fe 0f 0b e8 4d 04 cb fe 0f 0b e8 46 04 cb fe <0f> 0b 48 8b 3c 24 be 08 00 00 00 e8 06 7d 22 ff 48 b8 00 00 00 00
RSP: 0018:ffffc90003a1f5e0 EFLAGS: 00010293
RAX: ffffffff82bf890a RBX: 0000000000000000 RCX: ffff88807c59d940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90003a1f7b0 R08: ffffffff82bf6ea5 R09: ffffed100e41300b
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001bc0e80
R13: 1ffffd40003781d0 R14: ffff888072098320 R15: ffff888072098088
FS:  0000555555ad9380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcbe3fb000 CR3: 000000007969f000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 filemap_read_folio+0x199/0x780 mm/filemap.c:2461
 do_read_cache_folio+0x2ee/0x810 mm/filemap.c:3598
 do_read_cache_page+0x32/0x220 mm/filemap.c:3640
 read_mapping_page include/linux/pagemap.h:791 [inline]
 ntfs_map_page fs/ntfs/aops.h:75 [inline]
 map_mft_record_page fs/ntfs/mft.c:73 [inline]
 map_mft_record+0x1c9/0x630 fs/ntfs/mft.c:156
 ntfs_read_locked_inode+0x199/0x49c0 fs/ntfs/inode.c:550
 ntfs_read_inode_mount+0xda2/0x2660 fs/ntfs/inode.c:2098
 ntfs_fill_super+0x1880/0x2bd0 fs/ntfs/super.c:2855
 mount_bdev+0x2c9/0x3f0 fs/super.c:1432
 legacy_get_tree+0xeb/0x180 fs/fs_context.c:632
 vfs_get_tree+0x88/0x270 fs/super.c:1562
 do_new_mount+0x2ba/0xb40 fs/namespace.c:3051
 do_mount fs/namespace.c:3394 [inline]
 __do_sys_mount fs/namespace.c:3602 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3579
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f1cf8aec8ba
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcbe3fa578 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffcbe3fa590 RCX: 00007f1cf8aec8ba
RDX: 000000002001f1c0 RSI: 000000002001f200 RDI: 00007ffcbe3fa590
RBP: 0000000000000004 R08: 00007ffcbe3fa5d0 R09: 000000000001f1c5
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000000
R13: 00007ffcbe3fa5d0 R14: 0000000000000003 R15: 0000000000200000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ntfs_read_block fs/ntfs/aops.c:186 [inline]
RIP: 0010:ntfs_read_folio+0x27aa/0x29d0 fs/ntfs/aops.c:436
Code: 0b 48 83 7c 24 48 00 0f 84 eb 00 00 00 e8 5e 04 cb fe e9 11 02 00 00 e8 54 04 cb fe 0f 0b e8 4d 04 cb fe 0f 0b e8 46 04 cb fe <0f> 0b 48 8b 3c 24 be 08 00 00 00 e8 06 7d 22 ff 48 b8 00 00 00 00
RSP: 0018:ffffc90003a1f5e0 EFLAGS: 00010293
RAX: ffffffff82bf890a RBX: 0000000000000000 RCX: ffff88807c59d940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90003a1f7b0 R08: ffffffff82bf6ea5 R09: ffffed100e41300b
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001bc0e80
R13: 1ffffd40003781d0 R14: ffff888072098320 R15: ffff888072098088
FS:  0000555555ad9380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005609699b6bc0 CR3: 000000007969f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (297):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/09 23:57 linux-6.1.y 909ba1f1b414 05079661 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in ntfs_read_folio
2024/04/15 09:31 linux-6.1.y cd5d98c0556c c8349e48 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/04/15 01:59 linux-6.1.y cd5d98c0556c c8349e48 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/01/21 08:19 linux-6.1.y 8fd7f4462453 9bd8dcda .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/01/13 00:18 linux-6.1.y 7c58bfa711cb 551587c1 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2023/11/29 11:23 linux-6.1.y 6ac30d748bb0 1adfb6f6 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2023/09/14 13:00 linux-6.1.y 09045dae0d90 0b6a67ac .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2023/05/07 08:28 linux-6.1.y ca48fc16c493 90c93c40 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2023/06/04 23:46 linux-6.1.y d2869ace6eeb a4ae4f42 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in ntfs_read_folio
2023/06/04 19:35 linux-6.1.y d2869ace6eeb a4ae4f42 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in ntfs_read_folio
2023/05/07 06:21 linux-6.1.y ca48fc16c493 90c93c40 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/03/22 16:11 linux-6.1.y d7543167affd 4b6cdce6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ntfs_read_folio
2024/03/22 00:21 linux-6.1.y d7543167affd 7a239ce7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ntfs_read_folio
2024/03/17 22:51 linux-6.1.y d7543167affd d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ntfs_read_folio
2024/03/08 17:21 linux-6.1.y 61adba85cc40 8e75c913 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ntfs_read_folio
2024/03/07 17:44 linux-6.1.y 61adba85cc40 2b789849 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ntfs_read_folio
2024/02/26 23:37 linux-6.1.y 81e1dc2f7001 da36a36b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ntfs_read_folio
2024/01/29 08:13 linux-6.1.y 883d1a956208 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ntfs_read_folio
2024/01/27 23:15 linux-6.1.y 883d1a956208 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in ntfs_read_folio
2024/04/02 05:57 linux-6.1.y e5cd595e23c1 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/04/01 12:40 linux-6.1.y e5cd595e23c1 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/03/31 02:03 linux-6.1.y e5cd595e23c1 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/03/21 11:12 linux-6.1.y d7543167affd 6753db5c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/03/15 17:53 linux-6.1.y 61adba85cc40 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/03/10 21:49 linux-6.1.y 61adba85cc40 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/03/08 04:24 linux-6.1.y 61adba85cc40 cf82cde1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/03/07 16:14 linux-6.1.y 61adba85cc40 2b789849 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/03/05 15:20 linux-6.1.y a3eb3a74aa8c f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/03/04 14:10 linux-6.1.y a3eb3a74aa8c 3717835d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/03/01 12:14 linux-6.1.y 81e1dc2f7001 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/29 08:11 linux-6.1.y 81e1dc2f7001 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/29 02:57 linux-6.1.y 81e1dc2f7001 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/28 13:53 linux-6.1.y 81e1dc2f7001 55d6f11d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/27 21:33 linux-6.1.y 81e1dc2f7001 d367cbe5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/27 19:17 linux-6.1.y 81e1dc2f7001 d367cbe5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/27 05:10 linux-6.1.y 81e1dc2f7001 05e69c83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/26 22:23 linux-6.1.y 81e1dc2f7001 da36a36b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/25 20:37 linux-6.1.y 81e1dc2f7001 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/25 16:24 linux-6.1.y 81e1dc2f7001 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/22 19:04 linux-6.1.y 8b4118fabd6e 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/21 20:46 linux-6.1.y 8b4118fabd6e 345111b5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/20 16:37 linux-6.1.y 8b4118fabd6e 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/19 15:13 linux-6.1.y 8b4118fabd6e 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/18 09:20 linux-6.1.y 8b4118fabd6e 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/16 07:12 linux-6.1.y f1bb70486c9c 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/14 18:04 linux-6.1.y f1bb70486c9c d9b1cdd5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/14 06:10 linux-6.1.y f1bb70486c9c d902085f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/10 09:52 linux-6.1.y f1bb70486c9c 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/08 08:11 linux-6.1.y f1bb70486c9c 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/07 22:19 linux-6.1.y f1bb70486c9c 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/06 00:39 linux-6.1.y f1bb70486c9c 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/05 15:06 linux-6.1.y e5c3b988b827 e23e8c20 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/01 13:19 linux-6.1.y e5c3b988b827 81024119 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/02/01 01:41 linux-6.1.y e5c3b988b827 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/01/30 07:47 linux-6.1.y 883d1a956208 991a98f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/01/29 11:09 linux-6.1.y 883d1a956208 991a98f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2024/01/27 03:28 linux-6.1.y 883d1a956208 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
2023/03/10 09:54 linux-6.1.y 8a923980a190 5205ef30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in ntfs_read_folio
* Struck through repros no longer work on HEAD.