================================================================== BUG: KASAN: use-after-free in ext4_xattr_delete_inode+0xba6/0xbb0 fs/ext4/xattr.c:2920 Read of size 4 at addr ffff8881152d0000 by task syz-executor/454 CPU: 0 PID: 454 Comm: syz-executor Not tainted 5.15.185-syzkaller-1080790-g32c443bd6d40 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0xee/0x150 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+0xf1/0x140 mm/kasan/report.c:444 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 ext4_xattr_delete_inode+0xba6/0xbb0 fs/ext4/xattr.c:2920 ext4_evict_inode+0xe44/0x1450 fs/ext4/inode.c:300 evict+0x485/0x870 fs/inode.c:650 iput_final fs/inode.c:1779 [inline] iput+0x635/0x7c0 fs/inode.c:1805 d_delete_notify include/linux/fsnotify.h:278 [inline] vfs_rmdir+0x33f/0x460 fs/namei.c:4162 do_rmdir+0x259/0x6a0 fs/namei.c:4210 __do_sys_unlinkat fs/namei.c:4390 [inline] __se_sys_unlinkat fs/namei.c:4384 [inline] __x64_sys_unlinkat+0xc7/0xf0 fs/namei.c:4384 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:0x7fc51c78dcf7 Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 07 01 00 00 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:00007ffd4a319b88 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007fc51c78dcf7 RDX: 0000000000000200 RSI: 00007ffd4a31ad30 RDI: 00000000ffffff9c RBP: 00007fc51c8011cc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000207 R12: 00007ffd4a31ad30 R13: 00007fc51c8011cc R14: 000000000000d2cb R15: 00007ffd4a31cee0 Allocated by task 415: 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+0xbd/0xf0 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:3240 [inline] slab_alloc mm/slub.c:3250 [inline] kmem_cache_alloc+0xf7/0x260 mm/slub.c:3255 kmem_cache_alloc_node include/linux/slab.h:489 [inline] __alloc_skb+0xe0/0x740 net/core/skbuff.c:416 alloc_skb include/linux/skbuff.h:1183 [inline] alloc_uevent_skb+0x85/0x240 lib/kobject_uevent.c:290 uevent_net_broadcast_tagged lib/kobject_uevent.c:351 [inline] kobject_uevent_net_broadcast+0x1a6/0x5a0 lib/kobject_uevent.c:412 kobject_uevent_env+0x52e/0x700 lib/kobject_uevent.c:608 kobject_uevent+0x1d/0x30 lib/kobject_uevent.c:657 netdev_queue_add_kobject net/core/net-sysfs.c:1677 [inline] netdev_queue_update_kobjects+0x1c9/0x3e0 net/core/net-sysfs.c:1711 register_queue_kobjects net/core/net-sysfs.c:1772 [inline] netdev_register_kobject+0x26e/0x320 net/core/net-sysfs.c:2018 register_netdevice+0xdfa/0x13a0 net/core/dev.c:10405 veth_newlink+0x668/0xda0 drivers/net/veth.c:1683 __rtnl_newlink net/core/rtnetlink.c:3524 [inline] rtnl_newlink+0x112d/0x17b0 net/core/rtnetlink.c:3572 rtnetlink_rcv_msg+0x9e4/0xb90 net/core/rtnetlink.c:5650 netlink_rcv_skb+0x1e0/0x430 net/netlink/af_netlink.c:2493 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5668 netlink_unicast_kernel net/netlink/af_netlink.c:1315 [inline] netlink_unicast+0x87c/0xa40 net/netlink/af_netlink.c:1341 netlink_sendmsg+0x86a/0xb70 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] __sys_sendto+0x423/0x580 net/socket.c:2063 __do_sys_sendto net/socket.c:2075 [inline] __se_sys_sendto net/socket.c:2071 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2071 x64_sys_call+0x178/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45 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 Freed by task 415: 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:1723 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1749 slab_free mm/slub.c:3521 [inline] kmem_cache_free+0x100/0x320 mm/slub.c:3539 kfree_skbmem+0x10c/0x180 net/core/skbuff.c:-1 __kfree_skb net/core/skbuff.c:758 [inline] consume_skb+0xb3/0x1f0 net/core/skbuff.c:930 netlink_broadcast_filtered+0x1157/0x1250 net/netlink/af_netlink.c:1525 netlink_broadcast+0x3a/0x50 net/netlink/af_netlink.c:1547 uevent_net_broadcast_tagged lib/kobject_uevent.c:372 [inline] kobject_uevent_net_broadcast+0x503/0x5a0 lib/kobject_uevent.c:412 kobject_uevent_env+0x52e/0x700 lib/kobject_uevent.c:608 kobject_uevent+0x1d/0x30 lib/kobject_uevent.c:657 netdev_queue_add_kobject net/core/net-sysfs.c:1677 [inline] netdev_queue_update_kobjects+0x1c9/0x3e0 net/core/net-sysfs.c:1711 register_queue_kobjects net/core/net-sysfs.c:1772 [inline] netdev_register_kobject+0x26e/0x320 net/core/net-sysfs.c:2018 register_netdevice+0xdfa/0x13a0 net/core/dev.c:10405 veth_newlink+0x668/0xda0 drivers/net/veth.c:1683 __rtnl_newlink net/core/rtnetlink.c:3524 [inline] rtnl_newlink+0x112d/0x17b0 net/core/rtnetlink.c:3572 rtnetlink_rcv_msg+0x9e4/0xb90 net/core/rtnetlink.c:5650 netlink_rcv_skb+0x1e0/0x430 net/netlink/af_netlink.c:2493 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5668 netlink_unicast_kernel net/netlink/af_netlink.c:1315 [inline] netlink_unicast+0x87c/0xa40 net/netlink/af_netlink.c:1341 netlink_sendmsg+0x86a/0xb70 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] __sys_sendto+0x423/0x580 net/socket.c:2063 __do_sys_sendto net/socket.c:2075 [inline] __se_sys_sendto net/socket.c:2071 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2071 x64_sys_call+0x178/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45 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 The buggy address belongs to the object at ffff8881152d0000 which belongs to the cache skbuff_head_cache of size 248 The buggy address is located 0 bytes inside of 248-byte region [ffff8881152d0000, ffff8881152d00f8) The buggy address belongs to the page: page:ffffea000454b400 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8881152d0dc0 pfn:0x1152d0 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 ffffea000460af00 0000000700000007 ffff8881081abc80 raw: ffff8881152d0dc0 00000000800c0009 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 110, ts 5751227173, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2605 prep_new_page+0x1c/0x110 mm/page_alloc.c:2611 get_page_from_freelist+0x2cc5/0x2d50 mm/page_alloc.c:4485 __alloc_pages+0x18f/0x440 mm/page_alloc.c:5795 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1932 [inline] new_slab+0xa1/0x4d0 mm/slub.c:1995 ___slab_alloc+0x381/0x810 mm/slub.c:3028 __slab_alloc+0x49/0x90 mm/slub.c:3115 slab_alloc_node mm/slub.c:3206 [inline] slab_alloc mm/slub.c:3250 [inline] kmem_cache_alloc+0x138/0x260 mm/slub.c:3255 skb_clone+0x1cf/0x360 net/core/skbuff.c:1547 do_one_broadcast net/netlink/af_netlink.c:1448 [inline] netlink_broadcast_filtered+0x668/0x1250 net/netlink/af_netlink.c:1523 netlink_broadcast+0x3a/0x50 net/netlink/af_netlink.c:1547 uevent_net_broadcast_untagged lib/kobject_uevent.c:331 [inline] kobject_uevent_net_broadcast+0x3bd/0x5a0 lib/kobject_uevent.c:409 kobject_uevent_env+0x52e/0x700 lib/kobject_uevent.c:608 kobject_synth_uevent+0x520/0xaf0 lib/kobject_uevent.c:208 uevent_store+0x25/0x60 drivers/base/core.c:2438 dev_attr_store+0x5e/0x80 drivers/base/core.c:2136 page_owner free stack trace missing Memory state around the buggy address: ffff8881152cff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881152cff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881152d0000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881152d0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc ffff8881152d0100: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ==================================================================