android_kernel_oneplus_msm8998/arch/sparc
Jann Horn 5c16a16fcf sys: don't hold uts_sem while accessing userspace memory
commit 42a0cc3478584d4d63f68f2f5af021ddbea771fa upstream.

Holding uts_sem as a writer while accessing userspace memory allows a
namespace admin to stall all processes that attempt to take uts_sem.
Instead, move data through stack buffers and don't access userspace memory
while uts_sem is held.

Cc: stable@vger.kernel.org
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-09 20:04:35 +02:00
..
boot
configs
crypto
include sparc64: Make atomic_xchg() an inline function rather than a macro. 2018-05-30 07:49:08 +02:00
kernel sys: don't hold uts_sem while accessing userspace memory 2018-09-09 20:04:35 +02:00
lib sparc64: Delete now unused user copy fixup functions. 2016-11-21 10:06:42 +01:00
math-emu
mm sparc64/mm: set fields in deferred pages 2017-12-16 10:33:55 +01:00
net
oprofile
power sparc64: Prevent perf from running during super critical sections 2017-08-12 19:29:09 -07:00
prom
Kbuild
Kconfig security/keys: add CONFIG_KEYS_COMPAT to Kconfig 2017-11-18 11:11:07 +01:00
Kconfig.debug
Makefile