Re: [PATCH] tty/vt: check allocation size in con_set_unimap()

From: Kees Cook
Date: Wed Jun 03 2020 - 15:13:43 EST


On Wed, Jun 03, 2020 at 01:28:04PM +0300, Denis Efremov wrote:
> The vmemdup_user() function has no 2-factor argument form. Use array_size()
> to check for the overflow.
>
> Cc: Kees Cook <keescook@xxxxxxxxxxxx>
> Signed-off-by: Denis Efremov <efremov@xxxxxxxxx>

Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>

--
Kees Cook