================================================================== BUG: KASAN: slab-out-of-bounds in fib6_info_nh_dev+0x37/0x310 include/net/nexthop.h:536 Read of size 8 at addr ffff88803488a6d0 by task syz.4.1611/11996 CPU: 1 UID: 0 PID: 11996 Comm: syz.4.1611 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 fib6_info_nh_dev+0x37/0x310 include/net/nexthop.h:536 nft_fib6_info_nh_uses_dev+0xbc/0x150 net/ipv6/netfilter/nft_fib_ipv6.c:174 nft_fib6_eval+0x88e/0xba0 net/ipv6/netfilter/nft_fib_ipv6.c:231 expr_call_ops_eval net/netfilter/nf_tables_core.c:237 [inline] nft_do_chain+0x48d/0x1ae0 net/netfilter/nf_tables_core.c:285 nft_do_chain_inet+0x360/0x4b0 net/netfilter/nft_chain_filter.c:162 nf_hook_entry_hookfn include/linux/netfilter.h:158 [inline] nf_hook_slow+0xc5/0x220 net/netfilter/core.c:619 nf_hook include/linux/netfilter.h:273 [inline] NF_HOOK+0x21f/0x3c0 include/linux/netfilter.h:316 __netif_receive_skb_one_core net/core/dev.c:6202 [inline] __netif_receive_skb net/core/dev.c:6315 [inline] netif_receive_skb_internal net/core/dev.c:6401 [inline] netif_receive_skb+0x278/0xbf0 net/core/dev.c:6460 tun_rx_batched+0x1de/0x790 drivers/net/tun.c:1518 tun_get_user+0x2bbc/0x43e0 drivers/net/tun.c:1986 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:2032 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6f9ff5d68e 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:00007f6fa0dd3fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6fa0dd46c0 RCX: 00007f6f9ff5d68e RDX: 000000000000007a RSI: 0000200000000380 RDI: 00000000000000c8 RBP: 00007f6fa0032d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6fa0216038 R14: 00007f6fa0215fa0 R15: 00007ffd36dc6018 Allocated by task 11014: 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] __kmalloc_cache_noprof+0x31c/0x660 mm/slub.c:5419 kmalloc_noprof include/linux/slab.h:950 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] nexthop_alloc net/ipv4/nexthop.c:536 [inline] nexthop_create net/ipv4/nexthop.c:2942 [inline] nexthop_add net/ipv4/nexthop.c:3009 [inline] rtm_new_nexthop+0x28b4/0x84d0 net/ipv4/nexthop.c:3323 rtnetlink_rcv_msg+0x7d5/0xbe0 net/core/rtnetlink.c:7009 netlink_rcv_skb+0x232/0x4b0 net/netlink/af_netlink.c:2551 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x75c/0x8e0 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1895 sock_sendmsg_nosec net/socket.c:787 [inline] __sock_sendmsg net/socket.c:802 [inline] ____sys_sendmsg+0x972/0x9f0 net/socket.c:2698 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2752 __sys_sendmsg net/socket.c:2784 [inline] __do_sys_sendmsg net/socket.c:2789 [inline] __se_sys_sendmsg net/socket.c:2787 [inline] __x64_sys_sendmsg+0x1bd/0x2a0 net/socket.c:2787 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88803488a600 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 8 bytes to the right of allocated 200-byte region [ffff88803488a600, ffff88803488a6c8) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3488a head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88813fe20b40 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88813fe20b40 dead000000000100 dead000000000122 head: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000 head: 00fff00000000001 ffffffffffffff81 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5626, tgid 5626 (syz-executor), ts 78066883741, free_ts 77626938759 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x24ba/0x2540 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226 alloc_slab_page mm/slub.c:3278 [inline] allocate_slab+0x77/0x660 mm/slub.c:3467 new_slab mm/slub.c:3525 [inline] refill_objects+0x339/0x3d0 mm/slub.c:7255 refill_sheaf mm/slub.c:2816 [inline] __pcs_replace_empty_main+0x321/0x720 mm/slub.c:4651 alloc_from_pcs mm/slub.c:4749 [inline] slab_alloc_node mm/slub.c:4883 [inline] __do_kmalloc_node mm/slub.c:5294 [inline] __kmalloc_noprof+0x474/0x760 mm/slub.c:5307 kmalloc_noprof include/linux/slab.h:954 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] fib_create_info+0x1723/0x31f0 net/ipv4/fib_semantics.c:1400 fib_table_insert+0xc8/0x1b50 net/ipv4/fib_trie.c:1212 fib_magic+0x434/0x510 net/ipv4/fib_frontend.c:1134 fib_add_ifaddr+0x3fb/0x5f0 net/ipv4/fib_frontend.c:1178 fib_netdev_event+0x382/0x490 net/ipv4/fib_frontend.c:1516 notifier_call_chain+0x1ad/0x3d0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2287 [inline] call_netdevice_notifiers net/core/dev.c:2301 [inline] __dev_notify_flags+0x1a9/0x310 net/core/dev.c:9797 netif_change_flags+0xe8/0x1a0 net/core/dev.c:9826 do_setlink+0xfa5/0x45a0 net/core/rtnetlink.c:3194 page last free pid 5634 tgid 5634 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0xbc7/0xd30 mm/page_alloc.c:2943 __slab_free+0x274/0x2c0 mm/slub.c:5612 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/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:4569 [inline] slab_alloc_node mm/slub.c:4898 [inline] kmem_cache_alloc_lru_noprof+0x2b8/0x640 mm/slub.c:4917 __d_alloc+0x37/0x6f0 fs/dcache.c:1807 d_alloc+0x4b/0x190 fs/dcache.c:1886 lookup_one_qstr_excl+0xd8/0x360 fs/namei.c:1801 __start_dirop fs/namei.c:2916 [inline] start_dirop+0x5c/0x90 fs/namei.c:2938 simple_start_creating+0xcc/0x110 fs/libfs.c:2305 debugfs_start_creating+0xdb/0x1a0 fs/debugfs/inode.c:394 __debugfs_create_file+0x6f/0x400 fs/debugfs/inode.c:428 debugfs_create_file_unsafe+0x3a/0x50 fs/debugfs/inode.c:509 nsim_dev_psample_init+0x45e/0x570 drivers/net/netdevsim/psample.c:244 nsim_drv_probe+0x89d/0xc20 drivers/net/netdevsim/dev.c:1723 Memory state around the buggy address: ffff88803488a580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88803488a600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88803488a680: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ^ ffff88803488a700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88803488a780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================