EXT4-fs (loop2): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x8e0/0x1fa0 fs/ext4/xattr.c:1781 Read of size 18446744073709551572 at addr ffff88807b049050 by task syz.2.100/6502 CPU: 0 UID: 0 PID: 6502 Comm: syz.2.100 Not tainted 6.14.0-rc3-next-20250218-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:410 [inline] print_report+0x16b/0x5a0 mm/kasan/report.c:510 kasan_report+0x143/0x180 mm/kasan/report.c:623 kasan_check_range+0x282/0x290 mm/kasan/generic.c:189 __asan_memmove+0x29/0x70 mm/kasan/shadow.c:94 ext4_xattr_set_entry+0x8e0/0x1fa0 fs/ext4/xattr.c:1781 ext4_xattr_block_set+0xae0/0x32d0 fs/ext4/xattr.c:2028 ext4_xattr_move_to_block fs/ext4/xattr.c:2670 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2745 [inline] ext4_expand_extra_isize_ea+0x1182/0x1cf0 fs/ext4/xattr.c:2837 __ext4_expand_extra_isize+0x306/0x400 fs/ext4/inode.c:5908 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5951 [inline] __ext4_mark_inode_dirty+0x524/0x880 fs/ext4/inode.c:6029 __ext4_unlink+0x6c2/0xb50 fs/ext4/namei.c:3304 ext4_unlink+0x1bf/0x5a0 fs/ext4/namei.c:3333 vfs_unlink+0x365/0x650 fs/namei.c:4515 do_unlinkat+0x440/0x7a0 fs/namei.c:4579 __do_sys_unlink fs/namei.c:4625 [inline] __se_sys_unlink fs/namei.c:4623 [inline] __x64_sys_unlink+0x47/0x50 fs/namei.c:4623 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdc5298d169 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:00007fdc53833038 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007fdc52ba5fa0 RCX: 00007fdc5298d169 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000400000000180 RBP: 00007fdc52a0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fdc52ba5fa0 R15: 00007ffdee8ed938 Allocated by task 6502: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4308 [inline] __kmalloc_node_track_caller_noprof+0x28b/0x4c0 mm/slub.c:4327 kmemdup_noprof+0x2b/0x70 mm/util.c:136 _Z14kmemdup_noprofPKvU25pass_dynamic_object_size0mj include/linux/fortify-string.h:765 [inline] ext4_xattr_block_set+0x914/0x32d0 fs/ext4/xattr.c:1976 ext4_xattr_move_to_block fs/ext4/xattr.c:2670 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2745 [inline] ext4_expand_extra_isize_ea+0x1182/0x1cf0 fs/ext4/xattr.c:2837 __ext4_expand_extra_isize+0x306/0x400 fs/ext4/inode.c:5908 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5951 [inline] __ext4_mark_inode_dirty+0x524/0x880 fs/ext4/inode.c:6029 __ext4_unlink+0x6c2/0xb50 fs/ext4/namei.c:3304 ext4_unlink+0x1bf/0x5a0 fs/ext4/namei.c:3333 vfs_unlink+0x365/0x650 fs/namei.c:4515 do_unlinkat+0x440/0x7a0 fs/namei.c:4579 __do_sys_unlink fs/namei.c:4625 [inline] __se_sys_unlink fs/namei.c:4623 [inline] __x64_sys_unlink+0x47/0x50 fs/namei.c:4623 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88807b049000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 80 bytes inside of 1024-byte region [ffff88807b049000, ffff88807b049400) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7b048 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b041dc0 0000000000000000 dead000000000001 raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b041dc0 0000000000000000 dead000000000001 head: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea0001ec1201 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 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 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5847, tgid 5847 (syz-executor), ts 101158028085, free_ts 101024457584 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1629 prep_new_page mm/page_alloc.c:1637 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3555 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4817 alloc_pages_mpol+0x311/0x660 mm/mempolicy.c:2301 alloc_slab_page mm/slub.c:2437 [inline] allocate_slab+0x8f/0x3a0 mm/slub.c:2601 new_slab mm/slub.c:2654 [inline] ___slab_alloc+0xc27/0x14a0 mm/slub.c:3840 __slab_alloc+0x58/0xa0 mm/slub.c:3930 __slab_alloc_node mm/slub.c:4005 [inline] slab_alloc_node mm/slub.c:4166 [inline] __do_kmalloc_node mm/slub.c:4307 [inline] __kmalloc_node_track_caller_noprof+0x2e9/0x4c0 mm/slub.c:4327 kmalloc_reserve+0x111/0x2a0 net/core/skbuff.c:609 __alloc_skb+0x1f3/0x440 net/core/skbuff.c:678 alloc_skb include/linux/skbuff.h:1331 [inline] nlmsg_new include/net/netlink.h:1018 [inline] inet6_rt_notify+0xba/0x240 net/ipv6/route.c:6218 fib6_add_rt2node net/ipv6/ip6_fib.c:1259 [inline] fib6_add+0x1e33/0x4420 net/ipv6/ip6_fib.c:1488 __ip6_ins_rt net/ipv6/route.c:1317 [inline] ip6_route_add+0x8b/0x160 net/ipv6/route.c:3862 addrconf_prefix_route net/ipv6/addrconf.c:2485 [inline] fixup_permanent_addr net/ipv6/addrconf.c:3594 [inline] addrconf_permanent_addr+0x7c7/0xc50 net/ipv6/addrconf.c:3618 addrconf_notify+0x9f5/0x1020 net/ipv6/addrconf.c:3690 notifier_call_chain+0x1a5/0x3f0 kernel/notifier.c:85 page last free pid 5835 tgid 5835 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1205 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2738 discard_slab mm/slub.c:2698 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3167 put_cpu_partial+0x17c/0x250 mm/slub.c:3242 __slab_free+0x290/0x380 mm/slub.c:4493 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4129 [inline] slab_alloc_node mm/slub.c:4178 [inline] __do_kmalloc_node mm/slub.c:4307 [inline] __kmalloc_noprof+0x236/0x4c0 mm/slub.c:4320 kmalloc_noprof include/linux/slab.h:915 [inline] kzalloc_noprof include/linux/slab.h:1047 [inline] fib_create_info+0xc14/0x25b0 net/ipv4/fib_semantics.c:1435 fib_table_insert+0x1f6/0x1f20 net/ipv4/fib_trie.c:1231 fib_magic+0x3d8/0x620 net/ipv4/fib_frontend.c:1112 fib_add_ifaddr+0x14c/0x5e0 net/ipv4/fib_frontend.c:1134 fib_inetaddr_event+0x167/0x1f0 net/ipv4/fib_frontend.c:1448 notifier_call_chain+0x1a5/0x3f0 kernel/notifier.c:85 blocking_notifier_call_chain+0x69/0x90 kernel/notifier.c:380 __inet_insert_ifa+0xa68/0xc90 net/ipv4/devinet.c:567 Memory state around the buggy address: ffff88807b048f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807b048f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88807b049000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88807b049080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807b049100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================