linux/drivers/misc/vmw_vmci
Vasiliy Kovalev e606e4b717 VMCI: Fix possible memcpy() run-time warning in vmci_datagram_invoke_guest_handler()
The changes are similar to those given in the commit 19b070fefd
("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>
2024-03-01 16:03:32 -08:00
..
Kconfig VMCI: Add support for ARM64 2022-04-24 17:32:14 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
vmci_context.c misc: vmw_vmci: Rename kvfree_rcu() to kvfree_rcu_mightsleep() 2023-04-05 13:48:03 +00:00
vmci_context.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 321 2019-06-05 17:37:05 +02:00
vmci_datagram.c VMCI: Fix possible memcpy() run-time warning in vmci_datagram_invoke_guest_handler() 2024-03-01 16:03:32 -08:00
vmci_datagram.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 321 2019-06-05 17:37:05 +02:00
vmci_doorbell.c misc: vmw_vmci: explicitly initialize vmci_notify_bm_set_msg struct 2021-04-05 12:29:31 +02:00
vmci_doorbell.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 321 2019-06-05 17:37:05 +02:00
vmci_driver.c vsock/vmci: make vmci_vsock_cb_host_called static 2019-11-20 12:39:29 -08:00
vmci_driver.h vsock/vmci: register vmci_transport only when VMCI guest/host are active 2019-11-14 18:12:18 -08:00
vmci_event.c misc: vmw_vmci: Rename kvfree_rcu() to kvfree_rcu_mightsleep() 2023-04-05 13:48:03 +00:00
vmci_event.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 321 2019-06-05 17:37:05 +02:00
vmci_guest.c VMCI: Use threaded irqs instead of tasklets 2023-01-20 13:24:11 +01:00
vmci_handle_array.c VMCI: Remove handle_arr_calc_size() 2023-12-15 17:27:04 +01:00
vmci_handle_array.h Char/Misc and other Driver changes for 6.8-rc1 2024-01-17 16:47:17 -08:00
vmci_host.c vmci_host: fix a race condition in vmci_host_poll() causing GPF 2023-04-05 19:37:35 +02:00
vmci_queue_pair.c use less confusing names for iov_iter direction initializers 2022-11-25 13:01:55 -05:00
vmci_queue_pair.h misc/vmw_vmci: fix typo 2021-01-26 19:18:01 +01:00
vmci_resource.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 321 2019-06-05 17:37:05 +02:00
vmci_resource.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 321 2019-06-05 17:37:05 +02:00
vmci_route.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 321 2019-06-05 17:37:05 +02:00
vmci_route.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 321 2019-06-05 17:37:05 +02:00