Searched hist:344409 (Results 1 - 2 of 2) sorted by relevance

/freebsd-11-stable/stand/efi/loader/arch/arm64/
H A Dstart.Sdiff 344409 Thu Feb 21 02:50:20 MST 2019 kevans MFC r338337: Fix lualoader on arm64

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.
/freebsd-11-stable/stand/efi/boot1/
H A DMakefilediff 344409 Thu Feb 21 02:50:20 MST 2019 kevans MFC r338337: Fix lualoader on arm64

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.

Completed in 63 milliseconds