================================================================== BUG: KASAN: use-after-free in ext4_xattr_delete_inode+0xba6/0xbb0 fs/ext4/xattr.c:2920 Read of size 4 at addr ffff88811d8a4000 by task syz-executor/458 CPU: 0 PID: 458 Comm: syz-executor Not tainted 5.15.185-syzkaller-1080790-g32c443bd6d40 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/19/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:0x7f22b5c9acf7 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:00007ffeceffe4f8 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007f22b5c9acf7 RDX: 0000000000000200 RSI: 00007ffecefff6a0 RDI: 00000000ffffff9c RBP: 00007f22b5d0e1cc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000207 R12: 00007ffecefff6a0 R13: 00007f22b5d0e1cc R14: 000000000000d092 R15: 00007ffecf001850 Allocated by task 356: 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_kmalloc mm/kasan/common.c:512 [inline] __kasan_kmalloc+0xda/0x110 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] __kmalloc+0x13d/0x2c0 mm/slub.c:4431 __kmalloc_node include/linux/slab.h:484 [inline] kmalloc_node include/linux/slab.h:639 [inline] kzalloc_node include/linux/slab.h:758 [inline] qdisc_alloc+0x78/0x770 net/sched/sch_generic.c:888 qdisc_create_dflt+0x6b/0x3a0 net/sched/sch_generic.c:950 attach_one_default_qdisc net/sched/sch_generic.c:1113 [inline] netdev_for_each_tx_queue include/linux/netdevice.h:2411 [inline] attach_default_qdiscs net/sched/sch_generic.c:1131 [inline] dev_activate+0x2a0/0x1060 net/sched/sch_generic.c:1190 __dev_open+0x3aa/0x4c0 net/core/dev.c:1554 __dev_change_flags+0x20a/0x6a0 net/core/dev.c:8861 dev_change_flags+0x88/0x1a0 net/core/dev.c:8932 do_setlink+0xbed/0x3990 net/core/rtnetlink.c:2779 __rtnl_newlink net/core/rtnetlink.c:3450 [inline] rtnl_newlink+0x13fa/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 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:1723 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1749 slab_free mm/slub.c:3521 [inline] kfree+0xc4/0x270 mm/slub.c:4583 qdisc_free net/sched/sch_generic.c:1001 [inline] qdisc_free_cb+0xb2/0xe0 net/sched/sch_generic.c:1008 rcu_do_batch+0x51d/0xba0 kernel/rcu/tree.c:2523 rcu_core+0x5e4/0xf80 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+0x45a/0x8c0 kernel/smpboot.c:164 kthread+0x411/0x500 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:3007 [inline] call_rcu+0xf6/0xf60 kernel/rcu/tree.c:3125 qdisc_destroy+0x166/0x270 net/sched/sch_generic.c:1032 qdisc_put net/sched/sch_generic.c:1044 [inline] dev_shutdown+0x459/0x580 net/sched/sch_generic.c:1408 unregister_netdevice_many+0x95d/0x1990 net/core/dev.c:11143 default_device_exit_batch+0x330/0x390 net/core/dev.c:11683 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x602/0xad0 net/core/net_namespace.c:599 process_one_work+0x6be/0xba0 kernel/workqueue.c:2325 worker_thread+0xa59/0x1200 kernel/workqueue.c:2472 kthread+0x411/0x500 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff88811d8a4000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 0 bytes inside of 512-byte region [ffff88811d8a4000, ffff88811d8a4200) The buggy address belongs to the page: page:ffffea0004762900 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11d8a4 head:ffffea0004762900 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 356, ts 31584683142, free_ts 31032888147 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] __kmalloc+0x16a/0x2c0 mm/slub.c:4427 kmalloc include/linux/slab.h:621 [inline] kzalloc include/linux/slab.h:747 [inline] fib6_info_alloc+0x34/0xe0 net/ipv6/ip6_fib.c:155 ip6_route_info_create+0x526/0x1510 net/ipv6/route.c:3784 addrconf_f6i_alloc+0x154/0x360 net/ipv6/route.c:4584 ipv6_add_addr+0x40b/0xd40 net/ipv6/addrconf.c:1123 inet6_addr_add+0x480/0xa10 net/ipv6/addrconf.c:3019 inet6_rtm_newaddr+0x6c1/0x970 net/ipv6/addrconf.c:4977 rtnetlink_rcv_msg+0x9e4/0xb90 net/core/rtnetlink.c:5650 netlink_rcv_skb+0x1e0/0x430 net/netlink/af_netlink.c:2493 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1472 [inline] free_pcp_prepare mm/page_alloc.c:1544 [inline] free_unref_page_prepare+0x542/0x550 mm/page_alloc.c:3534 free_unref_page+0xa2/0x550 mm/page_alloc.c:3616 free_the_page mm/page_alloc.c:805 [inline] __free_pages+0x6c/0x100 mm/page_alloc.c:5871 __vunmap+0x84d/0x9e0 mm/vmalloc.c:2652 __vfree mm/vmalloc.c:2701 [inline] vfree+0x8b/0xc0 mm/vmalloc.c:2732 kcov_put kernel/kcov.c:417 [inline] kcov_close+0x2b/0x50 kernel/kcov.c:519 __fput+0x20b/0x8b0 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+0xa76/0x27a0 kernel/exit.c:880 do_group_exit+0x141/0x310 kernel/exit.c:1002 get_signal+0x66a/0x1480 kernel/signal.c:2907 arch_do_signal_or_restart+0xc1/0x10f0 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+0x5a/0xa0 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: ffff88811d8a3f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811d8a3f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811d8a4000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88811d8a4080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88811d8a4100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================