================================================================== BUG: KASAN: use-after-free in ext4_xattr_delete_inode+0xcd0/0xce0 fs/ext4/xattr.c:2904 Read of size 4 at addr ffff88807f7f3000 by task syz-executor.0/3527 CPU: 1 PID: 3527 Comm: syz-executor.0 Not tainted 5.15.160-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_address_description+0x63/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x16b/0x1c0 mm/kasan/report.c:451 ext4_xattr_delete_inode+0xcd0/0xce0 fs/ext4/xattr.c:2904 ext4_evict_inode+0xcb7/0x1100 fs/ext4/inode.c:299 evict+0x2a4/0x620 fs/inode.c:587 d_delete_notify include/linux/fsnotify.h:261 [inline] vfs_rmdir+0x33c/0x460 fs/namei.c:4162 do_rmdir+0x368/0x670 fs/namei.c:4210 __do_sys_unlinkat fs/namei.c:4390 [inline] __se_sys_unlinkat fs/namei.c:4384 [inline] __x64_sys_unlinkat+0xdc/0xf0 fs/namei.c:4384 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f80b9f6d747 Code: 73 01 c3 48 c7 c1 b0 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fffe995e0c8 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007f80b9f6d747 RDX: 0000000000000200 RSI: 00007fffe995f270 RDI: 00000000ffffff9c RBP: 00007f80b9fca636 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000207 R12: 00007fffe995f270 R13: 00007f80b9fca636 R14: 000000000004828d R15: 0000000000000008 Allocated by task 3889: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x8e/0xc0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x53/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] kmem_cache_alloc_node+0x121/0x2c0 mm/slub.c:3256 __alloc_skb+0xdd/0x590 net/core/skbuff.c:415 alloc_skb include/linux/skbuff.h:1167 [inline] nlmsg_new include/net/netlink.h:953 [inline] inet6_rt_notify+0xdc/0x280 net/ipv6/route.c:6178 fib6_del_route net/ipv6/ip6_fib.c:1992 [inline] fib6_del+0x109b/0x1570 net/ipv6/ip6_fib.c:2027 fib6_clean_node+0x2ed/0x5d0 net/ipv6/ip6_fib.c:2189 fib6_walk_continue+0x636/0x8c0 net/ipv6/ip6_fib.c:2111 fib6_walk+0x168/0x2b0 net/ipv6/ip6_fib.c:2159 fib6_clean_tree net/ipv6/ip6_fib.c:2239 [inline] __fib6_clean_all+0x2f8/0x480 net/ipv6/ip6_fib.c:2255 rt6_sync_down_dev net/ipv6/route.c:4912 [inline] rt6_disable_ip+0x15d/0x6c0 net/ipv6/route.c:4917 addrconf_ifdown+0x161/0x1bb0 net/ipv6/addrconf.c:3777 addrconf_notify+0x432/0xf30 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2018 [inline] call_netdevice_notifiers_extack net/core/dev.c:2030 [inline] call_netdevice_notifiers net/core/dev.c:2044 [inline] dev_close_many+0x37c/0x530 net/core/dev.c:1619 unregister_netdevice_many+0x4b0/0x18f0 net/core/dev.c:11069 default_device_exit_batch+0x390/0x3f0 net/core/dev.c:11626 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x763/0xb60 net/core/net_namespace.c:599 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 Freed by task 3889: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x80 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0xd8/0x120 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0xdd/0x160 mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kmem_cache_free+0x91/0x1f0 mm/slub.c:3515 netlink_broadcast_filtered+0x1083/0x11a0 net/netlink/af_netlink.c:1540 netlink_broadcast net/netlink/af_netlink.c:1562 [inline] nlmsg_multicast include/net/netlink.h:1033 [inline] nlmsg_notify+0xf7/0x1b0 net/netlink/af_netlink.c:2551 fib6_del_route net/ipv6/ip6_fib.c:1992 [inline] fib6_del+0x109b/0x1570 net/ipv6/ip6_fib.c:2027 fib6_clean_node+0x2ed/0x5d0 net/ipv6/ip6_fib.c:2189 fib6_walk_continue+0x636/0x8c0 net/ipv6/ip6_fib.c:2111 fib6_walk+0x168/0x2b0 net/ipv6/ip6_fib.c:2159 fib6_clean_tree net/ipv6/ip6_fib.c:2239 [inline] __fib6_clean_all+0x2f8/0x480 net/ipv6/ip6_fib.c:2255 rt6_sync_down_dev net/ipv6/route.c:4912 [inline] rt6_disable_ip+0x15d/0x6c0 net/ipv6/route.c:4917 addrconf_ifdown+0x161/0x1bb0 net/ipv6/addrconf.c:3777 addrconf_notify+0x432/0xf30 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2018 [inline] call_netdevice_notifiers_extack net/core/dev.c:2030 [inline] call_netdevice_notifiers net/core/dev.c:2044 [inline] dev_close_many+0x37c/0x530 net/core/dev.c:1619 unregister_netdevice_many+0x4b0/0x18f0 net/core/dev.c:11069 default_device_exit_batch+0x390/0x3f0 net/core/dev.c:11626 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x763/0xb60 net/core/net_namespace.c:599 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 The buggy address belongs to the object at ffff88807f7f3000 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 0 bytes inside of 232-byte region [ffff88807f7f3000, ffff88807f7f30e8) The buggy address belongs to the page: page:ffffea0001fdfcc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7f7f3 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000122 ffff888144bf1140 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 3889, ts 295194862442, free_ts 295001400972 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159 __alloc_pages+0x272/0x700 mm/page_alloc.c:5423 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xbb/0x4b0 mm/slub.c:1975 ___slab_alloc+0x6f6/0xe10 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] kmem_cache_alloc_node+0x1ba/0x2c0 mm/slub.c:3256 __alloc_skb+0xdd/0x590 net/core/skbuff.c:415 alloc_skb include/linux/skbuff.h:1167 [inline] nlmsg_new include/net/netlink.h:953 [inline] inet6_rt_notify+0xdc/0x280 net/ipv6/route.c:6178 fib6_del_route net/ipv6/ip6_fib.c:1992 [inline] fib6_del+0x109b/0x1570 net/ipv6/ip6_fib.c:2027 fib6_clean_node+0x2ed/0x5d0 net/ipv6/ip6_fib.c:2189 fib6_walk_continue+0x636/0x8c0 net/ipv6/ip6_fib.c:2111 fib6_walk+0x168/0x2b0 net/ipv6/ip6_fib.c:2159 fib6_clean_tree net/ipv6/ip6_fib.c:2239 [inline] __fib6_clean_all+0x2f8/0x480 net/ipv6/ip6_fib.c:2255 rt6_sync_down_dev net/ipv6/route.c:4912 [inline] rt6_disable_ip+0x15d/0x6c0 net/ipv6/route.c:4917 addrconf_ifdown+0x161/0x1bb0 net/ipv6/addrconf.c:3777 addrconf_notify+0x432/0xf30 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:391 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0xc34/0xcf0 mm/page_alloc.c:3317 free_unref_page+0x95/0x2d0 mm/page_alloc.c:3396 __vunmap+0x8d4/0xa20 mm/vmalloc.c:2621 free_work+0x57/0x80 mm/vmalloc.c:95 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 Memory state around the buggy address: ffff88807f7f2f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807f7f2f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88807f7f3000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807f7f3080: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ffff88807f7f3100: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ==================================================================