================================================================== BUG: KASAN: use-after-free in ext4_xattr_delete_inode+0xc9a/0xca0 fs/ext4/xattr.c:2904 Read of size 4 at addr ffff888126c0e000 by task syz-executor/459 CPU: 0 PID: 459 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x10f/0x150 mm/kasan/report.c:444 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 ext4_xattr_delete_inode+0xc9a/0xca0 fs/ext4/xattr.c:2904 ext4_evict_inode+0xe0a/0x1420 fs/ext4/inode.c:302 evict+0x4b6/0x8b0 fs/inode.c:650 iput_final fs/inode.c:1779 [inline] iput+0x651/0x7e0 fs/inode.c:1805 d_delete_notify include/linux/fsnotify.h:278 [inline] vfs_rmdir+0x329/0x450 fs/namei.c:4170 do_rmdir+0x261/0x6b0 fs/namei.c:4218 __do_sys_unlinkat fs/namei.c:4398 [inline] __se_sys_unlinkat fs/namei.c:4392 [inline] __x64_sys_unlinkat+0xc7/0xf0 fs/namei.c:4392 x64_sys_call+0x4c0/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:264 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f9fe3dd2547 Code: 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 b8 07 01 00 00 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:00007ffec1f5b9e8 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007f9fe3dd2547 RDX: 0000000000000200 RSI: 00007ffec1f5cb90 RDI: 00000000ffffff9c RBP: 00007f9fe3e55a12 R08: 0000000000008660 R09: 00000000ffffffff R10: 0000000000000100 R11: 0000000000000207 R12: 00007ffec1f5cb90 R13: 00007f9fe3e55a12 R14: 0000000000008b6f R15: 00007ffec1f5ed40 Allocated by task 304: 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:433 [inline] __kasan_slab_alloc+0xb7/0xe0 mm/kasan/common.c:466 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook+0x4f/0x2b0 mm/slab.h:550 slab_alloc_node mm/slub.c:3245 [inline] slab_alloc mm/slub.c:3255 [inline] kmem_cache_alloc+0xf7/0x260 mm/slub.c:3260 dst_alloc+0x15c/0x1d0 net/core/dst.c:92 ip6_dst_alloc net/ipv6/route.c:342 [inline] icmp6_dst_alloc+0x1ef/0x700 net/ipv6/route.c:3281 ndisc_send_skb+0x2a9/0xd00 net/ipv6/ndisc.c:493 ndisc_send_ns+0x879/0xb10 net/ipv6/ndisc.c:655 addrconf_dad_work+0x9fa/0x1510 net/ipv6/addrconf.c:4232 process_one_work+0x6c8/0xbb0 kernel/workqueue.c:2328 worker_thread+0xaa0/0x1250 kernel/workqueue.c:2475 kthread+0x3f5/0x4f0 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Freed by task 25: 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:365 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:373 kasan_slab_free include/linux/kasan.h:193 [inline] slab_free_hook mm/slub.c:1728 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1754 slab_free mm/slub.c:3526 [inline] kmem_cache_free+0x100/0x320 mm/slub.c:3544 dst_destroy+0x1e4/0x2c0 net/core/dst.c:124 dst_destroy_rcu+0x19/0x20 net/core/dst.c:137 rcu_do_batch+0x4c1/0xbf0 kernel/rcu/tree.c:2523 rcu_core+0x4a3/0xef0 kernel/rcu/tree.c:2763 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2776 handle_softirqs+0x250/0x560 kernel/softirq.c:583 run_ksoftirqd+0x28/0x40 kernel/softirq.c:959 smpboot_thread_fn+0x446/0x880 kernel/smpboot.c:164 kthread+0x3f5/0x4f0 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 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_common kernel/rcu/tree.c:3011 [inline] call_rcu+0x10b/0xf60 kernel/rcu/tree.c:3129 call_rcu_hurry include/linux/rcupdate.h:90 [inline] dst_release+0x123/0x190 net/core/dst.c:181 refdst_drop include/net/dst.h:255 [inline] skb_dst_drop include/net/dst.h:267 [inline] skb_release_head_state+0x70/0x240 net/core/skbuff.c:727 skb_release_all net/core/skbuff.c:741 [inline] __kfree_skb net/core/skbuff.c:757 [inline] kfree_skb_reason net/core/skbuff.c:778 [inline] kfree_skb+0x89/0x2f0 net/core/skbuff.c:792 ip6gre_tunnel_xmit+0xd13/0x1210 net/ipv6/ip6_gre.c:931 __netdev_start_xmit include/linux/netdevice.h:5059 [inline] netdev_start_xmit include/linux/netdevice.h:5073 [inline] xmit_one net/core/dev.c:3670 [inline] dev_hard_start_xmit+0x245/0x680 net/core/dev.c:3686 sch_direct_xmit+0x279/0x9c0 net/sched/sch_generic.c:345 __dev_xmit_skb net/core/dev.c:3905 [inline] __dev_queue_xmit+0x14f1/0x2d60 net/core/dev.c:4274 dev_queue_xmit+0x17/0x20 net/core/dev.c:4355 neigh_resolve_output+0x6c4/0x770 net/core/neighbour.c:1504 neigh_output include/net/neighbour.h:517 [inline] ip6_finish_output2+0x10d0/0x1790 net/ipv6/ip6_output.c:130 __ip6_finish_output+0x623/0x7e0 net/ipv6/ip6_output.c:201 ip6_finish_output+0x31/0x220 net/ipv6/ip6_output.c:211 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip6_output+0x1fa/0x410 net/ipv6/ip6_output.c:234 dst_output include/net/dst.h:453 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] ndisc_send_skb+0x7f8/0xd00 net/ipv6/ndisc.c:513 ndisc_send_ns+0x879/0xb10 net/ipv6/ndisc.c:655 addrconf_dad_work+0x9fa/0x1510 net/ipv6/addrconf.c:4232 process_one_work+0x6c8/0xbb0 kernel/workqueue.c:2328 worker_thread+0xaa0/0x1250 kernel/workqueue.c:2475 kthread+0x3f5/0x4f0 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff888126c0e000 which belongs to the cache ip6_dst_cache of size 240 The buggy address is located 0 bytes inside of 240-byte region [ffff888126c0e000, ffff888126c0e0f0) The buggy address belongs to the page: page:ffffea00049b0380 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x126c0e flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000122 ffff8881003ed500 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 304, ts 35275849536, free_ts 34651688101 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2607 prep_new_page+0x1c/0x110 mm/page_alloc.c:2613 get_page_from_freelist+0x2c3a/0x2cd0 mm/page_alloc.c:4487 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5824 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa0/0x4d0 mm/slub.c:2000 ___slab_alloc+0x3ac/0x840 mm/slub.c:3033 __slab_alloc+0x49/0x90 mm/slub.c:3120 slab_alloc_node mm/slub.c:3211 [inline] slab_alloc mm/slub.c:3255 [inline] kmem_cache_alloc+0x138/0x260 mm/slub.c:3260 dst_alloc+0x15c/0x1d0 net/core/dst.c:92 ip6_dst_alloc net/ipv6/route.c:342 [inline] icmp6_dst_alloc+0x1ef/0x700 net/ipv6/route.c:3281 ndisc_send_skb+0x2a9/0xd00 net/ipv6/ndisc.c:493 ndisc_send_rs+0x711/0x960 net/ipv6/ndisc.c:707 addrconf_dad_completed+0x936/0xe20 net/ipv6/addrconf.c:4309 addrconf_dad_work+0xc4c/0x1510 net/ipv6/addrconf.c:-1 process_one_work+0x6c8/0xbb0 kernel/workqueue.c:2328 worker_thread+0xaa0/0x1250 kernel/workqueue.c:2475 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1474 [inline] free_pcp_prepare mm/page_alloc.c:1546 [inline] free_unref_page_prepare+0x5fa/0x600 mm/page_alloc.c:3536 free_unref_page+0xae/0x540 mm/page_alloc.c:3618 free_the_page mm/page_alloc.c:805 [inline] __free_pages+0x6c/0x100 mm/page_alloc.c:5900 __vunmap+0x801/0x980 mm/vmalloc.c:2660 __vfree mm/vmalloc.c:2709 [inline] vfree+0x8b/0xc0 mm/vmalloc.c:2740 kcov_put kernel/kcov.c:417 [inline] kcov_close+0x2b/0x50 kernel/kcov.c:519 __fput+0x22b/0x900 fs/file_table.c:311 ____fput+0x15/0x20 fs/file_table.c:339 task_work_run+0x127/0x190 kernel/task_work.c:188 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0xb70/0x29a0 kernel/exit.c:896 do_group_exit+0x149/0x310 kernel/exit.c:1010 get_signal+0x64f/0x1430 kernel/signal.c:2916 arch_do_signal_or_restart+0xe2/0x1100 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0xa7/0xe0 kernel/entry/common.c:178 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:307 Memory state around the buggy address: ffff888126c0df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888126c0df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888126c0e000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888126c0e080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff888126c0e100: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ==================================================================