===================================================== BUG: KMSAN: uninit-value in eth_skb_pkt_type include/linux/etherdevice.h:628 [inline] BUG: KMSAN: uninit-value in eth_type_trans+0x7aa/0x990 net/ethernet/eth.c:165 eth_skb_pkt_type include/linux/etherdevice.h:628 [inline] eth_type_trans+0x7aa/0x990 net/ethernet/eth.c:165 bpf_prog_run_generic_xdp+0x11a6/0x1f20 net/core/dev.c:5228 netif_receive_generic_xdp net/core/dev.c:5304 [inline] do_xdp_generic+0xc0d/0x15a0 net/core/dev.c:5366 tun_get_user+0x4952/0x6e50 drivers/net/tun.c:1929 tun_chr_write_iter+0x3ac/0x5d0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xb34/0x1540 fs/read_write.c:679 ksys_write+0x240/0x4b0 fs/read_write.c:731 __do_sys_write fs/read_write.c:742 [inline] __se_sys_write fs/read_write.c:739 [inline] __x64_sys_write+0x93/0xe0 fs/read_write.c:739 x64_sys_call+0x3161/0x3c30 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: pskb_expand_head+0x33a/0x1b70 net/core/skbuff.c:2193 netif_skb_check_for_xdp net/core/dev.c:5267 [inline] netif_receive_generic_xdp net/core/dev.c:5298 [inline] do_xdp_generic+0x9e3/0x15a0 net/core/dev.c:5366 tun_get_user+0x4952/0x6e50 drivers/net/tun.c:1929 tun_chr_write_iter+0x3ac/0x5d0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xb34/0x1540 fs/read_write.c:679 ksys_write+0x240/0x4b0 fs/read_write.c:731 __do_sys_write fs/read_write.c:742 [inline] __se_sys_write fs/read_write.c:739 [inline] __x64_sys_write+0x93/0xe0 fs/read_write.c:739 x64_sys_call+0x3161/0x3c30 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was created at: slab_post_alloc_hook mm/slub.c:4121 [inline] slab_alloc_node mm/slub.c:4164 [inline] __do_kmalloc_node mm/slub.c:4293 [inline] __kmalloc_node_track_caller_noprof+0x945/0x1240 mm/slub.c:4313 kmalloc_reserve+0x23e/0x4a0 net/core/skbuff.c:537 __alloc_skb+0x363/0x7b0 net/core/skbuff.c:606 alloc_skb include/linux/skbuff.h:1331 [inline] alloc_skb_with_frags+0xc8/0xd00 net/core/skbuff.c:6522 sock_alloc_send_pskb+0xa81/0xbf0 net/core/sock.c:2914 tun_alloc_skb drivers/net/tun.c:1526 [inline] tun_get_user+0x1c6d/0x6e50 drivers/net/tun.c:1851 tun_chr_write_iter+0x3ac/0x5d0 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xb34/0x1540 fs/read_write.c:679 ksys_write+0x240/0x4b0 fs/read_write.c:731 __do_sys_write fs/read_write.c:742 [inline] __se_sys_write fs/read_write.c:739 [inline] __x64_sys_write+0x93/0xe0 fs/read_write.c:739 x64_sys_call+0x3161/0x3c30 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f CPU: 1 UID: 0 PID: 10552 Comm: syz.2.1349 Not tainted 6.14.0-rc6-syzkaller-00202-ga29967be967e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 =====================================================