================================================================== BUG: KASAN: use-after-free in ext4_xattr_delete_inode+0xc9a/0xca0 fs/ext4/xattr.c:2907 Read of size 4 at addr ffff8881013dc000 by task syz-executor/460 CPU: 0 PID: 460 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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:2907 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:0x7feb7b12dd07 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:00007ffc805f7798 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007feb7b12dd07 RDX: 0000000000000200 RSI: 00007ffc805f8940 RDI: 00000000ffffff9c RBP: 00007feb7b1b1952 R08: 0000000000008660 R09: 00000000ffffffff R10: 0000000000000100 R11: 0000000000000207 R12: 00007ffc805f8940 R13: 00007feb7b1b1952 R14: 0000000000007cb8 R15: 00007ffc805faaf0 Allocated by task 373: 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 kmem_cache_alloc_bulk+0x27b/0x340 mm/slub.c:3743 napi_skb_cache_get net/core/skbuff.c:179 [inline] __alloc_skb+0x51c/0x730 net/core/skbuff.c:414 __napi_alloc_skb+0x162/0x2e0 net/core/skbuff.c:569 napi_alloc_skb include/linux/skbuff.h:3102 [inline] page_to_skb+0x274/0xb60 drivers/net/virtio_net.c:474 receive_mergeable drivers/net/virtio_net.c:1102 [inline] receive_buf+0xcd3/0x4c20 drivers/net/virtio_net.c:1212 virtnet_receive drivers/net/virtio_net.c:1504 [inline] virtnet_poll+0x5cd/0xfb0 drivers/net/virtio_net.c:1620 __napi_poll+0xbb/0x580 net/core/dev.c:7110 napi_poll net/core/dev.c:7177 [inline] net_rx_action+0x37f/0x910 net/core/dev.c:7267 handle_softirqs+0x250/0x560 kernel/softirq.c:583 __do_softirq kernel/softirq.c:621 [inline] invoke_softirq kernel/softirq.c:443 [inline] __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670 irq_exit_rcu+0x9/0x10 kernel/softirq.c:682 common_interrupt+0xbe/0xe0 arch/x86/kernel/irq.c:242 asm_common_interrupt+0x27/0x40 arch/x86/include/asm/idtentry.h:667 Freed by task 373: 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 kfree_skbmem+0x10c/0x180 net/core/skbuff.c:-1 __kfree_skb net/core/skbuff.c:758 [inline] kfree_skb_partial+0x76/0x90 net/core/skbuff.c:5485 tcp_rcv_established+0x11c6/0x1af0 net/ipv4/tcp_input.c:6039 tcp_v4_do_rcv+0x591/0x9f0 net/ipv4/tcp_ipv4.c:1726 tcp_v4_rcv+0x221a/0x2880 net/ipv4/tcp_ipv4.c:2138 ip_protocol_deliver_rcu+0x360/0x760 net/ipv4/ip_input.c:204 ip_local_deliver_finish net/ipv4/ip_input.c:231 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] ip_local_deliver+0x2dd/0x520 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:463 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:577 [inline] ip_list_rcv_finish net/ipv4/ip_input.c:628 [inline] ip_sublist_rcv+0x75f/0x8b0 net/ipv4/ip_input.c:636 ip_list_rcv+0x3e4/0x430 net/ipv4/ip_input.c:671 __netif_receive_skb_list_ptype net/core/dev.c:5603 [inline] __netif_receive_skb_list_core+0x57e/0x770 net/core/dev.c:5651 __netif_receive_skb_list net/core/dev.c:5703 [inline] netif_receive_skb_list_internal+0x7f8/0xaa0 net/core/dev.c:5794 gro_normal_list net/core/dev.c:5948 [inline] napi_complete_done+0x375/0x7a0 net/core/dev.c:6686 virtqueue_napi_complete drivers/net/virtio_net.c:357 [inline] virtnet_poll+0x9b6/0xfb0 drivers/net/virtio_net.c:1627 __napi_poll+0xbb/0x580 net/core/dev.c:7110 napi_poll net/core/dev.c:7177 [inline] net_rx_action+0x37f/0x910 net/core/dev.c:7267 handle_softirqs+0x250/0x560 kernel/softirq.c:583 __do_softirq kernel/softirq.c:621 [inline] invoke_softirq kernel/softirq.c:443 [inline] __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670 irq_exit_rcu+0x9/0x10 kernel/softirq.c:682 common_interrupt+0xbe/0xe0 arch/x86/kernel/irq.c:242 asm_common_interrupt+0x27/0x40 arch/x86/include/asm/idtentry.h:667 The buggy address belongs to the object at ffff8881013dc000 which belongs to the cache skbuff_head_cache of size 248 The buggy address is located 0 bytes inside of 248-byte region [ffff8881013dc000, ffff8881013dc0f8) The buggy address belongs to the page: page:ffffea000404f700 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1013dc flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000122 ffff8881081aa600 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 373, ts 22568198342, free_ts 20733828271 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2610 prep_new_page+0x1c/0x110 mm/page_alloc.c:2616 get_page_from_freelist+0x2d42/0x2dd0 mm/page_alloc.c:4492 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5829 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 kmem_cache_alloc_bulk+0xf7/0x340 mm/slub.c:3719 napi_skb_cache_get net/core/skbuff.c:179 [inline] __alloc_skb+0x51c/0x730 net/core/skbuff.c:414 __napi_alloc_skb+0x162/0x2e0 net/core/skbuff.c:569 napi_alloc_skb include/linux/skbuff.h:3102 [inline] page_to_skb+0x274/0xb60 drivers/net/virtio_net.c:474 receive_mergeable drivers/net/virtio_net.c:1102 [inline] receive_buf+0xcd3/0x4c20 drivers/net/virtio_net.c:1212 virtnet_receive drivers/net/virtio_net.c:1504 [inline] virtnet_poll+0x5cd/0xfb0 drivers/net/virtio_net.c:1620 __napi_poll+0xbb/0x580 net/core/dev.c:7110 napi_poll net/core/dev.c:7177 [inline] net_rx_action+0x37f/0x910 net/core/dev.c:7267 handle_softirqs+0x250/0x560 kernel/softirq.c:583 __do_softirq kernel/softirq.c:621 [inline] invoke_softirq kernel/softirq.c:443 [inline] __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1477 [inline] free_pcp_prepare mm/page_alloc.c:1549 [inline] free_unref_page_prepare+0x5fa/0x600 mm/page_alloc.c:3540 free_unref_page+0xae/0x540 mm/page_alloc.c:3622 free_the_page mm/page_alloc.c:808 [inline] __free_pages+0x6c/0x100 mm/page_alloc.c:5905 free_pages+0x82/0x90 mm/page_alloc.c:5916 kasan_depopulate_vmalloc_pte+0x6b/0x90 mm/kasan/shadow.c:354 apply_to_pte_range mm/memory.c:2645 [inline] apply_to_pmd_range mm/memory.c:2689 [inline] apply_to_pud_range mm/memory.c:2725 [inline] apply_to_p4d_range mm/memory.c:2761 [inline] __apply_to_page_range+0x8ca/0xc70 mm/memory.c:2797 apply_to_existing_page_range+0x38/0x50 mm/memory.c:2830 kasan_release_vmalloc+0x97/0xb0 mm/kasan/shadow.c:464 __purge_vmap_area_lazy+0xa8d/0x1890 mm/vmalloc.c:1723 try_purge_vmap_area_lazy+0x38/0x50 mm/vmalloc.c:1742 free_vmap_area_noflush+0xa59/0xaa0 mm/vmalloc.c:1784 free_unmap_vmap_area mm/vmalloc.c:1797 [inline] remove_vm_area+0x1c1/0x1e0 mm/vmalloc.c:2552 vm_remove_mappings mm/vmalloc.c:2581 [inline] __vunmap+0x259/0x980 mm/vmalloc.c:2650 __vfree mm/vmalloc.c:2709 [inline] vfree+0x8b/0xc0 mm/vmalloc.c:2740 kcov_put kernel/kcov.c:422 [inline] kcov_close+0x2b/0x50 kernel/kcov.c:524 __fput+0x22b/0x900 fs/file_table.c:311 Memory state around the buggy address: ffff8881013dbf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881013dbf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881013dc000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881013dc080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc ffff8881013dc100: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ==================================================================