freebsd-skq/stand/efi/loader
andrew abf44e17e8 Ensure we have a large enough stack for the lua loader
Lua has a few places where it allocates a large buffer on the stack. This
is normally fine, except there are a few places where there can be multiple
frames with this buffer. This can cause a stack overflow on some arm64 SoCs.

Fix this by allocating our own stack in loader.efi large enough for these
objects. The required size has been found by tracing how the stack pointer
changes in a virtual machine and found to be no larger than 50kB. A
larger stack is allocated to reduce the likelihood of overflow from future
changes.

Reviewed by:	kevans
Approved by:	re (kib)
Differential Revision:	https://reviews.freebsd.org/D16886
2018-08-27 11:14:49 +00:00
..
arch Ensure we have a large enough stack for the lua loader 2018-08-27 11:14:49 +00:00
autoload.c efiloader: Setup FDT in autoload to fix overlays clobbering kenv 2018-08-23 13:38:38 +00:00
bootinfo.c Fix casts between 64-bit physical addresses and pointers in EFI. 2018-08-18 20:28:25 +00:00
conf.c
copy.c Fix casts between 64-bit physical addresses and pointers in EFI. 2018-08-18 20:28:25 +00:00
efi_main.c
framebuffer.c efi-autoresizecons: Don't fail the boot w/o GOP or UGA 2018-08-04 06:40:18 +00:00
framebuffer.h
loader_efi.h
main.c loader.efi: clean up misleading noise from missing block devices 2018-08-03 07:59:29 +00:00
Makefile Install links for loader.efi. 2018-08-16 16:30:23 +00:00
Makefile.depend
version