freebsd-dev/stand/efi/boot1
Andrew Turner 78da604641 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
..
boot1.c efi loader: Address two nits with recent graphics changes 2018-04-19 03:31:41 +00:00
boot_module.h Revert preference to be an int. 2018-06-28 19:42:10 +00:00
fat-amd64.tmpl.xz Regenerate FAT templates after r332561 2018-04-16 15:13:18 +00:00
fat-arm64.tmpl.xz Regenerate FAT templates after r332561 2018-04-16 15:13:18 +00:00
fat-arm.tmpl.xz Regenerate FAT templates after r332561 2018-04-16 15:13:18 +00:00
fat-i386.tmpl.xz Regenerate FAT templates after r332561 2018-04-16 15:13:18 +00:00
generate-fat.sh Rename volume label for ESP 2018-04-16 13:18:18 +00:00
Makefile Ensure we have a large enough stack for the lua loader 2018-08-27 11:14:49 +00:00
Makefile.depend
Makefile.fat
ufs_module.c Teach ufs_module.c about bsd labels and probe 'a' partition. 2018-05-29 03:58:29 +00:00
zfs_module.c