================================================================== BUG: KASAN: slab-out-of-bounds in macvlan_forward_source+0x5d8/0x700 drivers/net/macvlan.c:442 Read of size 2 at addr ffff8880546f0dfc by task syz.4.2847/16305 CPU: 0 UID: 0 PID: 16305 Comm: syz.4.2847 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/13/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 macvlan_forward_source+0x5d8/0x700 drivers/net/macvlan.c:442 macvlan_handle_frame+0x1ba/0x12e0 drivers/net/macvlan.c:501 __netif_receive_skb_core+0x98f/0x30a0 net/core/dev.c:6039 __netif_receive_skb_one_core net/core/dev.c:6150 [inline] __netif_receive_skb+0x72/0x370 net/core/dev.c:6265 netif_receive_skb_internal net/core/dev.c:6351 [inline] netif_receive_skb+0x1bb/0x790 net/core/dev.c:6410 tun_rx_batched+0x1de/0x790 drivers/net/tun.c:1485 tun_get_user+0x2a78/0x3dd0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:686 ksys_write+0x150/0x270 fs/read_write.c:738 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:0x7f3d6f15b58e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f3d700a9fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f3d700aa6c0 RCX: 00007f3d6f15b58e RDX: 000000000000002a RSI: 0000200000000140 RDI: 00000000000000c8 RBP: 00007f3d6f208bf7 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3d6f416038 R14: 00007f3d6f415fa0 R15: 00007ffc043085a8 Allocated by task 14755: 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+0x558/0x7f0 mm/slub.c:5764 kmemdup_noprof+0x2b/0x70 mm/util.c:138 kmemdup_noprof include/linux/fortify-string.h:765 [inline] __addrconf_sysctl_register+0xa7/0x4d0 net/ipv6/addrconf.c:7305 addrconf_sysctl_register+0x168/0x1c0 net/ipv6/addrconf.c:7371 addrconf_notify+0x808/0x1050 net/ipv6/addrconf.c:3783 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] netif_change_name+0x5e5/0x960 net/core/dev.c:1503 do_setlink+0xb6c/0x4590 net/core/rtnetlink.c:3138 rtnl_changelink net/core/rtnetlink.c:3776 [inline] __rtnl_newlink net/core/rtnetlink.c:3935 [inline] rtnl_newlink+0x15a9/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+0x80f/0x9b0 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+0x21c/0x270 net/socket.c:742 ____sys_sendmsg+0x4d7/0x810 net/socket.c:2592 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2646 __sys_sendmsg net/socket.c:2678 [inline] __do_sys_sendmsg net/socket.c:2683 [inline] __se_sys_sendmsg net/socket.c:2681 [inline] __x64_sys_sendmsg+0x1bd/0x2a0 net/socket.c:2681 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 ffff8880546f0000 which belongs to the cache kmalloc-cg-4k of size 4096 The buggy address is located 52 bytes to the right of allocated 3528-byte region [ffff8880546f0000, ffff8880546f0dc8) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x546f0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88807bbca001 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88813ff30500 ffffea0000b74e00 dead000000000002 raw: 0000000000000000 0000000000040004 00000000f5000000 ffff88807bbca001 head: 00fff00000000040 ffff88813ff30500 ffffea0000b74e00 dead000000000002 head: 0000000000000000 0000000000040004 00000000f5000000 ffff88807bbca001 head: 00fff00000000003 ffffea000151bc01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5199, tgid 5199 (udevd), ts 110864970724, free_ts 110815121060 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x228/0x280 mm/page_alloc.c:1857 prep_new_page mm/page_alloc.c:1865 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3915 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5210 alloc_pages_mpol+0x232/0x4a0 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+0xd82/0x1760 mm/slub.c:4656 __slab_alloc+0x65/0x100 mm/slub.c:4779 __slab_alloc_node mm/slub.c:4855 [inline] slab_alloc_node mm/slub.c:5251 [inline] __do_kmalloc_node mm/slub.c:5656 [inline] __kvmalloc_node_noprof+0x673/0x8d0 mm/slub.c:7136 seq_buf_alloc fs/seq_file.c:38 [inline] seq_read_iter+0x202/0xe10 fs/seq_file.c:210 new_sync_read fs/read_write.c:491 [inline] vfs_read+0x582/0xa70 fs/read_write.c:572 ksys_read+0x150/0x270 fs/read_write.c:715 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 page last free pid 7755 tgid 7755 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0xbb0/0xd10 mm/page_alloc.c:2943 discard_slab mm/slub.c:3346 [inline] __put_partials+0x146/0x170 mm/slub.c:3886 __slab_free+0x294/0x320 mm/slub.c:5952 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] kmem_cache_alloc_noprof+0x370/0x6e0 mm/slub.c:5270 getname_flags+0xb7/0x540 fs/namei.c:146 getname include/linux/fs.h:2498 [inline] __do_sys_symlinkat fs/namei.c:5571 [inline] __se_sys_symlinkat fs/namei.c:5568 [inline] __x64_sys_symlinkat+0x7a/0xb0 fs/namei.c:5568 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 Memory state around the buggy address: ffff8880546f0c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880546f0d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880546f0d80: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ^ ffff8880546f0e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880546f0e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================