===================================================== BUG: KMSAN: kernel-infoleak in instrument_copy_to_user include/linux/instrumented.h:114 [inline] BUG: KMSAN: kernel-infoleak in copyout lib/iov_iter.c:167 [inline] BUG: KMSAN: kernel-infoleak in _copy_to_iter+0x37d/0x1cf0 lib/iov_iter.c:316 instrument_copy_to_user include/linux/instrumented.h:114 [inline] copyout lib/iov_iter.c:167 [inline] _copy_to_iter+0x37d/0x1cf0 lib/iov_iter.c:316 copy_to_iter include/linux/uio.h:201 [inline] simple_copy_to_iter+0x68/0xa0 net/core/datagram.c:513 __skb_datagram_iter+0x123/0xdc0 net/core/datagram.c:419 skb_copy_datagram_iter+0x5c/0x200 net/core/datagram.c:527 tun_put_user drivers/net/tun.c:2164 [inline] tun_do_read+0x2167/0x2ae0 drivers/net/tun.c:2243 tun_chr_read_iter+0x3f0/0x670 drivers/net/tun.c:2267 call_read_iter include/linux/fs.h:1979 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x8fc/0xf50 fs/read_write.c:470 ksys_read+0x20f/0x4c0 fs/read_write.c:613 __do_sys_read fs/read_write.c:623 [inline] __se_sys_read fs/read_write.c:621 [inline] __x64_sys_read+0x93/0xd0 fs/read_write.c:621 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Uninit was stored to memory at: pskb_expand_head+0x305/0x1a00 net/core/skbuff.c:2101 skb_ensure_writable+0x3d3/0x460 net/core/skbuff.c:5940 skb_checksum_help+0x540/0x860 net/core/dev.c:3306 skb_csum_hwoffload_help net/core/dev.c:3605 [inline] validate_xmit_skb+0xf84/0x1b50 net/core/dev.c:3648 validate_xmit_skb_list+0xf4/0x2f0 net/core/dev.c:3675 sch_direct_xmit+0xd0/0xd40 net/sched/sch_generic.c:327 __dev_xmit_skb net/core/dev.c:3771 [inline] __dev_queue_xmit+0x2ef1/0x52a0 net/core/dev.c:4306 dev_queue_xmit include/linux/netdevice.h:3082 [inline] neigh_hh_output include/net/neighbour.h:526 [inline] neigh_output include/net/neighbour.h:540 [inline] ip_finish_output2+0x14b8/0x1b30 net/ipv4/ip_output.c:233 __ip_finish_output+0x266/0x720 ip_finish_output+0x4b/0x550 net/ipv4/ip_output.c:321 NF_HOOK_COND include/linux/netfilter.h:293 [inline] ip_mc_output+0x609/0xd50 net/ipv4/ip_output.c:418 dst_output include/net/dst.h:458 [inline] ip_local_out+0xe9/0x140 net/ipv4/ip_output.c:127 iptunnel_xmit+0x6b4/0xb30 net/ipv4/ip_tunnel_core.c:82 ip_tunnel_xmit+0x398d/0x3e80 net/ipv4/ip_tunnel.c:831 __gre_xmit+0x170/0x1b0 net/ipv4/ip_gre.c:469 erspan_xmit+0x132e/0x1e40 net/ipv4/ip_gre.c:717 __netdev_start_xmit include/linux/netdevice.h:4889 [inline] netdev_start_xmit include/linux/netdevice.h:4903 [inline] xmit_one net/core/dev.c:3544 [inline] dev_hard_start_xmit+0x247/0xa10 net/core/dev.c:3560 sch_direct_xmit+0x3c5/0xd40 net/sched/sch_generic.c:342 __dev_xmit_skb net/core/dev.c:3771 [inline] __dev_queue_xmit+0x2ef1/0x52a0 net/core/dev.c:4306 dev_queue_xmit include/linux/netdevice.h:3082 [inline] neigh_resolve_output+0x99a/0xab0 net/core/neighbour.c:1552 neigh_output include/net/neighbour.h:542 [inline] ip_finish_output2+0x192b/0x1b30 net/ipv4/ip_output.c:233 __ip_finish_output+0x266/0x720 ip_finish_output+0x4b/0x550 net/ipv4/ip_output.c:321 NF_HOOK_COND include/linux/netfilter.h:293 [inline] ip_mc_output+0x609/0xd50 net/ipv4/ip_output.c:418 dst_output include/net/dst.h:458 [inline] ip_local_out net/ipv4/ip_output.c:127 [inline] ip_send_skb+0x110/0x2a0 net/ipv4/ip_output.c:1486 udp_send_skb+0xfd0/0x1ad0 net/ipv4/udp.c:963 udp_sendmsg+0x2ecd/0x31f0 net/ipv4/udp.c:1246 udpv6_sendmsg+0x1379/0x4000 net/ipv6/udp.c:1387 inet6_sendmsg+0x105/0x190 net/ipv6/af_inet6.c:655 sock_sendmsg_nosec net/socket.c:730 [inline] sock_sendmsg net/socket.c:753 [inline] ____sys_sendmsg+0x9c2/0xd60 net/socket.c:2541 ___sys_sendmsg+0x28d/0x3c0 net/socket.c:2595 __sys_sendmmsg+0x3c4/0x950 net/socket.c:2681 __do_sys_sendmmsg net/socket.c:2710 [inline] __se_sys_sendmmsg net/socket.c:2707 [inline] __x64_sys_sendmmsg+0xbc/0x120 net/socket.c:2707 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Uninit was stored to memory at: pskb_expand_head+0x305/0x1a00 net/core/skbuff.c:2101 __skb_cow include/linux/skbuff.h:3586 [inline] skb_cow_head include/linux/skbuff.h:3620 [inline] ip_tunnel_xmit+0x36ef/0x3e80 net/ipv4/ip_tunnel.c:824 __gre_xmit+0x170/0x1b0 net/ipv4/ip_gre.c:469 erspan_xmit+0x132e/0x1e40 net/ipv4/ip_gre.c:717 __netdev_start_xmit include/linux/netdevice.h:4889 [inline] netdev_start_xmit include/linux/netdevice.h:4903 [inline] xmit_one net/core/dev.c:3544 [inline] dev_hard_start_xmit+0x247/0xa10 net/core/dev.c:3560 sch_direct_xmit+0x3c5/0xd40 net/sched/sch_generic.c:342 __dev_xmit_skb net/core/dev.c:3771 [inline] __dev_queue_xmit+0x2ef1/0x52a0 net/core/dev.c:4306 dev_queue_xmit include/linux/netdevice.h:3082 [inline] neigh_resolve_output+0x99a/0xab0 net/core/neighbour.c:1552 neigh_output include/net/neighbour.h:542 [inline] ip_finish_output2+0x192b/0x1b30 net/ipv4/ip_output.c:233 __ip_finish_output+0x266/0x720 ip_finish_output+0x4b/0x550 net/ipv4/ip_output.c:321 NF_HOOK_COND include/linux/netfilter.h:293 [inline] ip_mc_output+0x609/0xd50 net/ipv4/ip_output.c:418 dst_output include/net/dst.h:458 [inline] ip_local_out net/ipv4/ip_output.c:127 [inline] ip_send_skb+0x110/0x2a0 net/ipv4/ip_output.c:1486 udp_send_skb+0xfd0/0x1ad0 net/ipv4/udp.c:963 udp_sendmsg+0x2ecd/0x31f0 net/ipv4/udp.c:1246 udpv6_sendmsg+0x1379/0x4000 net/ipv6/udp.c:1387 inet6_sendmsg+0x105/0x190 net/ipv6/af_inet6.c:655 sock_sendmsg_nosec net/socket.c:730 [inline] sock_sendmsg net/socket.c:753 [inline] ____sys_sendmsg+0x9c2/0xd60 net/socket.c:2541 ___sys_sendmsg+0x28d/0x3c0 net/socket.c:2595 __sys_sendmmsg+0x3c4/0x950 net/socket.c:2681 __do_sys_sendmmsg net/socket.c:2710 [inline] __se_sys_sendmmsg net/socket.c:2707 [inline] __x64_sys_sendmmsg+0xbc/0x120 net/socket.c:2707 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Uninit was created at: slab_post_alloc_hook+0x12f/0xb70 mm/slab.h:767 slab_alloc_node mm/slub.c:3478 [inline] kmem_cache_alloc_node+0x577/0xa80 mm/slub.c:3523 kmalloc_reserve+0x13d/0x4a0 net/core/skbuff.c:559 __alloc_skb+0x318/0x740 net/core/skbuff.c:650 alloc_skb include/linux/skbuff.h:1286 [inline] alloc_skb_with_frags+0xc8/0xbd0 net/core/skbuff.c:6313 sock_alloc_send_pskb+0xa80/0xbf0 net/core/sock.c:2795 sock_alloc_send_skb include/net/sock.h:1885 [inline] __ip_append_data+0x49e8/0x69a0 net/ipv4/ip_output.c:1119 ip_make_skb+0x1ce/0x610 net/ipv4/ip_output.c:1552 udp_sendmsg+0x2d6e/0x31f0 net/ipv4/udp.c:1241 udpv6_sendmsg+0x1379/0x4000 net/ipv6/udp.c:1387 inet6_sendmsg+0x105/0x190 net/ipv6/af_inet6.c:655 sock_sendmsg_nosec net/socket.c:730 [inline] sock_sendmsg net/socket.c:753 [inline] ____sys_sendmsg+0x9c2/0xd60 net/socket.c:2541 ___sys_sendmsg+0x28d/0x3c0 net/socket.c:2595 __sys_sendmmsg+0x3c4/0x950 net/socket.c:2681 __do_sys_sendmmsg net/socket.c:2710 [inline] __se_sys_sendmmsg net/socket.c:2707 [inline] __x64_sys_sendmmsg+0xbc/0x120 net/socket.c:2707 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Bytes 38-41 of 92 are uninitialized Memory access of size 92 starts at ffff88804cea5cc0 Data copied to user address 00007f84a28bf960 CPU: 1 PID: 10287 Comm: syz-executor.0 Tainted: G W 6.6.0-rc1-syzkaller-00014-ga747acc0b752 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 =====================================================