diff options
author | ian <ian@FreeBSD.org> | 2014-03-09 03:49:06 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-03-09 03:49:06 +0000 |
commit | 4313fc83a057fb0f0a817e8544fa5a7bbae7d719 (patch) | |
tree | fe7a84fcde6a0592aad47cba8bb88b369159b200 /lib/libcrypt | |
parent | fddbc87fe1aceed4f6e19423f2198de2555e3771 (diff) | |
download | FreeBSD-src-4313fc83a057fb0f0a817e8544fa5a7bbae7d719.zip FreeBSD-src-4313fc83a057fb0f0a817e8544fa5a7bbae7d719.tar.gz |
Remove all dregs of a per-thread undefined-exception-mode stack. This is
a leftover from the days when a low-level debugger had hooks in the
undefined exception vector and needed stack space to function. These days
it effectively isn't used because we switch immediately to the svc32 mode
stack on exception entry. For that, the single undef mode stack per core
that gets set up at init time works fine.
The stack wasn't necessary but it was harmful, because the space for it
was carved out of the normal per-thread svc32 stack, in effect cutting
that 8K stack in half. If svc32 mode used more than 4k of stack space it
wandered down into the undef mode stack, and then an undef exception would
overwrite a couple words on the stack while switching to svc32 mode,
corrupting the scv32 stack. Having another stack abut the bottom of the
svc32 stack also effectively mooted the guard page below the stack.
This work is based on analysis and patches submitted by Juergen Weiss.
Diffstat (limited to 'lib/libcrypt')
0 files changed, 0 insertions, 0 deletions