================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_set_ea+0x110d/0x13b0 fs/ntfs3/xattr.c:411 Write of size 4 at addr ffff88807d7ffd90 by task syz.0.3459/17055 CPU: 1 PID: 17055 Comm: syz.0.3459 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 ntfs_set_ea+0x110d/0x13b0 fs/ntfs3/xattr.c:411 ntfs_setxattr+0x16b/0x840 fs/ntfs3/xattr.c:954 __vfs_setxattr+0x3e0/0x420 fs/xattr.c:182 __vfs_setxattr_noperm+0x129/0x5e0 fs/xattr.c:216 vfs_setxattr+0x167/0x2e0 fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x346/0x360 fs/xattr.c:617 path_setxattr+0x147/0x290 fs/xattr.c:636 __do_sys_lsetxattr fs/xattr.c:659 [inline] __se_sys_lsetxattr fs/xattr.c:655 [inline] __x64_sys_lsetxattr+0xb4/0xd0 fs/xattr.c:655 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f0e4c39c629 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0e4d24f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007f0e4c616090 RCX: 00007f0e4c39c629 RDX: 0000200000000000 RSI: 0000200000000080 RDI: 0000200000000300 RBP: 00007f0e4c432b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000009ab7 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0e4c616128 R14: 00007f0e4c616090 R15: 00007fff303e87b8 The buggy address belongs to the physical page: page:ffffea0001f5fc00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7d7f0 head:ffffea0001f5fc00 order:4 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010000(head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 4, migratetype Unmovable, gfp_mask 0x140d40(GFP_NOFS|__GFP_COMP|__GFP_ZERO|__GFP_HARDWALL), pid 17055, tgid 17039 (syz.0.3459), ts 734500165619, free_ts 734497345322 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2559 prep_new_page mm/page_alloc.c:2566 [inline] get_page_from_freelist+0x1a1e/0x1ab0 mm/page_alloc.c:4357 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5643 __alloc_pages_node include/linux/gfp.h:237 [inline] alloc_pages_node include/linux/gfp.h:260 [inline] __kmalloc_large_node+0x8c/0x1e0 mm/slab_common.c:1077 __do_kmalloc_node mm/slab_common.c:924 [inline] __kmalloc+0x110/0x240 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] ntfs_set_ea+0x533/0x13b0 fs/ntfs3/xattr.c:401 ntfs_setxattr+0x16b/0x840 fs/ntfs3/xattr.c:954 __vfs_setxattr+0x3e0/0x420 fs/xattr.c:182 __vfs_setxattr_noperm+0x129/0x5e0 fs/xattr.c:216 vfs_setxattr+0x167/0x2e0 fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x346/0x360 fs/xattr.c:617 path_setxattr+0x147/0x290 fs/xattr.c:636 __do_sys_lsetxattr fs/xattr.c:659 [inline] __se_sys_lsetxattr fs/xattr.c:655 [inline] __x64_sys_lsetxattr+0xb4/0xd0 fs/xattr.c:655 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1486 [inline] __free_pages_ok+0xb46/0xc40 mm/page_alloc.c:1742 free_large_kmalloc+0xfd/0x190 mm/slab_common.c:913 setxattr+0x351/0x360 fs/xattr.c:619 path_setxattr+0x147/0x290 fs/xattr.c:636 __do_sys_lsetxattr fs/xattr.c:659 [inline] __se_sys_lsetxattr fs/xattr.c:655 [inline] __x64_sys_lsetxattr+0xb4/0xd0 fs/xattr.c:655 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff88807d7ffc80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff88807d7ffd00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe >ffff88807d7ffd80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ^ ffff88807d7ffe00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff88807d7ffe80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ==================================================================