android_kernel_samsung_a7y1.../arch/parisc
Helge Deller 853d3f238b parisc: Fix kernel panic due invalid values in IAOQ0 or IAOQ1
commit 10835c854685393a921b68f529bf740fa7c9984d upstream.

On parisc the privilege level of a process is stored in the lowest two bits of
the instruction pointers (IAOQ0 and IAOQ1). On Linux we use privilege level 0
for the kernel and privilege level 3 for user-space. So userspace should not be
allowed to modify IAOQ0 or IAOQ1 of a ptraced process to change it's privilege
level to e.g. 0 to try to gain kernel privileges.

This patch prevents such modifications by always setting the two lowest bits to
one (which relates to privilege level 3 for user-space) if IAOQ0 or IAOQ1 are
modified via ptrace calls in the native and compat ptrace paths.

Link: https://bugs.gentoo.org/481768
Reported-by: Jeroen Roovers <jer@gentoo.org>
Cc: <stable@vger.kernel.org>
Tested-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 20:04:49 +02:00
..
configs A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
include A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kernel parisc: Fix kernel panic due invalid values in IAOQ0 or IAOQ1 2020-04-06 20:04:49 +02:00
lib A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
math-emu parisc: Fix compiler warnings in float emulation code 2020-04-06 19:16:24 +02:00
mm A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
oprofile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
defpalo.conf A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
install.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig.debug A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nm A750FXXU4CTBC 2020-03-27 21:51:54 +05:30