EXT4-fs warning (device loop0): ext4_expand_extra_isize_ea:2809: Unable to expand inode 15. Delete some EAs or run e2fsck. EXT4-fs (loop0): 1 truncate cleaned up EXT4-fs (loop0): mounted filesystem without journal. Quota mode: writeback. ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x909/0x1fa0 fs/ext4/xattr.c:1732 Read of size 18446744073709551572 at addr ffff8880560fe050 by task syz.0.33/4459 CPU: 1 PID: 4459 Comm: syz.0.33 Not tainted 6.1.131-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0x15f/0x4f0 mm/kasan/report.c:427 kasan_report+0x136/0x160 mm/kasan/report.c:531 kasan_check_range+0x27f/0x290 mm/kasan/generic.c:189 memmove+0x25/0x60 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0x909/0x1fa0 fs/ext4/xattr.c:1732 ext4_xattr_block_set+0x97e/0x3820 fs/ext4/xattr.c:1979 ext4_xattr_move_to_block fs/ext4/xattr.c:2616 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2691 [inline] ext4_expand_extra_isize_ea+0x10eb/0x1c40 fs/ext4/xattr.c:2783 __ext4_expand_extra_isize+0x302/0x400 fs/ext4/inode.c:5936 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5979 [inline] __ext4_mark_inode_dirty+0x54f/0x920 fs/ext4/inode.c:6057 ext4_dirty_inode+0xbf/0x100 fs/ext4/inode.c:6089 __mark_inode_dirty+0x331/0xf80 fs/fs-writeback.c:2433 mark_inode_dirty include/linux/fs.h:2546 [inline] ext4_setattr+0x755/0x1a00 fs/ext4/inode.c:5613 notify_change+0xce3/0xfc0 fs/attr.c:499 vfs_utimes+0x4b1/0x760 fs/utimes.c:65 do_utimes_path fs/utimes.c:98 [inline] do_utimes fs/utimes.c:144 [inline] __do_sys_utime fs/utimes.c:225 [inline] __se_sys_utime+0x1dd/0x2d0 fs/utimes.c:214 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fe86b98d169 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:00007fe86c74e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000084 RAX: ffffffffffffffda RBX: 00007fe86bba5fa0 RCX: 00007fe86b98d169 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000400000006a80 RBP: 00007fe86ba0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe86bba5fa0 R15: 00007ffd815fd438 Allocated by task 4459: 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+0x97/0xb0 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+0xb1/0x220 mm/slab_common.c:956 kmemdup+0x26/0x60 mm/util.c:129 _Z7kmemdupPKvU17pass_object_size0mj include/linux/fortify-string.h:585 [inline] ext4_xattr_block_set+0x7f4/0x3820 fs/ext4/xattr.c:1927 ext4_xattr_move_to_block fs/ext4/xattr.c:2616 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2691 [inline] ext4_expand_extra_isize_ea+0x10eb/0x1c40 fs/ext4/xattr.c:2783 __ext4_expand_extra_isize+0x302/0x400 fs/ext4/inode.c:5936 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5979 [inline] __ext4_mark_inode_dirty+0x54f/0x920 fs/ext4/inode.c:6057 ext4_dirty_inode+0xbf/0x100 fs/ext4/inode.c:6089 __mark_inode_dirty+0x331/0xf80 fs/fs-writeback.c:2433 mark_inode_dirty include/linux/fs.h:2546 [inline] ext4_setattr+0x755/0x1a00 fs/ext4/inode.c:5613 notify_change+0xce3/0xfc0 fs/attr.c:499 vfs_utimes+0x4b1/0x760 fs/utimes.c:65 do_utimes_path fs/utimes.c:98 [inline] do_utimes fs/utimes.c:144 [inline] __do_sys_utime fs/utimes.c:225 [inline] __se_sys_utime+0x1dd/0x2d0 fs/utimes.c:214 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff8880560fe000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 80 bytes inside of 1024-byte region [ffff8880560fe000, ffff8880560fe400) The buggy address belongs to the physical page: page:ffffea0001583e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x560f8 head:ffffea0001583e00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000001 ffff888017c41dc0 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 0x52a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 4296, tgid 4296 (kworker/1:3), ts 77739959889, free_ts 21240573872 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x3731/0x38d0 mm/page_alloc.c:4328 __alloc_pages+0x28d/0x770 mm/page_alloc.c:5606 alloc_slab_page+0x6a/0x150 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x84/0x2d0 mm/slub.c:1992 ___slab_alloc+0xc20/0x1270 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] __kmem_cache_alloc_node+0x19f/0x260 mm/slub.c:3437 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc+0xa1/0x230 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] neigh_alloc net/core/neighbour.c:494 [inline] ___neigh_create+0x6b7/0x24b0 net/core/neighbour.c:648 ip6_finish_output2+0x16ba/0x1700 net/ipv6/ip6_output.c:129 __ip6_finish_output net/ipv6/ip6_output.c:205 [inline] ip6_finish_output+0x6a0/0xa80 net/ipv6/ip6_output.c:216 dst_output include/net/dst.h:453 [inline] NF_HOOK include/linux/netfilter.h:302 [inline] ndisc_send_skb+0xbf6/0x15f0 net/ipv6/ndisc.c:513 addrconf_dad_completed+0x7fc/0xd30 net/ipv6/addrconf.c:4299 addrconf_dad_work+0xdbe/0x16e0 process_one_work+0x917/0x1260 kernel/workqueue.c:2292 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439 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+0x12a6/0x15b0 mm/page_alloc.c:3384 free_unref_page+0x33/0x3e0 mm/page_alloc.c:3479 free_contig_range+0x9a/0x150 mm/page_alloc.c:9566 destroy_args+0xfe/0x997 mm/debug_vm_pgtable.c:1031 debug_vm_pgtable+0x46d/0x4c2 mm/debug_vm_pgtable.c:1354 do_one_initcall+0x265/0x8f0 init/main.c:1298 do_initcall_level+0x157/0x207 init/main.c:1371 do_initcalls+0x49/0x86 init/main.c:1387 kernel_init_freeable+0x45c/0x60f init/main.c:1626 kernel_init+0x19/0x290 init/main.c:1514 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Memory state around the buggy address: ffff8880560fdf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880560fdf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880560fe000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff8880560fe080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880560fe100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================