===================================================== 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+0x376/0x1c60 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+0x376/0x1c60 lib/iov_iter.c:316 copy_to_iter include/linux/uio.h:194 [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:2159 [inline] tun_do_read+0x2167/0x2ae0 drivers/net/tun.c:2238 tun_chr_read_iter+0x3f0/0x670 drivers/net/tun.c:2262 call_read_iter include/linux/fs.h:1865 [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/0x1a10 net/core/skbuff.c:2050 __skb_cow include/linux/skbuff.h:3571 [inline] skb_cow_head include/linux/skbuff.h:3605 [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:4910 [inline] netdev_start_xmit include/linux/netdevice.h:4924 [inline] xmit_one net/core/dev.c:3537 [inline] dev_hard_start_xmit+0x247/0xa10 net/core/dev.c:3553 sch_direct_xmit+0x3c5/0xd40 net/sched/sch_generic.c:342 __dev_xmit_skb net/core/dev.c:3764 [inline] __dev_queue_xmit+0x2f1c/0x50f0 net/core/dev.c:4169 dev_queue_xmit include/linux/netdevice.h:3088 [inline] neigh_resolve_output+0x99a/0xab0 net/core/neighbour.c:1552 neigh_output include/net/neighbour.h:544 [inline] ip_finish_output2+0x1807/0x1a10 net/ipv4/ip_output.c:230 __ip_finish_output+0x266/0x720 ip_finish_output+0x4b/0x420 net/ipv4/ip_output.c:318 NF_HOOK_COND include/linux/netfilter.h:292 [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:1477 udp_send_skb+0xfd0/0x1ad0 net/ipv4/udp.c:979 udp_push_pending_frames net/ipv4/udp.c:1007 [inline] udp_sendmsg+0xa0a/0x31b0 net/ipv4/udp.c:1293 inet_sendmsg+0x105/0x190 net/ipv4/af_inet.c:830 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg net/socket.c:748 [inline] __sys_sendto+0x781/0xa30 net/socket.c:2134 __do_sys_sendto net/socket.c:2146 [inline] __se_sys_sendto net/socket.c:2142 [inline] __x64_sys_sendto+0x125/0x1c0 net/socket.c:2142 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:3470 [inline] kmem_cache_alloc_node+0x577/0xa80 mm/slub.c:3515 kmalloc_reserve+0x148/0x470 net/core/skbuff.c:559 __alloc_skb+0x318/0x740 net/core/skbuff.c:644 alloc_skb include/linux/skbuff.h:1289 [inline] alloc_skb_with_frags+0xbd/0xbb0 net/core/skbuff.c:6233 sock_alloc_send_pskb+0xa80/0xbf0 net/core/sock.c:2782 sock_alloc_send_skb include/net/sock.h:1871 [inline] __ip_append_data+0x4923/0x68f0 net/ipv4/ip_output.c:1120 ip_append_data+0x1f1/0x260 net/ipv4/ip_output.c:1352 udp_sendmsg+0x4e4/0x31b0 net/ipv4/udp.c:1287 inet_sendmsg+0x105/0x190 net/ipv4/af_inet.c:830 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg net/socket.c:748 [inline] ____sys_sendmsg+0x9c2/0xd60 net/socket.c:2494 ___sys_sendmsg+0x28d/0x3c0 net/socket.c:2548 __sys_sendmmsg+0x3c4/0x950 net/socket.c:2634 __do_sys_sendmmsg net/socket.c:2663 [inline] __se_sys_sendmmsg net/socket.c:2660 [inline] __x64_sys_sendmmsg+0xbc/0x120 net/socket.c:2660 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 ffff88805ee8a4c0 Data copied to user address 00007f462c6bf960 CPU: 1 PID: 32013 Comm: syz-executor.4 Not tainted 6.5.0-rc3-syzkaller-00018-g0b5547c51827 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 =====================================================