03bf40c5d8
With PERTHREAD_SSP configured, the compiler's stack-smashing protection uses a per-thread canary value instead of a global value. The value is stored in td->td_md.md_canary; the sp_el0 register always contains a pointer to that value, and certain functions selected by the compiler will store the canary value on the stack as a part of the function prologue (and will verify the copy as part of the epilogue). In particular, the thread structure may be accessed. This happens to occur in data_abort(), which leads to the same problem addressed by commit |
||
---|---|---|
.. | ||
_align.h | ||
_bus.h | ||
_inttypes.h | ||
_limits.h | ||
_stdint.h | ||
_types.h | ||
acpica_machdep.h | ||
armreg.h | ||
asm.h | ||
atomic.h | ||
bus_dma_impl.h | ||
bus_dma.h | ||
bus.h | ||
clock.h | ||
cmn600_reg.h | ||
counter.h | ||
cpu.h | ||
cpufunc.h | ||
csan.h | ||
db_machdep.h | ||
debug_monitor.h | ||
disassem.h | ||
dump.h | ||
efi.h | ||
elf.h | ||
endian.h | ||
exec.h | ||
float.h | ||
floatingpoint.h | ||
fpu.h | ||
frame.h | ||
gdb_machdep.h | ||
hypervisor.h | ||
ieeefp.h | ||
ifunc.h | ||
in_cksum.h | ||
intr.h | ||
iodev.h | ||
iommu.h | ||
kdb.h | ||
machdep.h | ||
md_var.h | ||
memdev.h | ||
metadata.h | ||
minidump.h | ||
ofw_machdep.h | ||
param.h | ||
pcb.h | ||
pci_cfgreg.h | ||
pcpu_aux.h | ||
pcpu.h | ||
pmap.h | ||
pmc_mdep.h | ||
proc.h | ||
procctl.h | ||
profile.h | ||
psl.h | ||
pte.h | ||
ptrace.h | ||
reg.h | ||
reloc.h | ||
resource.h | ||
runq.h | ||
setjmp.h | ||
sf_buf.h | ||
sigframe.h | ||
signal.h | ||
smp.h | ||
stack.h | ||
stdarg.h | ||
sysarch.h | ||
tls.h | ||
trap.h | ||
ucontext.h | ||
undefined.h | ||
vdso.h | ||
vfp.h | ||
vm.h | ||
vmparam.h |