[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202408281832.4E29E7727C@keescook>
Date: Wed, 28 Aug 2024 18:32:46 -0700
From: Kees Cook <kees@...nel.org>
To: Jinjie Ruan <ruanjinjie@...wei.com>
Cc: brauner@...nel.org, akpm@...ux-foundation.org, zeming@...china.com,
adobriyan@...il.com, rdunlap@...radead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next] user_namespace: Use kmemdup_array() instead of
kmemdup() for multiple allocation
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@...wei.com>
Reviewed-by: Kees Cook <kees@...nel.org>
--
Kees Cook
Powered by blists - more mailing lists