diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-02-03 17:37:15 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-02-05 11:00:50 +0100 |
commit | 8d7f6690cedb83456edd41c9bd583783f0703bf0 (patch) | |
tree | b7b45c28d9f5d84b7e2aa1e813c32e6f18bd481e /mm/swap.c | |
parent | d7736ff5be31edaa4fe5ab62810c64529a24b149 (diff) | |
download | linux-8d7f6690cedb83456edd41c9bd583783f0703bf0.tar.gz linux-8d7f6690cedb83456edd41c9bd583783f0703bf0.tar.bz2 linux-8d7f6690cedb83456edd41c9bd583783f0703bf0.zip |
s390: fix kernel crash due to linkage stack instructions
The kernel currently crashes with a low-address-protection exception
if a user space process executes an instruction that tries to use the
linkage stack. Set the base-ASTE origin and the subspace-ASTE origin
of the dispatchable-unit-control-table to point to a dummy ASTE.
Set up control register 15 to point to an empty linkage stack with no
room left.
A user space process with a linkage stack instruction will still crash
but with a different exception which is correctly translated to a
segmentation fault instead of a kernel oops.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'mm/swap.c')
0 files changed, 0 insertions, 0 deletions