]> git.baikalelectronics.ru Git - kernel.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)
commit9ce2dc78ff6da19aa1a59c4939082cb57c74f3ce
treeb992cf1bb19fa3a863fe532119773a9be28e18d5
parent8f48f49835e2c0a7b8e778f40a9d5d474aef6dbd
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: 36922fa2b4c2 ("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