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: 48d, last: 2d23h
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 KASAN: stack-out-of-bounds Write in ntfs_evict_inode 1 181d 181d 0/3 auto-obsoleted due to no activity on 2025/04/06 12:31

Sample crash report:
ntfs3: loop1: 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 ffea000137154034 by task syz.1.959/6679

CPU: 0 PID: 6679 Comm: syz.1.959 Not tainted 5.15.185-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:3010
 do_mount fs/namespace.c:3353 [inline]
 __do_sys_mount fs/namespace.c:3561 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3538
 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:0x7ff86dace0ca
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:00007ff86b933e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ff86b933ef0 RCX: 00007ff86dace0ca
RDX: 00002000000002c0 RSI: 00002000000000c0 RDI: 00007ff86b933eb0
RBP: 00002000000002c0 R08: 00007ff86b933ef0 R09: 0000000000000082
R10: 0000000000000082 R11: 0000000000000246 R12: 00002000000000c0
R13: 00007ff86b933eb0 R14: 000000000001f856 R15: 00002000000001c0
 </TASK>
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.