Re: [PATCH v2 1/2] VMCI: Use struct_size() in kmalloc()

From: Kees Cook
Date: Thu Feb 01 2024 - 13:12:21 EST


On Fri, 05 Jan 2024 08:39:59 -0800, Harshit Mogalapalli wrote:
> Use struct_size() instead of open coding.
>
>

Applied to for-next/hardening, thanks!

[1/2] VMCI: Use struct_size() in kmalloc()
https://git.kernel.org/kees/c/e03d4910e6e4
[2/2] VMCI: Fix memcpy() run-time warning in dg_dispatch_as_host()
https://git.kernel.org/kees/c/19b070fefd0d

Take care,

--
Kees Cook