diff options
author | Vasiliy Kovalev <kovalev@altlinux.org> | 2024-02-19 13:53:15 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-13 13:01:48 +0200 |
commit | 1793e6b2dae0664cdc8a97dc1da52101bb1797eb (patch) | |
tree | f27930d34586d1ce8cac00dcc1e77e321ce79065 /kernel/debug/gdbstub.c | |
parent | dd883e0138f1d42a130dcb35a49b8820ef853638 (diff) | |
download | linux-stable-1793e6b2dae0664cdc8a97dc1da52101bb1797eb.tar.gz linux-stable-1793e6b2dae0664cdc8a97dc1da52101bb1797eb.tar.bz2 linux-stable-1793e6b2dae0664cdc8a97dc1da52101bb1797eb.zip |
VMCI: Fix possible memcpy() run-time warning in vmci_datagram_invoke_guest_handler()
commit e606e4b71798cc1df20e987dde2468e9527bd376 upstream.
The changes are similar to those given in the commit 19b070fefd0d
("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: Vasiliy Kovalev <kovalev@altlinux.org>
Link: https://lore.kernel.org/r/20240219105315.76955-1-kovalev@altlinux.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/debug/gdbstub.c')
0 files changed, 0 insertions, 0 deletions