================================================================== BUG: KASAN: slab-out-of-bounds in dump_ipv6_mac_header net/netfilter/nf_log_syslog.c:891 [inline] BUG: KASAN: slab-out-of-bounds in nf_log_ip6_packet+0x848/0x960 net/netfilter/nf_log_syslog.c:930 Read of size 1 at addr ffff88806097ffff by task kworker/1:5/4266 CPU: 1 PID: 4266 Comm: kworker/1:5 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Workqueue: mld mld_ifc_work Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 dump_ipv6_mac_header net/netfilter/nf_log_syslog.c:891 [inline] nf_log_ip6_packet+0x848/0x960 net/netfilter/nf_log_syslog.c:930 nf_log_packet+0x446/0x5f0 net/netfilter/nf_log.c:229 nft_log_eval+0x2c0/0x3b0 net/netfilter/nft_log.c:60 expr_call_ops_eval net/netfilter/nf_tables_core.c:198 [inline] nft_do_chain+0x491/0x14d0 net/netfilter/nf_tables_core.c:238 nft_do_chain_inet+0x25c/0x340 net/netfilter/nft_chain_filter.c:161 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline] nf_hook_slow+0xb9/0x200 net/netfilter/core.c:584 nf_hook+0x205/0x360 include/linux/netfilter.h:257 NF_HOOK_COND include/linux/netfilter.h:290 [inline] ip6_output+0x273/0x3b0 net/ipv6/ip6_output.c:236 dst_output include/net/dst.h:452 [inline] NF_HOOK+0x165/0x460 include/linux/netfilter.h:302 mld_sendpack+0x6ee/0xc40 net/ipv6/mcast.c:1853 mld_send_cr net/ipv6/mcast.c:2152 [inline] mld_ifc_work+0x843/0xd60 net/ipv6/mcast.c:2688 process_one_work+0x867/0xff0 kernel/workqueue.c:2310 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457 kthread+0x42e/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Allocated by task 4875: 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_kmalloc mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xaf/0xe0 mm/kasan/common.c:522 kmalloc include/linux/slab.h:612 [inline] tomoyo_realpath_from_path+0xed/0x5e0 security/tomoyo/realpath.c:254 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x23f/0x5d0 security/tomoyo/file.c:822 tomoyo_path_rmdir+0xa7/0xf0 security/tomoyo/tomoyo.c:182 security_path_rmdir+0xd8/0x130 security/security.c:1213 do_rmdir+0x206/0x710 fs/namei.c:4257 __do_sys_unlinkat fs/namei.c:4441 [inline] __se_sys_unlinkat fs/namei.c:4435 [inline] __x64_sys_unlinkat+0xc0/0xe0 fs/namei.c:4435 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 4875: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0xd5/0x110 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1710 [inline] slab_free_freelist_hook+0xec/0x170 mm/slub.c:1736 slab_free mm/slub.c:3504 [inline] kfree+0xef/0x2a0 mm/slub.c:4564 tomoyo_realpath_from_path+0x5ad/0x5e0 security/tomoyo/realpath.c:291 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x23f/0x5d0 security/tomoyo/file.c:822 tomoyo_path_rmdir+0xa7/0xf0 security/tomoyo/tomoyo.c:182 security_path_rmdir+0xd8/0x130 security/security.c:1213 do_rmdir+0x206/0x710 fs/namei.c:4257 __do_sys_unlinkat fs/namei.c:4441 [inline] __se_sys_unlinkat fs/namei.c:4435 [inline] __x64_sys_unlinkat+0xc0/0xe0 fs/namei.c:4435 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 The buggy address belongs to the object at ffff88806097e000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 4095 bytes to the right of 4096-byte region [ffff88806097e000, ffff88806097f000) The buggy address belongs to the page: page:ffffea0001825e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x60978 head:ffffea0001825e00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 0000000100000001 ffff888017842140 raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000 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 4190, ts 68039930989, free_ts 22649396298 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x807/0xdd0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc_trace+0xf9/0x290 mm/slub.c:3250 kmalloc include/linux/slab.h:607 [inline] kzalloc include/linux/slab.h:738 [inline] kobject_uevent_env+0x275/0x890 lib/kobject_uevent.c:539 device_add+0xac2/0x1050 drivers/base/core.c:3393 device_create_groups_vargs drivers/base/core.c:4123 [inline] device_create+0x266/0x300 drivers/base/core.c:4165 macvtap_device_event+0x2ce/0x3f0 drivers/net/macvtap.c:177 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:391 call_netdevice_notifiers_extack net/core/dev.c:2074 [inline] call_netdevice_notifiers net/core/dev.c:2088 [inline] register_netdevice+0x12a8/0x1720 net/core/dev.c:10455 macvlan_common_newlink+0x1119/0x18a0 drivers/net/macvlan.c:1509 macvtap_newlink+0x150/0x1d0 drivers/net/macvtap.c:109 __rtnl_newlink net/core/rtnetlink.c:3538 [inline] rtnl_newlink+0x139e/0x1920 net/core/rtnetlink.c:3586 rtnetlink_rcv_msg+0x7f1/0xf10 net/core/rtnetlink.c:5698 netlink_rcv_skb+0x1e9/0x430 net/netlink/af_netlink.c:2519 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+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3396 free_contig_range+0x96/0xf0 mm/page_alloc.c:9428 destroy_args+0xef/0xa00 mm/debug_vm_pgtable.c:1018 debug_vm_pgtable+0x321/0x380 mm/debug_vm_pgtable.c:1336 do_one_initcall+0x272/0x730 init/main.c:1276 do_initcall_level+0x13d/0x1f0 init/main.c:1349 do_initcalls+0x4b/0x90 init/main.c:1365 kernel_init_freeable+0x3d5/0x560 init/main.c:1589 kernel_init+0x19/0x1b0 init/main.c:1480 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff88806097fe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806097ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88806097ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888060980000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888060980080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================