================================================================== BUG: KASAN: use-after-free in xattr_find_entry fs/ext4/xattr.c:294 [inline] BUG: KASAN: use-after-free in ext4_xattr_ibody_get+0x606/0x670 fs/ext4/xattr.c:601 Read of size 4 at addr ffff888119be6004 by task syz.2.17/532 CPU: 1 PID: 532 Comm: syz.2.17 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0x100/0x140 mm/kasan/report.c:452 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 xattr_find_entry fs/ext4/xattr.c:294 [inline] ext4_xattr_ibody_get+0x606/0x670 fs/ext4/xattr.c:601 ext4_xattr_get+0x116/0x830 fs/ext4/xattr.c:655 ext4_get_acl+0x6c/0x6b0 fs/ext4/acl.c:162 get_acl+0x15f/0x270 fs/posix_acl.c:141 posix_acl_chmod+0xe1/0x240 fs/posix_acl.c:565 ext4_setattr+0xb65/0x1980 fs/ext4/inode.c:5741 notify_change+0xab5/0xe40 fs/attr.c:410 chmod_common+0x1e4/0x390 fs/open.c:584 do_fchmodat+0xd4/0x1a0 fs/open.c:622 __do_sys_fchmodat fs/open.c:635 [inline] __se_sys_fchmodat fs/open.c:632 [inline] __x64_sys_fchmodat+0x7b/0x90 fs/open.c:632 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7ff5a16bfe99 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:00007ff5a1521028 EFLAGS: 00000246 ORIG_RAX: 000000000000010c RAX: ffffffffffffffda RBX: 00007ff5a1947fa0 RCX: 00007ff5a16bfe99 RDX: 00000000ffffff50 RSI: 0000200000000300 RDI: ffffffffffffff9c RBP: 00007ff5a1755eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff5a1948038 R14: 00007ff5a1947fa0 R15: 00007ffc5049ad18 Allocated by task 0: 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:430 [inline] __kasan_slab_alloc+0xb7/0xe0 mm/kasan/common.c:463 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580 slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x15a/0x2d0 mm/slub.c:2965 dst_alloc+0x176/0x4f0 net/core/dst.c:92 ip6_dst_alloc net/ipv6/route.c:340 [inline] icmp6_dst_alloc+0x1ef/0x700 net/ipv6/route.c:3170 mld_sendpack+0x4d6/0xb00 net/ipv6/mcast.c:1665 mld_send_cr net/ipv6/mcast.c:1972 [inline] mld_ifc_timer_expire+0x862/0xc60 net/ipv6/mcast.c:2471 call_timer_fn+0x38/0x290 kernel/time/timer.c:1450 expire_timers kernel/time/timer.c:1495 [inline] __run_timers+0x637/0x9a0 kernel/time/timer.c:1789 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1802 __do_softirq+0x255/0x563 kernel/softirq.c:309 Freed by task 12: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4a/0x70 mm/kasan/common.c:45 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x125/0x160 mm/kasan/common.c:362 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:370 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1600 [inline] slab_free_freelist_hook+0xc5/0x190 mm/slub.c:1626 slab_free mm/slub.c:3208 [inline] kmem_cache_free+0x100/0x2d0 mm/slub.c:3224 dst_destroy+0x18a/0x240 net/core/dst.c:124 dst_destroy_rcu+0x19/0x20 net/core/dst.c:137 rcu_do_batch+0x488/0xaf0 kernel/rcu/tree.c:2494 rcu_core+0x50a/0xca0 kernel/rcu/tree.c:2735 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2748 __do_softirq+0x255/0x563 kernel/softirq.c:309 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 __call_rcu kernel/rcu/tree.c:2980 [inline] call_rcu+0x11a/0x1090 kernel/rcu/tree.c:3054 dst_release+0x123/0x190 net/core/dst.c:181 refdst_drop include/net/dst.h:253 [inline] skb_dst_drop include/net/dst.h:265 [inline] __dev_queue_xmit+0x8f8/0x2500 net/core/dev.c:4164 dev_queue_xmit+0x17/0x20 net/core/dev.c:4254 neigh_resolve_output+0x6c4/0x770 net/core/neighbour.c:1505 neigh_output include/net/neighbour.h:517 [inline] ip6_finish_output2+0xee2/0x1540 net/ipv6/ip6_output.c:132 __ip6_finish_output+0x5fd/0x790 net/ipv6/ip6_output.c:203 ip6_finish_output+0x33/0x1e0 net/ipv6/ip6_output.c:213 NF_HOOK_COND include/linux/netfilter.h:288 [inline] ip6_output+0x1fa/0x420 net/ipv6/ip6_output.c:236 dst_output include/net/dst.h:451 [inline] NF_HOOK include/linux/netfilter.h:299 [inline] mld_sendpack+0x61e/0xb00 net/ipv6/mcast.c:1676 mld_send_cr net/ipv6/mcast.c:1972 [inline] mld_ifc_timer_expire+0x862/0xc60 net/ipv6/mcast.c:2471 call_timer_fn+0x38/0x290 kernel/time/timer.c:1450 expire_timers kernel/time/timer.c:1495 [inline] __run_timers+0x637/0x9a0 kernel/time/timer.c:1789 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1802 __do_softirq+0x255/0x563 kernel/softirq.c:309 The buggy address belongs to the object at ffff888119be6000 which belongs to the cache ip6_dst_cache of size 240 The buggy address is located 4 bytes inside of 240-byte region [ffff888119be6000, ffff888119be60f0) The buggy address belongs to the page: page:ffffea000466f980 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x119be6 flags: 0x4000000000000200(slab) raw: 4000000000000200 dead000000000100 dead000000000122 ffff88810c040600 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 529, ts 40109707597, free_ts 40105024632 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x176/0x190 mm/page_alloc.c:2462 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2f8/0x4c0 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x1a4/0x2d0 mm/slub.c:2965 dst_alloc+0x176/0x4f0 net/core/dst.c:92 ip6_dst_alloc net/ipv6/route.c:340 [inline] icmp6_dst_alloc+0x1ef/0x700 net/ipv6/route.c:3170 ndisc_send_skb+0x27c/0xbc0 net/ipv6/ndisc.c:493 ndisc_send_ns+0x879/0xb10 net/ipv6/ndisc.c:655 addrconf_dad_work+0xa40/0x1480 net/ipv6/addrconf.c:4216 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301 worker_thread+0xa8e/0x13c0 kernel/workqueue.c:2447 kthread+0x324/0x3b0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] free_pcp_prepare mm/page_alloc.c:1421 [inline] free_unref_page_prepare+0x2b7/0x2d0 mm/page_alloc.c:3336 free_unref_page mm/page_alloc.c:3391 [inline] free_the_page mm/page_alloc.c:5443 [inline] __free_pages+0x146/0x390 mm/page_alloc.c:5454 free_pages+0x82/0x90 mm/page_alloc.c:5465 tlb_batch_list_free mm/mmu_gather.c:61 [inline] tlb_finish_mmu+0x258/0x310 mm/mmu_gather.c:329 unmap_region+0x355/0x3c0 mm/mmap.c:2811 __do_munmap+0x63c/0x850 mm/mmap.c:3041 __vm_munmap mm/mmap.c:3094 [inline] __do_sys_munmap mm/mmap.c:3120 [inline] __se_sys_munmap+0x12c/0x1c0 mm/mmap.c:3116 __x64_sys_munmap+0x5b/0x70 mm/mmap.c:3116 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Memory state around the buggy address: ffff888119be5f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888119be5f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888119be6000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888119be6080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff888119be6100: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop2): xattr_find_entry:297: inode #12: comm syz.2.17: corrupted xattr entries EXT4-fs (loop2): Remounting filesystem read-only