===================================================== 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:2095 __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+0x1844/0x1a50 net/ipv4/ip_output.c:230 __ip_finish_output+0x266/0x720 ip_finish_output+0x4b/0x550 net/ipv4/ip_output.c:318 NF_HOOK_COND include/linux/netfilter.h:293 [inline] ip_output+0x1f3/0x4e0 net/ipv4/ip_output.c:432 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:1487 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:2540 ___sys_sendmsg+0x28d/0x3c0 net/socket.c:2594 __sys_sendmmsg+0x3c4/0x950 net/socket.c:2680 __do_sys_sendmmsg net/socket.c:2709 [inline] __se_sys_sendmmsg net/socket.c:2706 [inline] __x64_sys_sendmmsg+0xbc/0x120 net/socket.c:2706 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+0x148/0x470 net/core/skbuff.c:559 __alloc_skb+0x318/0x740 net/core/skbuff.c:644 alloc_skb include/linux/skbuff.h:1286 [inline] alloc_skb_with_frags+0xc8/0xbd0 net/core/skbuff.c:6299 sock_alloc_send_pskb+0xa80/0xbf0 net/core/sock.c:2794 sock_alloc_send_skb include/net/sock.h:1879 [inline] __ip_append_data+0x49e8/0x69a0 net/ipv4/ip_output.c:1120 ip_make_skb+0x1ce/0x610 net/ipv4/ip_output.c:1553 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:2540 ___sys_sendmsg+0x28d/0x3c0 net/socket.c:2594 __sys_sendmmsg+0x3c4/0x950 net/socket.c:2680 __do_sys_sendmmsg net/socket.c:2709 [inline] __se_sys_sendmmsg net/socket.c:2706 [inline] __x64_sys_sendmmsg+0xbc/0x120 net/socket.c:2706 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 ffff88811b1bb4c0 Data copied to user address 00007fbe014bf960 CPU: 1 PID: 8232 Comm: syz-executor.1 Not tainted 6.5.0-syzkaller-08262-gef2a0b7cdbc5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 =====================================================