===================================================== BUG: KMSAN: kernel-infoleak in instrument_copy_to_user include/linux/instrumented.h:114 [inline] BUG: KMSAN: kernel-infoleak in copyout+0xb8/0x100 lib/iov_iter.c:169 instrument_copy_to_user include/linux/instrumented.h:114 [inline] copyout+0xb8/0x100 lib/iov_iter.c:169 _copy_to_iter+0x6d8/0x1d00 lib/iov_iter.c:536 copy_to_iter include/linux/uio.h:206 [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 skb_copy_datagram_msg include/linux/skbuff.h:3950 [inline] netlink_recvmsg+0x4ae/0x15a0 net/netlink/af_netlink.c:1970 sock_recvmsg_nosec net/socket.c:1019 [inline] sock_recvmsg net/socket.c:1040 [inline] ____sys_recvmsg+0x283/0x7f0 net/socket.c:2722 ___sys_recvmsg+0x223/0x840 net/socket.c:2764 do_recvmmsg+0x4f9/0xfd0 net/socket.c:2858 __sys_recvmmsg net/socket.c:2937 [inline] __do_sys_recvmmsg net/socket.c:2960 [inline] __se_sys_recvmmsg net/socket.c:2953 [inline] __x64_sys_recvmmsg+0x397/0x490 net/socket.c:2953 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: copy_to_user_auth net/xfrm/xfrm_user.c:998 [inline] copy_to_user_state_extra+0xfa3/0x1e80 net/xfrm/xfrm_user.c:1130 dump_one_state+0x2cc/0x7c0 net/xfrm/xfrm_user.c:1208 xfrm_state_walk+0x721/0x1300 net/xfrm/xfrm_state.c:2309 xfrm_dump_sa+0x1de/0x6a0 net/xfrm/xfrm_user.c:1279 netlink_dump+0x9d1/0x1310 net/netlink/af_netlink.c:2268 __netlink_dump_start+0xa75/0xc40 net/netlink/af_netlink.c:2373 netlink_dump_start include/linux/netlink.h:329 [inline] xfrm_user_rcv_msg+0x75e/0xf30 net/xfrm/xfrm_user.c:3135 netlink_rcv_skb+0x371/0x650 net/netlink/af_netlink.c:2546 xfrm_netlink_rcv+0x76/0xb0 net/xfrm/xfrm_user.c:3172 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0xf28/0x1230 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x122f/0x13d0 net/netlink/af_netlink.c:1913 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg net/socket.c:747 [inline] ____sys_sendmsg+0x999/0xd50 net/socket.c:2503 ___sys_sendmsg+0x28d/0x3c0 net/socket.c:2557 __sys_sendmsg net/socket.c:2586 [inline] __do_sys_sendmsg net/socket.c:2595 [inline] __se_sys_sendmsg net/socket.c:2593 [inline] __x64_sys_sendmsg+0x304/0x490 net/socket.c:2593 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+0x12d/0xb60 mm/slab.h:716 slab_alloc_node mm/slub.c:3451 [inline] __kmem_cache_alloc_node+0x4ff/0x8b0 mm/slub.c:3490 __do_kmalloc_node mm/slab_common.c:965 [inline] __kmalloc+0x121/0x3c0 mm/slab_common.c:979 kmalloc include/linux/slab.h:563 [inline] attach_auth net/xfrm/xfrm_user.c:442 [inline] xfrm_state_construct net/xfrm/xfrm_user.c:716 [inline] xfrm_add_sa+0x29a7/0x4580 net/xfrm/xfrm_user.c:795 xfrm_user_rcv_msg+0xbcb/0xf30 net/xfrm/xfrm_user.c:3150 netlink_rcv_skb+0x371/0x650 net/netlink/af_netlink.c:2546 xfrm_netlink_rcv+0x76/0xb0 net/xfrm/xfrm_user.c:3172 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0xf28/0x1230 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x122f/0x13d0 net/netlink/af_netlink.c:1913 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg net/socket.c:747 [inline] ____sys_sendmsg+0x999/0xd50 net/socket.c:2503 ___sys_sendmsg+0x28d/0x3c0 net/socket.c:2557 __sys_sendmsg net/socket.c:2586 [inline] __do_sys_sendmsg net/socket.c:2595 [inline] __se_sys_sendmsg net/socket.c:2593 [inline] __x64_sys_sendmsg+0x304/0x490 net/socket.c:2593 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 116-135 of 136 are uninitialized Memory access of size 136 starts at ffff88809b5800d4 Data copied to user address 0000000020000280 CPU: 1 PID: 25335 Comm: syz-executor.1 Not tainted 6.4.0-rc3-syzkaller-gf93f2feda5d6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 =====================================================