opnsense-src/lib/libc
Konstantin Belousov 989b861f5c Carefully update stack guard bytes inside __guard_setup().
This is necessary to make sure that functions that can have stack
protection are not used to update the stack guard. If not, the stack
guard check would fail when it shouldn't.

guard_setup() calls elf_aux_info(), which, in turn, calls memcpy() to
update stack_chk_guard.  If either elf_aux_info() or memcpy() have
stack protection enabled, __stack_chk_guard will be modified before
returning from them, causing the stack protection check to fail.

This change uses a temporary buffer to delay changing
__stack_chk_guard until elf_aux_info() returns.

Submitted by:	Luis Pires
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D15173
2018-04-24 15:59:39 +00:00
..
aarch64 Remove architecture specific shmat.S files. 2018-04-05 18:17:46 +00:00
amd64 Replace MD assembly exect() with a portable version. 2018-04-12 18:23:14 +00:00
arm Remove architecture specific shmat.S files. 2018-04-05 18:17:46 +00:00
capability
compat-43
db
gdtoa
gen Replace MD assembly exect() with a portable version. 2018-04-12 18:23:14 +00:00
gmon
i386 Replace MD assembly exect() with a portable version. 2018-04-12 18:23:14 +00:00
iconv
include getentropy(3): Fallback to kern.arandom sysctl on older kernels 2018-03-21 23:52:37 +00:00
inet
isc
locale Don't put multiple names on a single .Nm line. This fixes apropos(1) 2018-04-17 09:05:46 +00:00
md
mips Replace MD assembly exect() with a portable version. 2018-04-12 18:23:14 +00:00
nameser
net Remove support for the Arcnet protocol. 2018-04-13 21:18:04 +00:00
nls
posix1e
powerpc Replace MD assembly exect() with a portable version. 2018-04-12 18:23:14 +00:00
powerpc64 Replace MD assembly exect() with a portable version. 2018-04-12 18:23:14 +00:00
powerpcspe
quad
regex
resolv
riscv Replace SOFTFLOAT with __riscv_float_abi_*. 2018-04-19 20:36:15 +00:00
rpc des_crypt.3: Fix typo. 2018-03-07 09:31:27 +00:00
secure Carefully update stack guard bytes inside __guard_setup(). 2018-04-24 15:59:39 +00:00
softfloat Move softfloat symbol map entries to softfloat/Symbol.map. 2018-03-05 20:51:23 +00:00
sparc64 Replace MD assembly exect() with a portable version. 2018-04-12 18:23:14 +00:00
stdio Don't put multiple names on a single .Nm line. This fixes apropos(1) 2018-04-17 09:05:46 +00:00
stdlib Don't put multiple names on a single .Nm line. This fixes apropos(1) 2018-04-17 09:05:46 +00:00
stdtime
string Don't put multiple names on a single .Nm line. This fixes apropos(1) 2018-04-17 09:05:46 +00:00
sys Rename PROC_PDEATHSIG_SET -> PROC_PDEATHSIG_CTL and PROC_PDEATHSIG_GET 2018-04-20 15:19:27 +00:00
tests Add new gets_s(3) stdio function. 2018-04-03 18:52:38 +00:00
uuid
x86/sys
xdr
yp
libc.ldscript
libc_nossp.ldscript
Makefile
Makefile.depend
Versions.def