[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202006031213.22D9D875@keescook>
Date: Wed, 3 Jun 2020 12:13:38 -0700
From: Kees Cook <keescook@...omium.org>
To: Denis Efremov <efremov@...ux.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jslaby@...e.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] tty/vt: check allocation size in con_set_unimap()
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@...omium.org>
> Signed-off-by: Denis Efremov <efremov@...ux.com>
Reviewed-by: Kees Cook <keescook@...omium.org>
--
Kees Cook
Powered by blists - more mailing lists