================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x13ba/0x3940 fs/ext4/xattr.c:1736 Read of size 18446744073709551540 at addr ffff88811c724870 by task syz.1.55/622 CPU: 1 PID: 622 Comm: syz.1.55 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0xf1/0x140 mm/kasan/report.c:444 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+0x13ba/0x3940 fs/ext4/xattr.c:1736 ext4_xattr_block_set+0x977/0x2d10 fs/ext4/xattr.c:1993 ext4_xattr_set_handle+0xba0/0x12b0 fs/ext4/xattr.c:2398 ext4_xattr_set+0x242/0x320 fs/ext4/xattr.c:2508 ext4_xattr_trusted_set+0x3c/0x50 fs/ext4/xattr_trusted.c:38 __vfs_setxattr+0x3e1/0x430 fs/xattr.c:182 __vfs_setxattr_noperm+0x12a/0x5e0 fs/xattr.c:216 __vfs_setxattr_locked+0x212/0x230 fs/xattr.c:277 vfs_setxattr+0x167/0x2e0 fs/xattr.c:303 do_setxattr fs/xattr.c:588 [inline] setxattr+0x36c/0x390 fs/xattr.c:611 path_setxattr+0x147/0x290 fs/xattr.c:630 __do_sys_lsetxattr fs/xattr.c:653 [inline] __se_sys_lsetxattr fs/xattr.c:649 [inline] __x64_sys_lsetxattr+0xc2/0xe0 fs/xattr.c:649 x64_sys_call+0x8cc/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:190 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:0x7ff8da40c629 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:00007ff8d8e46028 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007ff8da686090 RCX: 00007ff8da40c629 RDX: 0000200000000080 RSI: 00002000000000c0 RDI: 0000200000000100 RBP: 00007ff8da4a2b39 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fe37 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff8da686128 R14: 00007ff8da686090 R15: 00007ffeabe9e3e8 Allocated by task 622: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:433 [inline] ____kasan_kmalloc mm/kasan/common.c:512 [inline] __kasan_kmalloc+0xda/0x110 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] __kmalloc_track_caller+0x13c/0x2c0 mm/slub.c:4959 kmemdup+0x26/0x60 mm/util.c:132 ext4_xattr_block_set+0x886/0x2d10 fs/ext4/xattr.c:1941 ext4_xattr_set_handle+0xba0/0x12b0 fs/ext4/xattr.c:2398 ext4_xattr_set+0x242/0x320 fs/ext4/xattr.c:2508 ext4_xattr_trusted_set+0x3c/0x50 fs/ext4/xattr_trusted.c:38 __vfs_setxattr+0x3e1/0x430 fs/xattr.c:182 __vfs_setxattr_noperm+0x12a/0x5e0 fs/xattr.c:216 __vfs_setxattr_locked+0x212/0x230 fs/xattr.c:277 vfs_setxattr+0x167/0x2e0 fs/xattr.c:303 do_setxattr fs/xattr.c:588 [inline] setxattr+0x36c/0x390 fs/xattr.c:611 path_setxattr+0x147/0x290 fs/xattr.c:630 __do_sys_lsetxattr fs/xattr.c:653 [inline] __se_sys_lsetxattr fs/xattr.c:649 [inline] __x64_sys_lsetxattr+0xc2/0xe0 fs/xattr.c:649 x64_sys_call+0x8cc/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:190 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 The buggy address belongs to the object at ffff88811c724800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 112 bytes inside of 1024-byte region [ffff88811c724800, ffff88811c724c00) The buggy address belongs to the page: page:ffffea000471c800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11c720 head:ffffea000471c800 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 ffffea000470fa00 0000000500000005 ffff888100043080 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 196, ts 8756709657, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2605 prep_new_page+0x1c/0x110 mm/page_alloc.c:2611 get_page_from_freelist+0x2d3a/0x2dc0 mm/page_alloc.c:4485 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5808 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa1/0x4d0 mm/slub.c:2000 ___slab_alloc+0x381/0x810 mm/slub.c:3033 __slab_alloc+0x49/0x90 mm/slub.c:3120 slab_alloc_node mm/slub.c:3211 [inline] slab_alloc mm/slub.c:3255 [inline] kmem_cache_alloc_trace+0x146/0x270 mm/slub.c:3272 kmalloc include/linux/slab.h:619 [inline] kzalloc include/linux/slab.h:750 [inline] bpf_prog_alloc_no_stats+0x9a/0x2d0 kernel/bpf/core.c:94 bpf_prog_alloc+0x1f/0x1e0 kernel/bpf/core.c:124 __get_filter+0x108/0x410 net/core/filter.c:1504 sk_attach_filter+0x23/0x140 net/core/filter.c:1539 sock_setsockopt+0x1538/0x2490 net/core/sock.c:1170 __sys_setsockopt+0x261/0x470 net/socket.c:2198 __do_sys_setsockopt net/socket.c:2213 [inline] __se_sys_setsockopt net/socket.c:2210 [inline] __x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2210 x64_sys_call+0x982/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:55 page_owner free stack trace missing Memory state around the buggy address: ffff88811c724700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811c724780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88811c724800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88811c724880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811c724900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================