Skip to content
Commit 5de30b28 authored by Denis Efremov's avatar Denis Efremov Committed by Greg Kroah-Hartman
Browse files

tty/vt: check allocation size in con_set_unimap()



The vmemdup_user() function has no 2-factor argument form. Use array_size()
to check for the overflow.

Signed-off-by: default avatarDenis Efremov <efremov@linux.com>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20200603102804.2110817-1-efremov@linux.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5ba12787
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment