loop0: detected capacity change from 0 to 4096 ntfs3: loop0: Different NTFS' sector size (1024) and media sector size (512) loop0: detected capacity change from 4096 to 0 ================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_set_ea+0x1394/0x1660 fs/ntfs3/xattr.c:411 Write of size 4 at addr ffff8880246c4a1c by task syz-executor521/4251 CPU: 1 PID: 4251 Comm: syz-executor521 Not tainted 6.1.117-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15f/0x4f0 mm/kasan/report.c:395 kasan_report+0x136/0x160 mm/kasan/report.c:495 ntfs_set_ea+0x1394/0x1660 fs/ntfs3/xattr.c:411 ntfs_save_wsl_perm+0x139/0x490 fs/ntfs3/xattr.c:976 ntfs3_setattr+0x961/0xb70 fs/ntfs3/file.c:816 notify_change+0xce3/0xfc0 fs/attr.c:499 chmod_common+0x2a7/0x4b0 fs/open.c:606 do_fchmodat fs/open.c:645 [inline] __do_sys_fchmodat fs/open.c:658 [inline] __se_sys_fchmodat fs/open.c:655 [inline] __x64_sys_fchmodat+0x117/0x1a0 fs/open.c:655 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:0x7ff43de64b79 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fffb9026678 EFLAGS: 00000246 ORIG_RAX: 000000000000010c RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007ff43de64b79 RDX: 0000000000000141 RSI: 0000000020000200 RDI: 00000000ffffff9c RBP: 00007ff43def7610 R08: 00007fffb9026848 R09: 00007fffb9026848 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fffb9026838 R14: 0000000000000001 R15: 0000000000000001 Allocated by task 3975: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x65/0x70 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x52/0x3a0 mm/slab.h:737 slab_alloc_node mm/slub.c:3398 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x10c/0x2d0 mm/slub.c:3422 vm_area_dup+0x23/0x1b0 kernel/fork.c:467 __split_vma+0xcc/0x530 mm/mmap.c:2352 do_mas_align_munmap+0x953/0x15f0 mm/mmap.c:2491 do_mas_munmap+0x246/0x2b0 mm/mmap.c:2640 mmap_region+0x8e6/0x1fa0 mm/mmap.c:2688 do_mmap+0x8c5/0xf60 mm/mmap.c:1425 vm_mmap_pgoff+0x1ca/0x2d0 mm/util.c:520 ksys_mmap_pgoff+0x4f5/0x6d0 mm/mmap.c:1471 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 Freed by task 3975: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1724 [inline] slab_free_freelist_hook mm/slub.c:1750 [inline] slab_free mm/slub.c:3661 [inline] kmem_cache_free+0x292/0x510 mm/slub.c:3683 remove_vma mm/mmap.c:144 [inline] remove_mt mm/mmap.c:2308 [inline] do_mas_align_munmap+0x1290/0x15f0 mm/mmap.c:2585 do_mas_munmap+0x246/0x2b0 mm/mmap.c:2640 mmap_region+0x8e6/0x1fa0 mm/mmap.c:2688 do_mmap+0x8c5/0xf60 mm/mmap.c:1425 vm_mmap_pgoff+0x1ca/0x2d0 mm/util.c:520 ksys_mmap_pgoff+0x4f5/0x6d0 mm/mmap.c:1471 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 The buggy address belongs to the object at ffff8880246c4948 which belongs to the cache vm_area_struct of size 152 The buggy address is located 60 bytes to the right of 152-byte region [ffff8880246c4948, ffff8880246c49e0) The buggy address belongs to the physical page: page:ffffea000091b100 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x246c4 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000122 ffff888140008b40 raw: 0000000000000000 0000000000120012 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 3975, tgid 3975 (dhcpcd-run-hook), ts 47486671894, free_ts 47409212743 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2517 prep_new_page mm/page_alloc.c:2524 [inline] get_page_from_freelist+0x3731/0x38d0 mm/page_alloc.c:4313 __alloc_pages+0x28d/0x770 mm/page_alloc.c:5589 alloc_slab_page+0x6a/0x150 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x84/0x2d0 mm/slub.c:1992 ___slab_alloc+0xc20/0x1270 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x1a5/0x2d0 mm/slub.c:3422 vm_area_dup+0x23/0x1b0 kernel/fork.c:467 __split_vma+0xcc/0x530 mm/mmap.c:2352 do_mas_align_munmap+0x953/0x15f0 mm/mmap.c:2491 do_mas_munmap+0x246/0x2b0 mm/mmap.c:2640 mmap_region+0x8e6/0x1fa0 mm/mmap.c:2688 do_mmap+0x8c5/0xf60 mm/mmap.c:1425 vm_mmap_pgoff+0x1ca/0x2d0 mm/util.c:520 ksys_mmap_pgoff+0x4f5/0x6d0 mm/mmap.c:1471 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1444 [inline] free_pcp_prepare mm/page_alloc.c:1494 [inline] free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3369 free_unref_page_list+0x663/0x900 mm/page_alloc.c:3510 release_pages+0x2836/0x2b40 mm/swap.c:1055 tlb_batch_pages_flush mm/mmu_gather.c:59 [inline] tlb_flush_mmu_free mm/mmu_gather.c:254 [inline] tlb_flush_mmu+0xfc/0x210 mm/mmu_gather.c:261 tlb_finish_mmu+0xce/0x1f0 mm/mmu_gather.c:361 exit_mmap+0x3c3/0x9f0 mm/mmap.c:3239 __mmput+0x115/0x3c0 kernel/fork.c:1200 exec_mmap+0x4fa/0x5b0 fs/exec.c:1040 begin_new_exec+0xaf9/0x1dd0 fs/exec.c:1299 load_elf_binary+0x955/0x2720 fs/binfmt_elf.c:1002 search_binary_handler fs/exec.c:1741 [inline] exec_binprm fs/exec.c:1782 [inline] bprm_execve+0x96a/0x18a0 fs/exec.c:1851 do_execveat_common+0x580/0x720 fs/exec.c:1956 do_execve fs/exec.c:2030 [inline] __do_sys_execve fs/exec.c:2106 [inline] __se_sys_execve fs/exec.c:2101 [inline] __x64_sys_execve+0x8e/0xa0 fs/exec.c:2101 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 Memory state around the buggy address: ffff8880246c4900: fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb ffff8880246c4980: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc >ffff8880246c4a00: fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880246c4a80: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc fa ffff8880246c4b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================