summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2017-09-12 02:56:54 +0000
committerdlg <dlg@openbsd.org>2017-09-12 02:56:54 +0000
commit1d9ceb0dd16dc0a61a07f6b04e0d724d14091512 (patch)
treed6b491cb577ffa5849d9cdc62ca5472b99ad2a23 /usr.bin/ssh/ssh.c
parentUpdate the documentation regarding /dev/mem and /dev/kmem; (diff)
downloadwireguard-openbsd-1d9ceb0dd16dc0a61a07f6b04e0d724d14091512.tar.xz
wireguard-openbsd-1d9ceb0dd16dc0a61a07f6b04e0d724d14091512.zip
add a guard page on the end of each threads kernel stack.
this protects the process control block. it also makes the kernel fault hard when the guard page gets hit by the stack, allowing debugging of the problem set of function calls at the time the problem occurs. without this, a big stack can overwrite the pcb, which makes the thread generate a fault when it is switched back onto a cpu, which is way too late. discussed with guenther@ ok deraadt@
Diffstat (limited to 'usr.bin/ssh/ssh.c')
0 files changed, 0 insertions, 0 deletions