OSDN Git Service

console: Expand dummy functions for CFI
authorKees Cook <keescook@chromium.org>
Tue, 27 Feb 2018 00:04:20 +0000 (16:04 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Feb 2018 09:17:33 +0000 (10:17 +0100)
commitc396a5bf457fb60159dcedbd4f48d53a62be030a
tree7204e7a8f557baf359c0788796658997614d8a58
parent209f668cd29d2b6b9f39a0b9f179ee40f47c2014
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>
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