]> git.ipfire.org Git - thirdparty/grub.git/commit
kern/efi/init: Log a console error during a stack check failure
authorChris Coulson <chris.coulson@canonical.com>
Mon, 21 Mar 2022 15:14:39 +0000 (15:14 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 4 Apr 2022 20:26:31 +0000 (22:26 +0200)
commit37ddd9457f13f92fd176bbb2951cfc1fbc93e6f7
tree5d882312b8af73d7ffe60207cb7357ce7cf9d90b
parenta97d1ebb8eda29f5676d6b347b3698598e8519eb
kern/efi/init: Log a console error during a stack check failure

The initial implementation of the stack protector just busy looped
in __stack_chk_fail in order to reduce the amount of code being
executed after the stack has been compromised because of a lack of
firmware memory protections. With future firmware implementations
incorporating memory protections such as W^X, call in to boot services
when an error occurs in order to log a message to the console before
automatically rebooting the machine.

Signed-off-by: Chris Coulson <chris.coulson@canonical.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/Makefile.core.def
grub-core/kern/efi/init.c