EXT4-fs (loop4): mounted filesystem without journal. Quota mode: none. ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x965/0x1e90 fs/ext4/xattr.c:1729 Read of size 18446744073709551588 at addr ffff88807e966040 by task syz.4.622/6379 CPU: 1 PID: 6379 Comm: syz.4.622 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x188/0x24e 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+0x235/0x290 mm/kasan/generic.c:189 memmove+0x25/0x60 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0x965/0x1e90 fs/ext4/xattr.c:1729 ext4_xattr_block_set+0xae4/0x32b0 fs/ext4/xattr.c:1976 ext4_xattr_set_handle+0x1338/0x1570 fs/ext4/xattr.c:2398 ext4_xattr_set+0x242/0x320 fs/ext4/xattr.c:2500 __vfs_setxattr+0x3e0/0x420 fs/xattr.c:182 __vfs_setxattr_noperm+0x129/0x5e0 fs/xattr.c:216 vfs_setxattr+0x167/0x2e0 fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x346/0x360 fs/xattr.c:617 path_setxattr+0x147/0x290 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:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f9a7a39aeb9 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:00007f9a7b265028 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007f9a7a615fa0 RCX: 00007f9a7a39aeb9 RDX: 0000200000000000 RSI: 0000200000000180 RDI: 00002000000001c0 RBP: 00007f9a7a408c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000361 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9a7a616038 R14: 00007f9a7a615fa0 R15: 00007ffdda764c98 Allocated by task 6379: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:384 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+0x9e6/0x32b0 fs/ext4/xattr.c:1924 ext4_xattr_set_handle+0x1338/0x1570 fs/ext4/xattr.c:2398 ext4_xattr_set+0x242/0x320 fs/ext4/xattr.c:2500 __vfs_setxattr+0x3e0/0x420 fs/xattr.c:182 __vfs_setxattr_noperm+0x129/0x5e0 fs/xattr.c:216 vfs_setxattr+0x167/0x2e0 fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x346/0x360 fs/xattr.c:617 path_setxattr+0x147/0x290 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:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 call_rcu+0x14f/0x990 kernel/rcu/tree.c:2849 sctp_association_free+0x69d/0x7e0 net/sctp/associola.c:382 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:944 [inline] sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1331 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline] sctp_do_sm+0x3725/0x55f0 net/sctp/sm_sideeffect.c:1170 sctp_primitive_ABORT+0x94/0xc0 net/sctp/primitive.c:104 sctp_close+0x2d1/0x910 net/sctp/socket.c:1525 inet_release+0x139/0x180 net/ipv4/af_inet.c:430 __sock_release net/socket.c:654 [inline] sock_close+0xd5/0x240 net/socket.c:1399 __fput+0x22c/0x920 fs/file_table.c:320 task_work_run+0x1d0/0x260 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88807e966000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 64 bytes inside of 1024-byte region [ffff88807e966000, ffff88807e966400) The buggy address belongs to the physical page: page:ffffea0001fa5800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7e960 head:ffffea0001fa5800 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 dead000000000100 dead000000000122 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 4127, tgid 4127 (dhcpcd-run-hook), ts 49410213905, free_ts 49368872400 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+0x1a1e/0x1ab0 mm/page_alloc.c:4328 __alloc_pages+0x1ec/0x4f0 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/0x1240 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 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc+0xa0/0x240 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] load_elf_phdrs+0x132/0x230 fs/binfmt_elf.c:507 load_elf_binary+0x938/0x2800 fs/binfmt_elf.c:987 search_binary_handler fs/exec.c:1764 [inline] exec_binprm fs/exec.c:1805 [inline] bprm_execve+0xaea/0x17e0 fs/exec.c:1874 do_execveat_common+0x51b/0x6c0 fs/exec.c:1979 do_execve fs/exec.c:2053 [inline] __do_sys_execve fs/exec.c:2129 [inline] __se_sys_execve fs/exec.c:2124 [inline] __x64_sys_execve+0x8e/0xa0 fs/exec.c:2124 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 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_slab mm/slub.c:2036 [inline] discard_slab mm/slub.c:2042 [inline] __unfreeze_partials+0x1a5/0x200 mm/slub.c:2591 put_cpu_partial+0x17c/0x250 mm/slub.c:2667 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:306 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc+0x123/0x2f0 mm/slub.c:3383 mt_alloc_one lib/maple_tree.c:154 [inline] mas_alloc_nodes+0x2ec/0x890 lib/maple_tree.c:1279 mas_node_count_gfp lib/maple_tree.c:1361 [inline] mas_preallocate+0x161/0x3c0 lib/maple_tree.c:5809 __vma_adjust+0x30d/0x1cd0 mm/mmap.c:724 vma_adjust include/linux/mm.h:2810 [inline] shift_arg_pages fs/exec.c:705 [inline] setup_arg_pages+0x81f/0xbe0 fs/exec.c:835 load_elf_binary+0xb9a/0x2800 fs/binfmt_elf.c:1046 search_binary_handler fs/exec.c:1764 [inline] exec_binprm fs/exec.c:1805 [inline] bprm_execve+0xaea/0x17e0 fs/exec.c:1874 do_execveat_common+0x51b/0x6c0 fs/exec.c:1979 Memory state around the buggy address: ffff88807e965f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807e965f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88807e966000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88807e966080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807e966100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================