Re: [PATCH -next] user_namespace: Use kmemdup_array() instead of kmemdup() for multiple allocation
From: Kees Cook
Date: Wed Aug 28 2024 - 21:32:54 EST
On Wed, Aug 28, 2024 at 03:23:40PM +0800, Jinjie Ruan wrote:
> Let the kmemdup_array() take care about multiplication and possible
> overflows.
>
> Signed-off-by: Jinjie Ruan <ruanjinjie@xxxxxxxxxx>
Reviewed-by: Kees Cook <kees@xxxxxxxxxx>
--
Kees Cook