syzbot


KASAN: wild-memory-access Write in ntfs_evict_inode

Status: upstream: reported on 2025/05/09 03:41
Reported-by: syzbot+c37e633b4cea959be398@syzkaller.appspotmail.com
First crash: 62d, last: 13h01m
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 KASAN: stack-out-of-bounds Write in ntfs_evict_inode 23 1 195d 195d 0/3 auto-obsoleted due to no activity on 2025/04/06 12:31

Sample crash report:
loop2: detected capacity change from 0 to 4096
ntfs3: loop2: Different NTFS' sector size (1024) and media sector size (512)
==================================================================
BUG: KASAN: wild-memory-access in instrument_atomic_read_write include/linux/instrumented.h:101 [inline]
BUG: KASAN: wild-memory-access in atomic_add_unless include/linux/atomic/atomic-instrumented.h:570 [inline]
BUG: KASAN: wild-memory-access in page_ref_add_unless include/linux/page_ref.h:166 [inline]
BUG: KASAN: wild-memory-access in __page_cache_add_speculative include/linux/pagemap.h:238 [inline]
BUG: KASAN: wild-memory-access in page_cache_get_speculative include/linux/pagemap.h:254 [inline]
BUG: KASAN: wild-memory-access in find_get_entry mm/filemap.c:1992 [inline]
BUG: KASAN: wild-memory-access in find_lock_entries+0x1e1/0xd50 mm/filemap.c:2092
Write of size 4 at addr ffea000158228034 by task syz.2.737/6428

CPU: 1 PID: 6428 Comm: syz.2.737 Not tainted 5.15.186-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106
 __kasan_report mm/kasan/report.c:438 [inline]
 kasan_report+0xd5/0x130 mm/kasan/report.c:451
 check_region_inline mm/kasan/generic.c:-1 [inline]
 kasan_check_range+0x27b/0x290 mm/kasan/generic.c:189
 instrument_atomic_read_write include/linux/instrumented.h:101 [inline]
 atomic_add_unless include/linux/atomic/atomic-instrumented.h:570 [inline]
 page_ref_add_unless include/linux/page_ref.h:166 [inline]
 __page_cache_add_speculative include/linux/pagemap.h:238 [inline]
 page_cache_get_speculative include/linux/pagemap.h:254 [inline]
 find_get_entry mm/filemap.c:1992 [inline]
 find_lock_entries+0x1e1/0xd50 mm/filemap.c:2092
 truncate_inode_pages_range+0x17c/0xef0 mm/truncate.c:320
 ntfs_evict_inode+0x18/0xb0 fs/ntfs3/inode.c:1781
 evict+0x485/0x870 fs/inode.c:647
 ntfs_fill_super+0x355c/0x3c10 fs/ntfs3/super.c:1185
 get_tree_bdev+0x3f1/0x610 fs/super.c:1325
 vfs_get_tree+0x88/0x270 fs/super.c:1530
 do_new_mount+0x24a/0xa40 fs/namespace.c:3014
 do_mount fs/namespace.c:3357 [inline]
 __do_sys_mount fs/namespace.c:3565 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3542
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f254eaea0ca
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f254c94fe68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f254c94fef0 RCX: 00007f254eaea0ca
RDX: 000020000001f800 RSI: 000020000001f840 RDI: 00007f254c94feb0
RBP: 000020000001f800 R08: 00007f254c94fef0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000020000001f840
R13: 00007f254c94feb0 R14: 000000000001f7f9 R15: 00002000000001c0
 </TASK>
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/10 03:42 linux-5.15.y 3dea0e7f549e 956bd956 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: wild-memory-access Write in ntfs_evict_inode
2025/07/04 18:56 linux-5.15.y 3dea0e7f549e d869b261 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: wild-memory-access Write in ntfs_evict_inode
2025/06/23 23:51 linux-5.15.y 1c700860e8bc e2f27c35 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: wild-memory-access Write in ntfs_evict_inode
2025/05/09 03:41 linux-5.15.y 16fdf2c7111b bb813bcc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: wild-memory-access Write in ntfs_evict_inode
* Struck through repros no longer work on HEAD.