loop3: detected capacity change from 0 to 1024 EXT4-fs (loop3): mounted filesystem without journal. Quota mode: none. ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x965/0x1e90 fs/ext4/xattr.c:1741 Read of size 18446744073709551588 at addr ffff888059530840 by task syz.3.297/6086 CPU: 0 PID: 6086 Comm: syz.3.297 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: dump_stack_lvl+0x168/0x22e 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 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x27b/0x290 mm/kasan/generic.c:189 memmove+0x25/0x60 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0x965/0x1e90 fs/ext4/xattr.c:1741 ext4_xattr_block_set+0xadf/0x32a0 fs/ext4/xattr.c:1988 ext4_xattr_set_handle+0x10c1/0x12b0 fs/ext4/xattr.c:2413 ext4_xattr_set+0x22a/0x320 fs/ext4/xattr.c:2515 __vfs_setxattr+0x3e0/0x420 fs/xattr.c:182 __vfs_setxattr_noperm+0x129/0x5e0 fs/xattr.c:216 vfs_setxattr+0x168/0x2f0 fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x2b2/0x2d0 fs/xattr.c:617 path_setxattr+0x142/0x280 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:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f5f6f58eba9 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:00007f5f704db038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007f5f6f7d5fa0 RCX: 00007f5f6f58eba9 RDX: 0000200000000800 RSI: 0000200000000180 RDI: 00002000000001c0 RBP: 00007f5f6f611e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000361 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5f6f7d6038 R14: 00007f5f6f7d5fa0 R15: 00007ffe0582a278 Allocated by task 6086: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc_node_track_caller+0xae/0x230 mm/slab_common.c:956 kmemdup+0x27/0x60 mm/util.c:129 kmemdup include/linux/fortify-string.h:585 [inline] ext4_xattr_block_set+0x9e1/0x32a0 fs/ext4/xattr.c:1936 ext4_xattr_set_handle+0x10c1/0x12b0 fs/ext4/xattr.c:2413 ext4_xattr_set+0x22a/0x320 fs/ext4/xattr.c:2515 __vfs_setxattr+0x3e0/0x420 fs/xattr.c:182 __vfs_setxattr_noperm+0x129/0x5e0 fs/xattr.c:216 vfs_setxattr+0x168/0x2f0 fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x2b2/0x2d0 fs/xattr.c:617 path_setxattr+0x142/0x280 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:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff888059530800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 64 bytes inside of 1024-byte region [ffff888059530800, ffff888059530c00) The buggy address belongs to the physical page: page:ffffea0001654c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x59530 head:ffffea0001654c00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0001a08e00 dead000000000002 ffff888017441dc0 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 4266, tgid 4266 (syz-executor), ts 56228191933, free_ts 12752972565 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614 alloc_slab_page+0x5d/0x160 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2c0 mm/slub.c:1997 ___slab_alloc+0xbc6/0x1230 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] __kmem_cache_alloc_node+0x1a0/0x260 mm/slub.c:3398 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1026 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] rxrpc_alloc_connection+0x73/0x420 net/rxrpc/conn_object.c:41 rxrpc_prealloc_service_connection+0x1f/0x600 net/rxrpc/conn_service.c:129 rxrpc_service_prealloc_one+0x2c5/0xff0 net/rxrpc/call_accept.c:86 rxrpc_kernel_charge_accept+0xd0/0x100 net/rxrpc/call_accept.c:490 afs_charge_preallocation+0x3a0/0x4f0 fs/afs/rxrpc.c:733 afs_open_socket+0x269/0x300 fs/afs/rxrpc.c:92 afs_net_init+0x7b8/0x990 fs/afs/main.c:126 ops_init+0x355/0x5f0 net/core/net_namespace.c:138 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 free_contig_range+0x9d/0x150 mm/page_alloc.c:9574 destroy_args+0x100/0xa31 mm/debug_vm_pgtable.c:1031 debug_vm_pgtable+0x32a/0x37e mm/debug_vm_pgtable.c:1359 do_one_initcall+0x214/0x7a0 init/main.c:1298 do_initcall_level+0x137/0x1e4 init/main.c:1371 do_initcalls+0x4b/0x8a init/main.c:1387 kernel_init_freeable+0x3fa/0x5ac init/main.c:1626 kernel_init+0x19/0x1b0 init/main.c:1514 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Memory state around the buggy address: ffff888059530700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888059530780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888059530800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888059530880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888059530900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================