================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1159/0x3860 fs/ext4/xattr.c:1731 Read of size 18446744073709551600 at addr ffff888111cee2b8 by task syz.2.20/398 CPU: 0 PID: 398 Comm: syz.2.20 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0x100/0x140 mm/kasan/report.c:452 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x249/0x2a0 mm/kasan/generic.c:189 memmove+0x2d/0x70 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0x1159/0x3860 fs/ext4/xattr.c:1731 ext4_xattr_ibody_set+0x114/0x330 fs/ext4/xattr.c:2233 ext4_destroy_inline_data_nolock+0x20f/0x5e0 fs/ext4/inline.c:464 ext4_convert_inline_data_nolock+0x3df/0xcc0 fs/ext4/inline.c:1266 ext4_convert_inline_data+0x470/0x5b0 fs/ext4/inline.c:2083 ext4_setattr+0xdf4/0x1980 fs/ext4/inode.c:5624 notify_change+0xab5/0xe40 fs/attr.c:410 do_truncate+0x1a3/0x240 fs/open.c:65 vfs_truncate+0x235/0x2d0 fs/open.c:111 do_sys_truncate+0xf2/0x1c0 fs/open.c:134 __do_sys_truncate fs/open.c:146 [inline] __se_sys_truncate fs/open.c:144 [inline] __x64_sys_truncate+0x5b/0x70 fs/open.c:144 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f6918d97159 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:00007f69177f0028 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007f691901efa0 RCX: 00007f6918d97159 RDX: 0000000000000000 RSI: 0000000000008da6 RDI: 0000200000000940 RBP: 00007f6918e2e024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f691901f038 R14: 00007f691901efa0 R15: 00007ffd613ec7c8 The buggy address belongs to the page: page:ffffea0004473b80 refcount:3 mapcount:1 mapping:ffff88810919e050 index:0x2 pfn:0x111cee aops:def_blk_aops ino:0 flags: 0x400000000002203e(referenced|uptodate|dirty|lru|active|private|mappedtodisk) raw: 400000000002203e ffffea0004486588 ffff88810ebf3030 ffff88810919e050 raw: 0000000000000002 ffff8881093a4888 0000000300000000 ffff8881281e2000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8881281e2000 page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 398, ts 25163878224, free_ts 25080387741 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x176/0x190 mm/page_alloc.c:2462 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384 __alloc_pages include/linux/gfp.h:544 [inline] __alloc_pages_node include/linux/gfp.h:557 [inline] alloc_pages_node include/linux/gfp.h:571 [inline] alloc_pages include/linux/gfp.h:590 [inline] __page_cache_alloc include/linux/pagemap.h:290 [inline] page_cache_ra_unbounded+0x2d2/0x790 mm/readahead.c:226 do_page_cache_ra+0xf2/0x110 mm/readahead.c:277 do_sync_mmap_readahead mm/filemap.c:2668 [inline] filemap_fault+0x1132/0x2020 mm/filemap.c:2811 __do_fault mm/memory.c:4064 [inline] do_read_fault mm/memory.c:4408 [inline] do_fault mm/memory.c:4536 [inline] handle_pte_fault+0x2466/0x3910 mm/memory.c:4800 __handle_mm_fault mm/memory.c:4953 [inline] handle_mm_fault+0xf86/0x1720 mm/memory.c:5367 faultin_page mm/gup.c:902 [inline] __get_user_pages+0xbf8/0x1400 mm/gup.c:1121 populate_vma_page_range mm/gup.c:1454 [inline] __mm_populate+0x31c/0x420 mm/gup.c:1502 mm_populate include/linux/mm.h:2793 [inline] vm_mmap_pgoff+0x23b/0x350 mm/util.c:548 ksys_mmap_pgoff+0x16f/0x1e0 mm/mmap.c:1712 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:95 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline] __x64_sys_mmap+0xfa/0x110 arch/x86/kernel/sys_x86_64.c:86 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] free_pcp_prepare mm/page_alloc.c:1421 [inline] free_unref_page_prepare+0x2b7/0x2d0 mm/page_alloc.c:3336 free_unref_page mm/page_alloc.c:3391 [inline] free_the_page mm/page_alloc.c:5443 [inline] __free_pages+0x146/0x390 mm/page_alloc.c:5454 __vunmap+0x801/0x980 mm/vmalloc.c:2307 __vfree mm/vmalloc.c:2356 [inline] vfree+0x61/0x90 mm/vmalloc.c:2387 htable_put+0x5fb/0x650 net/netfilter/xt_hashlimit.c:434 hashlimit_mt_destroy+0x5c/0x70 net/netfilter/xt_hashlimit.c:991 cleanup_match net/ipv6/netfilter/ip6_tables.c:479 [inline] cleanup_entry+0x156/0x350 net/ipv6/netfilter/ip6_tables.c:663 translate_table+0x1e09/0x2020 net/ipv6/netfilter/ip6_tables.c:746 do_replace net/ipv6/netfilter/ip6_tables.c:1154 [inline] do_ip6t_set_ctl+0x960/0xd80 net/ipv6/netfilter/ip6_tables.c:1643 nf_setsockopt+0x272/0x2a0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x2568/0x36f0 net/ipv6/ipv6_sockglue.c:1014 rawv6_setsockopt+0x29e/0x660 net/ipv6/raw.c:1057 sock_common_setsockopt+0xa0/0xb0 net/core/sock.c:3326 __sys_setsockopt+0x2fa/0x480 net/socket.c:2147 __do_sys_setsockopt net/socket.c:2158 [inline] __se_sys_setsockopt net/socket.c:2155 [inline] __x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2155 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 Memory state around the buggy address: ffff888111cee180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888111cee200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888111cee280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888111cee300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888111cee380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================