]> git.hungrycats.org Git - linux/commit
s390/ptrace: fix PSW mask check
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 30 Jul 2014 11:04:49 +0000 (13:04 +0200)
committerJiri Slaby <jslaby@suse.cz>
Wed, 30 Jul 2014 16:02:45 +0000 (18:02 +0200)
commitcbcbb4c4826ff594b091e143b0f049f13ab7a64e
tree840610372fbdfbae6e95c385a7d44060f5c94de8
parentd83a3234d2e1e2a55e7f2430fc9ca29a9bd315e7
s390/ptrace: fix PSW mask check

commit dab6cf55f81a6e16b8147aed9a843e1691dcd318 upstream.

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

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/s390/kernel/ptrace.c