freebsd-skq/lib/libstand
jhb 107a51b87f MFC 279949:
The System V ABI for amd64 allows functions to use space in a 128 byte
redzone below the stack pointer for scratch space and requires
interrupt and signal frames to avoid overwriting it. However, EFI uses
the Windows ABI which does not support this. As a result, interrupt
handlers in EFI push their interrupt frames directly on top of the
stack pointer. If the compiler used the red zone in a function in the
EFI loader, then a device interrupt that occurred while that function
was running could trash its local variables.  In practice this happens
fairly reliable when using gzipfs as an interrupt during decompression
can trash the local variables in the inflate_table() function
resulting in corrupted output or hangs.

Fix this by disabling the redzone for amd64 EFI binaries. This
requires building not only the loader but any libraries used by the
loader without redzone support.

Thanks to Jilles for pointing me at the redzone once I found the stack
corruption.
2015-04-09 19:36:06 +00:00
..
amd64
i386
mips
powerpc MFC r261591 (nwhitehorn): 2014-09-04 20:21:30 +00:00
sparc64
__main.c
arp.c
assert.c
bcd.c
bootp.c
bootp.h
bootparam.c
bootparam.h
bswap.c
bzipfs.c
cd9660.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
close.c
closeall.c
dev.c
dosfs.c MFC 279931: 2015-04-09 18:45:03 +00:00
dosfs.h
environment.c
ether.c
ext2fs.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
fstat.c
getopt.c
gets.c
globals.c
gzipfs.c
in_cksum.c
inet_ntoa.c
ioctl.c
iodesc.h
libstand.3
lseek.c
Makefile MFC 279949: 2015-04-09 19:36:06 +00:00
nandfs.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
net.c
net.h
netif.c
netif.h
nfs.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
nfsv2.h
nullfs.c
open.c
pager.c
printf.c MFC r266878, r266879: Add support for snprintf() to libstand. 2014-10-26 02:51:56 +00:00
qdivrem.c MFC r269077 (sbruno): libstand qdivrem warning fixes 2014-09-04 20:49:11 +00:00
quad.h MFC r269077 (sbruno): libstand qdivrem warning fixes 2014-09-04 20:49:11 +00:00
random.c
rarp.c
read.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
readdir.c
rpc.c
rpc.h
rpcv2.h
saioctl.h
sbrk.c
splitfs.c
stand.h MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
stat.c
strcasecmp.c
strdup.c
strerror.c
strtol.c
strtoul.c
tftp.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
tftp.h
twiddle.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
udp.c
ufs.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
write.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
zalloc_defs.h
zalloc_malloc.c
zalloc_mem.h
zalloc_protos.h
zalloc.c