From 22157098d455a112ba01b1e7801e6b22436ec842 Mon Sep 17 00:00:00 2001 From: Martin Schwidefsky Date: Wed, 25 Jan 2017 12:54:17 +0100 Subject: [PATCH] s390: store breaking event address only for program checks The principles of operations specifies that the breaking event address is stored to the address 0x110 in the prefix page only for program checks. The last branch in user space is lost as soon as a branch in kernel space is executed after e.g. an svc. This makes it impossible to accurately maintain the breaking event address for a user space process. Simplify the code, just copy the current breaking event address from 0x110 to the task structure for program checks from user space. Signed-off-by: Martin Schwidefsky --- arch/s390/kernel/entry.S | 50 ++++++++++------------------------------ 1 file changed, 12 insertions(+), 38 deletions(-) diff --git a/arch/s390/kernel/entry.S b/arch/s390/kernel/entry.S index 97298c58b2bed..f687f168c94d5 100644 --- a/arch/s390/kernel/entry.S +++ b/arch/s390/kernel/entry.S @@ -103,8 +103,7 @@ _PIF_WORK = (_PIF_PER_TRAP) CHECK_STACK 1<