UPSTREAM: console: Expand dummy functions for CFI
authorKees Cook <keescook@chromium.org>
Tue, 27 Feb 2018 00:04:20 +0000 (16:04 -0800)
committerSami Tolvanen <samitolvanen@google.com>
Wed, 25 Apr 2018 23:04:04 +0000 (16:04 -0700)
commitd354d0d06129444ecf8e6b47e9551581c9565ba8
treea8d5b3208a30cc1700f0e56e2173d88b8b946828
parent25ed8eed265a07f08c1a81653cfe4c4b0ef5f9c4
UPSTREAM: console: Expand dummy functions for CFI

This expands the no-op dummy functions into full prototypes to avoid
indirect call mismatches when running under Control Flow Integrity
checking, like with Clang's -fsanitize=cfi.

Co-Developed-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: If63cf04ad86b55afb1442ef4037b5f575457ea06
(cherry picked from commit c396a5bf457fb60159dcedbd4f48d53a62be030a)
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
drivers/usb/misc/sisusbvga/sisusb_con.c
drivers/video/console/dummycon.c
drivers/video/console/newport_con.c
drivers/video/console/vgacon.c
drivers/video/fbdev/core/fbcon.c