linux-stable/arch
Helge Deller 34c32fc603 parisc: Ensure userspace privilege for ptraced processes in regset functions
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 in the regset support functions 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 regset calls.

Link: https://bugs.gentoo.org/481768
Cc: <stable@vger.kernel.org> # v4.7+
Tested-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Signed-off-by: Helge Deller <deller@gmx.de>
2019-07-17 23:11:27 +02:00
..
alpha arch: mark syscall number 435 reserved for clone3 2019-07-15 00:39:33 +02:00
arc Kbuild updates for v5.3 2019-07-12 16:03:16 -07:00
arm docs conversion for v5.3-rc1 2019-07-16 12:21:41 -07:00
arm64 docs conversion for v5.3-rc1 2019-07-16 12:21:41 -07:00
c6x Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu 2019-07-10 21:42:03 -07:00
csky Kconfig updates for v5.3 2019-07-12 16:06:27 -07:00
h8300 Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu 2019-07-10 21:42:03 -07:00
hexagon Merge branch 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2019-07-08 21:48:15 -07:00
ia64 docs conversion for v5.3-rc1 2019-07-16 12:21:41 -07:00
m68k arch: mark syscall number 435 reserved for clone3 2019-07-15 00:39:33 +02:00
microblaze clone3-v5.3 2019-07-11 10:09:44 -07:00
mips docs conversion for v5.3-rc1 2019-07-16 12:21:41 -07:00
nds32 Kconfig updates for v5.3 2019-07-12 16:06:27 -07:00
nios2 nios2 update for v5.3-rc1 2019-07-12 15:38:05 -07:00
openrisc dma-mapping updates for Linux 5.3 2019-07-12 15:13:55 -07:00
parisc parisc: Ensure userspace privilege for ptraced processes in regset functions 2019-07-17 23:11:27 +02:00
powerpc for-linus-20190715 2019-07-16 11:30:07 -07:00
riscv Kconfig updates for v5.3 2019-07-12 16:06:27 -07:00
s390 arch: mark syscall number 435 reserved for clone3 2019-07-15 00:39:33 +02:00
sh docs conversion for v5.3-rc1 2019-07-16 12:21:41 -07:00
sparc docs conversion for v5.3-rc1 2019-07-16 12:21:41 -07:00
um This pull request contains the following changes for UML: 2019-07-14 17:17:34 -07:00
unicore32 Kconfig updates for v5.3 2019-07-12 16:06:27 -07:00
x86 docs conversion for v5.3-rc1 2019-07-16 12:21:41 -07:00
xtensa docs conversion for v5.3-rc1 2019-07-16 12:21:41 -07:00
.gitignore
Kconfig dma-direct: provide generic support for uncached kernel segments 2019-06-03 16:00:08 +02:00