EXT4-fs error (device loop4): ext4_xattr_ibody_find:2229: inode #12: comm syz-executor: corrupted in-inode xattr ================================================================== BUG: KASAN: use-after-free in ext4_read_inline_data fs/ext4/inline.c:210 [inline] BUG: KASAN: use-after-free in ext4_read_inline_dir+0x435/0xd90 fs/ext4/inline.c:1541 Read of size 68 at addr ffff88811b5b56d3 by task syz-executor/478 CPU: 1 PID: 478 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/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 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x280/0x290 mm/kasan/generic.c:189 memcpy+0x2d/0x70 mm/kasan/shadow.c:65 ext4_read_inline_data fs/ext4/inline.c:210 [inline] ext4_read_inline_dir+0x435/0xd90 fs/ext4/inline.c:1541 ext4_readdir+0x383/0x3a40 fs/ext4/dir.c:161 iterate_dir+0x260/0x600 fs/readdir.c:-1 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0xe5/0x240 fs/readdir.c:354 __x64_sys_getdents64+0x7b/0x90 fs/readdir.c:354 x64_sys_call+0x592/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:218 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:0x7f5aa9a9c0b3 Code: c1 66 0f 1f 44 00 00 48 83 c4 08 48 89 ef 5b 5d e9 62 3d f8 ff 66 90 b8 ff ff ff 7f 48 39 c2 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 c7 c2 a8 ff ff ff f7 d8 RSP: 002b:00007ffca1d7beb8 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 0000555569210520 RCX: 00007f5aa9a9c0b3 RDX: 0000000000008000 RSI: 0000555569210520 RDI: 0000000000000006 RBP: 00005555692104f4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000293 R12: ffffffffffffffa8 R13: 0000000000000016 R14: 00005555692104f0 R15: 00007ffca1d7f260 Allocated by task 58: 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:3245 [inline] slab_alloc mm/slub.c:3255 [inline] kmem_cache_alloc+0xf7/0x260 mm/slub.c:3260 dst_alloc+0x15c/0x1d0 net/core/dst.c:92 ip6_dst_alloc net/ipv6/route.c:342 [inline] icmp6_dst_alloc+0xf5/0x560 net/ipv6/route.c:3280 ndisc_send_skb+0x258/0xc70 net/ipv6/ndisc.c:493 ndisc_send_rs+0x6e5/0x960 net/ipv6/ndisc.c:707 addrconf_dad_completed+0x970/0xe70 net/ipv6/addrconf.c:4299 addrconf_dad_work+0xc72/0x1540 net/ipv6/addrconf.c:-1 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 Freed by task 534: 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 dst_destroy+0x1eb/0x2c0 net/core/dst.c:124 dst_destroy_rcu+0x19/0x20 net/core/dst.c:137 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 __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 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676 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:3011 [inline] call_rcu+0x105/0xfe0 kernel/rcu/tree.c:3129 call_rcu_hurry include/linux/rcupdate.h:90 [inline] dst_release+0x123/0x190 net/core/dst.c:181 refdst_drop include/net/dst.h:255 [inline] skb_dst_drop include/net/dst.h:267 [inline] __dev_queue_xmit+0x7b3/0x2d80 net/core/dev.c:4252 dev_queue_xmit+0x17/0x20 net/core/dev.c:4329 neigh_resolve_output+0x6cf/0x770 net/core/neighbour.c:1504 neigh_output include/net/neighbour.h:517 [inline] ip6_finish_output2+0x10b7/0x1760 net/ipv6/ip6_output.c:130 __ip6_finish_output+0x61e/0x7d0 net/ipv6/ip6_output.c:201 ip6_finish_output+0x31/0x240 net/ipv6/ip6_output.c:211 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip6_output+0x1d1/0x3b0 net/ipv6/ip6_output.c:234 dst_output include/net/dst.h:453 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] ndisc_send_skb+0x797/0xc70 net/ipv6/ndisc.c:513 ndisc_send_rs+0x6e5/0x960 net/ipv6/ndisc.c:707 addrconf_dad_completed+0x970/0xe70 net/ipv6/addrconf.c:4299 addrconf_dad_work+0xc72/0x1540 net/ipv6/addrconf.c:-1 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 ffff88811b5b5640 which belongs to the cache ip6_dst_cache of size 240 The buggy address is located 147 bytes inside of 240-byte region [ffff88811b5b5640, ffff88811b5b5730) The buggy address belongs to the page: page:ffffea00046d6d40 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11b5b5 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000122 ffff88810ae89980 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 466, ts 51700242838, free_ts 51349828138 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:5808 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa1/0x4d0 mm/slub.c:2000 ___slab_alloc+0x381/0x810 mm/slub.c:3033 __slab_alloc+0x49/0x90 mm/slub.c:3120 slab_alloc_node mm/slub.c:3211 [inline] slab_alloc mm/slub.c:3255 [inline] kmem_cache_alloc+0x138/0x260 mm/slub.c:3260 dst_alloc+0x15c/0x1d0 net/core/dst.c:92 ip6_dst_alloc net/ipv6/route.c:342 [inline] icmp6_dst_alloc+0xf5/0x560 net/ipv6/route.c:3280 mld_sendpack+0x4c0/0xb40 net/ipv6/mcast.c:1814 mld_send_cr net/ipv6/mcast.c:2126 [inline] mld_ifc_work+0x80c/0xbe0 net/ipv6/mcast.c:2658 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 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:5884 __free_slab+0xe8/0x1e0 mm/slub.c:2025 free_slab mm/slub.c:2040 [inline] discard_slab+0x29/0x40 mm/slub.c:2046 __slab_free+0x211/0x290 mm/slub.c:3431 do_slab_free mm/slub.c:3514 [inline] ___cache_free+0x104/0x120 mm/slub.c:3535 qlink_free+0x4d/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14a/0x170 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xf0 mm/kasan/common.c:443 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:3245 [inline] slab_alloc mm/slub.c:3255 [inline] kmem_cache_alloc+0xf7/0x260 mm/slub.c:3260 kmem_cache_alloc_node include/linux/slab.h:492 [inline] __alloc_skb+0xe0/0x740 net/core/skbuff.c:416 alloc_skb include/linux/skbuff.h:1183 [inline] nlmsg_new include/net/netlink.h:953 [inline] netlink_ack+0x3a6/0xb60 net/netlink/af_netlink.c:2446 netlink_rcv_skb+0x265/0x430 net/netlink/af_netlink.c:2517 Memory state around the buggy address: ffff88811b5b5580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff88811b5b5600: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb >ffff88811b5b5680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88811b5b5700: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc ffff88811b5b5780: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== EXT4-fs error (device loop4): ext4_read_inline_dir:1622: inode #12: block 7: comm syz-executor: path /0/file1/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=2239623941, rec_len=29527, size=148 fake=0 EXT4-fs error (device loop4): ext4_read_inline_dir:1622: inode #12: block 7: comm syz-executor: path /0/file1/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=2239623941, rec_len=29527, size=148 fake=0 EXT4-fs error (device loop4): empty_inline_dir:1877: inode #12: block 7: comm syz-executor: bad entry in directory: rec_len % 4 != 0 - offset=4, inode=2239623941, rec_len=29527, size=60 fake=0 EXT4-fs warning (device loop4): empty_inline_dir:1884: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs error (device loop4): ext4_read_inline_dir:1622: inode #12: block 7: comm syz-executor: path /0/file1/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=2239623941, rec_len=29527, size=148 fake=0 EXT4-fs error (device loop4): ext4_read_inline_dir:1622: inode #12: block 7: comm syz-executor: path /0/file1/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=2239623941, rec_len=29527, size=148 fake=0 EXT4-fs error (device loop4): empty_inline_dir:1877: inode #12: block 7: comm syz-executor: bad entry in directory: rec_len % 4 != 0 - offset=4, inode=2239623941, rec_len=29527, size=60 fake=0 EXT4-fs warning (device loop4): empty_inline_dir:1884: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs error (device loop4): ext4_read_inline_dir:1622: inode #12: block 7: comm syz-executor: path /0/file1/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=2239623941, rec_len=29527, size=148 fake=0 EXT4-fs error (device loop4): ext4_read_inline_dir:1622: inode #12: block 7: comm syz-executor: path /0/file1/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=2239623941, rec_len=29527, size=148 fake=0 EXT4-fs warning (device loop4): empty_inline_dir:1884: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs warning (device loop4): empty_inline_dir:1884: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs warning (device loop4): empty_inline_dir:1884: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs warning (device loop4): empty_inline_dir:1884: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs warning (device loop4): empty_inline_dir:1884: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs warning (device loop4): empty_inline_dir:1884: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs warning (device loop4): empty_inline_dir:1884: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60 EXT4-fs warning (device loop4): empty_inline_dir:1884: bad inline directory (dir #12) - inode 2239623941, rec_len 29527, name_len 58inline size 60