]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390: fix in-kernel program checks
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 28 Feb 2017 06:42:01 +0000 (07:42 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 1 Mar 2017 08:59:27 +0000 (09:59 +0100)
commitd9fcf2a1cbd1ff65d0109b1b400938808007fcd5
treeb992cf1bb19fa3a863fe532119773a9be28e18d5
parente7c95effcd3a7a0c9535c809141ca499fede2c31
s390: fix in-kernel program checks

A program check inside the kernel takes a slightly different path in
entry.S compare to a normal user fault. A recent change moved the store
of the breaking event address into the path taken for in-kernel program
checks as well, but %r14 has not been setup to point to the correct
location. A wild store is the consequence.

Move the store of the breaking event address to the code path for
user space faults.

Fixes: 34525e1f7e8d ("s390: store breaking event address only for program checks")
Reported-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/entry.S