OSDN Git Service

powerpc: Hard wire PT_SOFTE value to 1 in ptrace & signals
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Sun, 20 Aug 2017 17:58:24 +0000 (23:28 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 19 Jan 2018 11:36:54 +0000 (22:36 +1100)
commita8a4b03ab95f3e99196b0a4dd40804620ea77e74
tree210d0a819712c7301180bdf862d56f09d41bb12c
parent7a074fc08389f43b448ebef74bf56ba0f6f087d9
powerpc: Hard wire PT_SOFTE value to 1 in ptrace & signals

We have always had softe in pt_regs, and accessible via PT_SOFTE, even
though it is not userspace state.

The value userspace sees should always be 1, because we should never
be in userspace with interrupts soft disabled.

In a subsequent patch we will be changing the semantics of the kernel
softe value, so hard wire the value to 1 to retain the existing
semantics. As far as we know nothing ever looks at it, but better safe
than sorry.

Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
[mpe: Split out of larger patch, write change log]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/ptrace.c
arch/powerpc/kernel/signal_32.c
arch/powerpc/kernel/signal_64.c