================================================================== BUG: KASAN: slab-out-of-bounds in ext4_read_inline_data+0x1d0/0x2c0 fs/ext4/inline.c:214 Read of size 324 at addr ffff8880318cdc05 by task syz-executor/6226 CPU: 1 UID: 0 PID: 6226 Comm: syz-executor Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200 __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105 ext4_read_inline_data+0x1d0/0x2c0 fs/ext4/inline.c:214 ext4_inlinedir_to_tree+0x3fb/0xdc0 fs/ext4/inline.c:1286 ext4_htree_fill_tree+0x50e/0x1230 fs/ext4/namei.c:1179 ext4_dx_readdir fs/ext4/dir.c:601 [inline] ext4_readdir+0x332b/0x41b0 fs/ext4/dir.c:146 iterate_dir+0x3a5/0x580 fs/readdir.c:108 __do_sys_getdents64 fs/readdir.c:412 [inline] __se_sys_getdents64+0xf1/0x280 fs/readdir.c:397 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1256d3ce33 Code: c7 c0 e8 ff ff ff 64 c7 00 16 00 00 00 31 c0 eb 9e e8 c1 a1 fd ff 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 e8 ff ff ff f7 d8 RSP: 002b:00007ffec6431b08 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 0000555557d50a70 RCX: 00007f1256d3ce33 RDX: 0000000000008000 RSI: 0000555557d50aa0 RDI: 0000000000000006 RBP: 0000555557d50aa0 R08: 00007f1256e93ca0 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000293 R12: 0000555557d50a74 R13: ffffffffffffffe8 R14: 0000000000000016 R15: 00007ffec6434e90 Allocated by task 6228: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5657 [inline] __kmalloc_node_track_caller_noprof+0x391/0x7f0 mm/slub.c:5768 kmemdup_noprof+0x2b/0x70 mm/util.c:138 kmemdup_noprof include/linux/fortify-string.h:765 [inline] neigh_parms_alloc+0x87/0x540 net/core/neighbour.c:1747 ipv6_add_dev+0x44b/0x1400 net/ipv6/addrconf.c:403 addrconf_notify+0x771/0x1050 net/ipv6/addrconf.c:3650 notifier_call_chain+0x19d/0x3a0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2281 [inline] call_netdevice_notifiers net/core/dev.c:2295 [inline] register_netdevice+0x1731/0x1cf0 net/core/dev.c:11444 macvlan_common_newlink+0x12aa/0x1a30 drivers/net/macvlan.c:1546 rtnl_newlink_create+0x329/0xb70 net/core/rtnetlink.c:3840 __rtnl_newlink net/core/rtnetlink.c:3957 [inline] rtnl_newlink+0x1666/0x1be0 net/core/rtnetlink.c:4072 rtnetlink_rcv_msg+0x7d5/0xbe0 net/core/rtnetlink.c:6958 netlink_rcv_skb+0x232/0x4b0 net/netlink/af_netlink.c:2550 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x831/0x9f0 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x72a/0x7d0 net/socket.c:2206 __do_sys_sendto net/socket.c:2213 [inline] __se_sys_sendto net/socket.c:2209 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2209 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff8880318cdc00 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 5 bytes inside of allocated 160-byte region [ffff8880318cdc00, ffff8880318cdca0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880318cde00 pfn:0x318cd flags: 0x80000000000200(workingset|node=0|zone=1) page_type: f5(slab) raw: 0080000000000200 ffff88813fe263c0 ffffea0000d36d90 ffffea0000cbcb50 raw: ffff8880318cde00 000000000010000a 00000000f5000000 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 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 6228, tgid 6228 (syz-executor), ts 154933831474, free_ts 153292154815 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x228/0x280 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0x28bb/0x2950 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5240 alloc_pages_mpol+0xd1/0x380 mm/mempolicy.c:2486 alloc_slab_page mm/slub.c:3075 [inline] allocate_slab+0x86/0x3a0 mm/slub.c:3248 new_slab mm/slub.c:3302 [inline] ___slab_alloc+0xaf8/0x13d0 mm/slub.c:4656 __slab_alloc+0xc5/0x1f0 mm/slub.c:4779 __slab_alloc_node mm/slub.c:4855 [inline] slab_alloc_node mm/slub.c:5251 [inline] __kmalloc_cache_noprof+0x100/0x6b0 mm/slub.c:5775 kmalloc_noprof include/linux/slab.h:957 [inline] netdevice_queue_work drivers/infiniband/core/roce_gid_mgmt.c:664 [inline] netdevice_event+0x3cb/0x8f0 drivers/infiniband/core/roce_gid_mgmt.c:823 notifier_call_chain+0x19d/0x3a0 kernel/notifier.c:85 __netdev_upper_dev_link+0xa8a/0xc80 net/core/dev.c:8879 netdev_upper_dev_link+0xb0/0x100 net/core/dev.c:8920 macvlan_common_newlink+0x12f0/0x1a30 drivers/net/macvlan.c:1551 rtnl_newlink_create+0x329/0xb70 net/core/rtnetlink.c:3840 __rtnl_newlink net/core/rtnetlink.c:3957 [inline] rtnl_newlink+0x1666/0x1be0 net/core/rtnetlink.c:4072 rtnetlink_rcv_msg+0x7d5/0xbe0 net/core/rtnetlink.c:6958 page last free pid 28 tgid 28 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0xfd0/0x1160 mm/page_alloc.c:2973 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core kernel/rcu/tree.c:2857 [inline] rcu_cpu_kthread+0xbba/0x1b10 kernel/rcu/tree.c:2945 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x726/0x8b0 kernel/kthread.c:463 ret_from_fork+0x51b/0xa40 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 Memory state around the buggy address: ffff8880318cdb80: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc ffff8880318cdc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880318cdc80: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880318cdd00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880318cdd80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================