s390/ptrace: fix PSW mask check
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 23 Jun 2014 13:29:40 +0000 (15:29 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 16 Jul 2014 08:48:11 +0000 (10:48 +0200)
commitdab6cf55f81a6e16b8147aed9a843e1691dcd318
treef1dbbf112e83da1115b11199f22a7f6730547913
parent8fb878c5f12bf7fd6099d466139bd4564418e583
s390/ptrace: fix PSW mask check

The PSW mask check of the PTRACE_POKEUSR_AREA command is incorrect.
The PSW_MASK_USER define contains the PSW_MASK_ASC bits, the ptrace
interface accepts all combinations for the address-space-control
bits. To protect the kernel space the PSW mask check in ptrace needs
to reject the address-space-control bit combination for home space.

Fixes CVE-2014-3534

Cc: stable@vger.kernel.org
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/ptrace.c