EXT4-fs (loop2): mounted filesystem without journal. Opts: nogrpid,min_batch_time=0x0000000000000000,debug_want_extra_isize=0x0000000000000068,nobarrier,nodiscard,quota,,errors=continue ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1339/0x36c0 fs/ext4/xattr.c:1740 Read of size 18446744073709551540 at addr ffff888116bd6070 by task syz.2.16/476 CPU: 0 PID: 476 Comm: syz.2.16 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x169/0x1d8 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+0xe2/0x130 mm/kasan/report.c:452 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x280/0x290 mm/kasan/generic.c:189 memmove+0x2d/0x70 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0x1339/0x36c0 fs/ext4/xattr.c:1740 ext4_xattr_block_set+0x92f/0x2a50 fs/ext4/xattr.c:1997 ext4_xattr_set_handle+0xba5/0x12a0 fs/ext4/xattr.c:2403 ext4_xattr_set+0x1ec/0x320 fs/ext4/xattr.c:2513 ext4_xattr_trusted_set+0x3b/0x50 fs/ext4/xattr_trusted.c:37 __vfs_setxattr+0x42a/0x480 fs/xattr.c:177 __vfs_setxattr_noperm+0x11e/0x4e0 fs/xattr.c:208 __vfs_setxattr_locked+0x203/0x220 fs/xattr.c:266 vfs_setxattr+0x8d/0x1c0 fs/xattr.c:283 setxattr+0x1a9/0x370 fs/xattr.c:548 path_setxattr+0x110/0x210 fs/xattr.c:567 __do_sys_lsetxattr fs/xattr.c:589 [inline] __se_sys_lsetxattr fs/xattr.c:585 [inline] __x64_sys_lsetxattr+0xc2/0xe0 fs/xattr.c:585 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f51defa3169 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f51dea15038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007f51df1bbfa0 RCX: 00007f51defa3169 RDX: 0000200000000040 RSI: 00002000000000c0 RDI: 0000200000000100 RBP: 00007f51df024990 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fe37 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f51df1bbfa0 R15: 00007ffe3685f448 Allocated by task 0: (stack is not available) The buggy address belongs to the object at ffff888116bd6000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 112 bytes inside of 1024-byte region [ffff888116bd6000, ffff888116bd6400) The buggy address belongs to the page: page:ffffea00045af400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x116bd0 head:ffffea00045af400 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100042f00 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 463, ts 47169965046, free_ts 47160954404 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x179/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x2235/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x268/0x5f0 mm/page_alloc.c:5370 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2a6/0x450 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] __kmalloc+0x201/0x330 mm/slub.c:4034 __kmalloc_node include/linux/slab.h:418 [inline] kmalloc_node include/linux/slab.h:575 [inline] kvmalloc_node+0x88/0x130 mm/util.c:612 kvmalloc include/linux/mm.h:833 [inline] xt_alloc_table_info+0x3b/0xa0 net/netfilter/x_tables.c:1172 do_replace net/ipv6/netfilter/ip6_tables.c:1145 [inline] do_ip6t_set_ctl+0x86a/0xcf0 net/ipv6/netfilter/ip6_tables.c:1646 nf_setsockopt+0x272/0x2a0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x2551/0x3860 net/ipv6/ipv6_sockglue.c:1014 tcp_setsockopt+0x1f8/0x1c30 net/ipv4/tcp.c:3491 sock_common_setsockopt+0xa0/0xb0 net/core/sock.c:3318 __sys_setsockopt+0x2ed/0x460 net/socket.c:2146 __do_sys_setsockopt net/socket.c:2157 [inline] __se_sys_setsockopt net/socket.c:2154 [inline] __x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2154 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_pages_ok+0x7fc/0x820 mm/page_alloc.c:1629 free_the_page mm/page_alloc.c:5431 [inline] __free_pages+0xdd/0x380 mm/page_alloc.c:5440 __free_slab+0xcf/0x190 mm/slub.c:1899 free_slab mm/slub.c:1914 [inline] discard_slab mm/slub.c:1920 [inline] unfreeze_partials+0x15f/0x190 mm/slub.c:2415 put_cpu_partial+0xc1/0x180 mm/slub.c:2451 __slab_free+0x2c9/0x3a0 mm/slub.c:3100 do_slab_free mm/slub.c:3196 [inline] ___cache_free+0x111/0x130 mm/slub.c:3215 qlink_free+0x50/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14a/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xf0 mm/kasan/common.c:440 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580 slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] __kmalloc+0x183/0x330 mm/slub.c:4034 kmalloc include/linux/slab.h:557 [inline] kzalloc include/linux/slab.h:664 [inline] fib_create_info+0x8f0/0x1fc0 net/ipv4/fib_semantics.c:1479 fib_table_insert+0xc5/0x1bb0 net/ipv4/fib_trie.c:1170 fib_magic net/ipv4/fib_frontend.c:1107 [inline] fib_add_ifaddr+0x9ba/0xed0 net/ipv4/fib_frontend.c:1151 Memory state around the buggy address: ffff888116bd5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888116bd5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888116bd6000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888116bd6080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888116bd6100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================