Skip to content
Commit 91fb03ce authored by Vasiliy Kovalev's avatar Vasiliy Kovalev Committed by Greg Kroah-Hartman
Browse files

VMCI: Fix possible memcpy() run-time warning in vmci_datagram_invoke_guest_handler()



commit e606e4b7 upstream.

The changes are similar to those given in the commit 19b070fe
("VMCI: Fix memcpy() run-time warning in dg_dispatch_as_host()").

Fix filling of the msg and msg_payload in dg_info struct, which prevents a
possible "detected field-spanning write" of memcpy warning that is issued
by the tracking mechanism __fortify_memcpy_chk.

Signed-off-by: default avatarVasiliy Kovalev <kovalev@altlinux.org>
Link: https://lore.kernel.org/r/20240219105315.76955-1-kovalev@altlinux.org


Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b456cb98
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment