================================================================== BUG: KASAN: use-after-free in ext4_xattr_delete_inode+0xba6/0xbb0 fs/ext4/xattr.c:2913 Read of size 4 at addr ffff88810e80c000 by task syz-executor/437 CPU: 1 PID: 437 Comm: syz-executor Not tainted 6.1.141-syzkaller-1169946-g145c7fad733f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0xee/0x150 lib/dump_stack.c:106 print_address_description+0x71/0x210 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:427 kasan_report+0x122/0x150 mm/kasan/report.c:531 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:350 ext4_xattr_delete_inode+0xba6/0xbb0 fs/ext4/xattr.c:2913 ext4_evict_inode+0xe58/0x1460 fs/ext4/inode.c:296 evict+0x493/0x890 fs/inode.c:705 iput_final fs/inode.c:1834 [inline] iput+0x620/0x670 fs/inode.c:1860 d_delete_notify include/linux/fsnotify.h:292 [inline] vfs_rmdir+0x3bf/0x500 fs/namei.c:4203 do_rmdir+0x259/0x6a0 fs/namei.c:4251 __do_sys_unlinkat fs/namei.c:4431 [inline] __se_sys_unlinkat fs/namei.c:4425 [inline] __x64_sys_unlinkat+0xc7/0xf0 fs/namei.c:4425 x64_sys_call+0x79f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:264 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f12c3b7d4d7 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:00007ffe253a5008 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007f12c3b7d4d7 RDX: 0000000000000200 RSI: 00007ffe253a61b0 RDI: 00000000ffffff9c RBP: 00007f12c3bf0a14 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000207 R12: 00007ffe253a61b0 R13: 00007f12c3bf0a14 R14: 000000000000cd13 R15: 00007ffe253a8360 Allocated by task 392: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_alloc_info+0x25/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:379 [inline] __kasan_kmalloc+0x95/0xb0 mm/kasan/common.c:388 kasan_kmalloc include/linux/kasan.h:212 [inline] __do_kmalloc_node mm/slab_common.c:938 [inline] __kmalloc_node_track_caller+0xb1/0x1e0 mm/slab_common.c:958 kmalloc_reserve net/core/skbuff.c:449 [inline] __alloc_skb+0x236/0x4b0 net/core/skbuff.c:518 alloc_skb include/linux/skbuff.h:1290 [inline] nlmsg_new include/net/netlink.h:991 [inline] inet_netconf_notify_devconf+0x169/0x220 net/ipv4/devinet.c:2129 __devinet_sysctl_register+0x2b6/0x320 net/ipv4/devinet.c:2619 devinet_sysctl_register+0x169/0x1e0 net/ipv4/devinet.c:2653 inetdev_init+0x2d1/0x510 net/ipv4/devinet.c:280 inetdev_event+0x1f8/0x10e0 net/ipv4/devinet.c:1548 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xa1/0x110 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:2009 [inline] call_netdevice_notifiers_extack net/core/dev.c:2047 [inline] call_netdevice_notifiers+0x111/0x190 net/core/dev.c:2061 register_netdevice+0x10e2/0x14a0 net/core/dev.c:10189 __ip_tunnel_create+0x33e/0x440 net/ipv4/ip_tunnel.c:267 ip_tunnel_init_net+0x2f2/0x7d0 net/ipv4/ip_tunnel.c:1100 ipgre_tap_init_net+0x29/0x30 net/ipv4/ip_gre.c:1700 ops_init+0x1c8/0x4a0 net/core/net_namespace.c:138 setup_net+0x4ab/0xcb0 net/core/net_namespace.c:335 copy_net_ns+0x355/0x5c0 net/core/net_namespace.c:481 create_new_namespaces+0x3a2/0x660 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x120/0x170 kernel/nsproxy.c:226 ksys_unshare+0x4ac/0x7b0 kernel/fork.c:3388 __do_sys_unshare kernel/fork.c:3459 [inline] __se_sys_unshare kernel/fork.c:3457 [inline] __x64_sys_unshare+0x38/0x40 kernel/fork.c:3457 x64_sys_call+0x767/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:273 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 392: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x31/0x50 mm/kasan/generic.c:516 ____kasan_slab_free+0x132/0x180 mm/kasan/common.c:241 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:249 kasan_slab_free include/linux/kasan.h:178 [inline] slab_free_hook mm/slub.c:1745 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1771 slab_free mm/slub.c:3686 [inline] __kmem_cache_free+0xb7/0x1b0 mm/slub.c:3702 kfree+0x6f/0xf0 mm/slab_common.c:990 skb_free_head net/core/skbuff.c:765 [inline] skb_release_data+0x63f/0x890 net/core/skbuff.c:794 skb_release_all net/core/skbuff.c:859 [inline] __kfree_skb net/core/skbuff.c:873 [inline] consume_skb+0xab/0x1f0 net/core/skbuff.c:1038 netlink_broadcast+0x10a2/0x11a0 net/netlink/af_netlink.c:1509 nlmsg_multicast include/net/netlink.h:1071 [inline] nlmsg_notify+0xe6/0x1a0 net/netlink/af_netlink.c:2546 rtnl_notify+0x9a/0xc0 net/core/rtnetlink.c:796 inet_netconf_notify_devconf+0x1c2/0x220 net/ipv4/devinet.c:2141 __devinet_sysctl_register+0x2b6/0x320 net/ipv4/devinet.c:2619 devinet_sysctl_register+0x169/0x1e0 net/ipv4/devinet.c:2653 inetdev_init+0x2d1/0x510 net/ipv4/devinet.c:280 inetdev_event+0x1f8/0x10e0 net/ipv4/devinet.c:1548 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xa1/0x110 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:2009 [inline] call_netdevice_notifiers_extack net/core/dev.c:2047 [inline] call_netdevice_notifiers+0x111/0x190 net/core/dev.c:2061 register_netdevice+0x10e2/0x14a0 net/core/dev.c:10189 __ip_tunnel_create+0x33e/0x440 net/ipv4/ip_tunnel.c:267 ip_tunnel_init_net+0x2f2/0x7d0 net/ipv4/ip_tunnel.c:1100 ipgre_tap_init_net+0x29/0x30 net/ipv4/ip_gre.c:1700 ops_init+0x1c8/0x4a0 net/core/net_namespace.c:138 setup_net+0x4ab/0xcb0 net/core/net_namespace.c:335 copy_net_ns+0x355/0x5c0 net/core/net_namespace.c:481 create_new_namespaces+0x3a2/0x660 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x120/0x170 kernel/nsproxy.c:226 ksys_unshare+0x4ac/0x7b0 kernel/fork.c:3388 __do_sys_unshare kernel/fork.c:3459 [inline] __se_sys_unshare kernel/fork.c:3457 [inline] __x64_sys_unshare+0x38/0x40 kernel/fork.c:3457 x64_sys_call+0x767/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:273 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88810e80c000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 0 bytes inside of 512-byte region [ffff88810e80c000, ffff88810e80c200) The buggy address belongs to the physical page: page:ffffea00043a0300 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10e80c head:ffffea00043a0300 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 dead000000000122 ffff888100042f00 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 392, tgid 392 (syz-executor), ts 51272171538, free_ts 30453617928 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2637 prep_new_page+0x1c/0x110 mm/page_alloc.c:2644 get_page_from_freelist+0x2c7b/0x2cf0 mm/page_alloc.c:4539 __alloc_pages+0x19e/0x3a0 mm/page_alloc.c:5850 alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1 allocate_slab mm/slub.c:1962 [inline] new_slab+0x98/0x3d0 mm/slub.c:2015 ___slab_alloc+0x6f6/0xb50 mm/slub.c:3203 __slab_alloc+0x5e/0xa0 mm/slub.c:3302 slab_alloc_node mm/slub.c:3387 [inline] __kmem_cache_alloc_node+0x203/0x2c0 mm/slub.c:3462 __do_kmalloc_node mm/slab_common.c:937 [inline] __kmalloc_node_track_caller+0xa0/0x1e0 mm/slab_common.c:958 kmalloc_reserve net/core/skbuff.c:449 [inline] __alloc_skb+0x236/0x4b0 net/core/skbuff.c:518 alloc_skb include/linux/skbuff.h:1290 [inline] nlmsg_new include/net/netlink.h:991 [inline] inet6_netconf_notify_devconf+0x107/0x1c0 net/ipv6/addrconf.c:584 __addrconf_sysctl_register+0x365/0x3d0 net/ipv6/addrconf.c:7193 addrconf_sysctl_register+0x147/0x1a0 net/ipv6/addrconf.c:7230 ipv6_add_dev+0xcac/0x1230 net/ipv6/addrconf.c:453 addrconf_notify+0x6d5/0xe40 net/ipv6/addrconf.c:3623 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1545 [inline] free_pcp_prepare mm/page_alloc.c:1619 [inline] free_unref_page_prepare+0x742/0x750 mm/page_alloc.c:3581 free_unref_page+0x8f/0x530 mm/page_alloc.c:3677 free_the_page mm/page_alloc.c:830 [inline] __free_pages+0x67/0x100 mm/page_alloc.c:5939 __free_slab+0xca/0x1a0 mm/slub.c:2039 free_slab mm/slub.c:2054 [inline] discard_slab+0x29/0x40 mm/slub.c:2060 __slab_free+0x201/0x280 mm/slub.c:3599 do_slab_free mm/slub.c:3640 [inline] ___cache_free+0xbf/0xd0 mm/slub.c:3696 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0xc6/0x140 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x14a/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x24/0x80 mm/kasan/common.c:310 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768 slab_alloc_node mm/slub.c:3421 [inline] slab_alloc mm/slub.c:3431 [inline] __kmem_cache_alloc_lru mm/slub.c:3438 [inline] kmem_cache_alloc+0x16e/0x330 mm/slub.c:3447 getname_flags+0xb9/0x500 fs/namei.c:139 getname+0x19/0x20 fs/namei.c:218 do_sys_openat2+0xcb/0x7e0 fs/open.c:1335 do_sys_open fs/open.c:1357 [inline] __do_sys_openat fs/open.c:1373 [inline] __se_sys_openat fs/open.c:1368 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1368 Memory state around the buggy address: ffff88810e80bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88810e80bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88810e80c000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810e80c080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810e80c100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem.