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: 34d, last: 34d
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 167d 167d 0/3 auto-obsoleted due to no activity on 2025/04/06 12:31

Sample crash report:
loop0: detected capacity change from 0 to 4096
ntfs3: loop0: Different NTFS' sector size (2048) 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 ffea000158d98034 by task syz.0.431/5928

CPU: 1 PID: 5928 Comm: syz.0.431 Not tainted 5.15.181-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/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:3013
 do_mount fs/namespace.c:3356 [inline]
 __do_sys_mount fs/namespace.c:3564 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3541
 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:0x7fd469c2e10a
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:00007fd467a93e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fd467a93ef0 RCX: 00007fd469c2e10a
RDX: 000020000001f340 RSI: 000020000001f380 RDI: 00007fd467a93eb0
RBP: 000020000001f340 R08: 00007fd467a93ef0 R09: 0000000000008400
R10: 0000000000008400 R11: 0000000000000246 R12: 000020000001f380
R13: 00007fd467a93eb0 R14: 000000000001f350 R15: 00002000000006c0
 </TASK>
==================================================================

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