]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390: fix kernel crash due to linkage stack instructions
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 3 Feb 2014 16:37:15 +0000 (17:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Feb 2014 18:32:45 +0000 (10:32 -0800)
commit9558f9d82eed2e0015783c553794aeed79dfa0f8
treeeb7d3ed29dd1a4a54c8a9fe83117c0f3a2999dff
parent021139f22c744a254870dcb23b326037a32a1aa7
s390: fix kernel crash due to linkage stack instructions

commit 8d7f6690cedb83456edd41c9bd583783f0703bf0 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kernel/head64.S