diff options
author | Artem Chernyshev <artem.chernyshev@red-soft.ru> | 2022-12-06 09:58:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-12-09 08:45:44 +0000 |
commit | 44aa5a6dba8283bfda28b1517af4de711c5652a4 (patch) | |
tree | f0dfa6298f4a1376ff2444aec263a138c6c4d71a /kernel/bpf/arraymap.c | |
parent | 010b6761a9fc5006267d99abb6f9f196bf5d3d13 (diff) |
net: vmw_vsock: vmci: Check memcpy_from_msg()
vmci_transport_dgram_enqueue() does not check the return value
of memcpy_from_msg(). If memcpy_from_msg() fails, it is possible that
uninitialized memory contents are sent unintentionally instead of user's
message in the datagram to the destination. Return with an error if
memcpy_from_msg() fails.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 0f7db23a07af ("vmci_transport: switch ->enqeue_dgram, ->enqueue_stream and ->dequeue_stream to msghdr")
Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Vishnu Dasa <vdasa@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/bpf/arraymap.c')
0 files changed, 0 insertions, 0 deletions