linux-stable/arch
Vlastimil Babka 8725aa80dd mm, gup: add missing refcount overflow checks on s390
The mainline commit 8fde12ca79 ("mm: prevent get_user_pages() from
overflowing page refcount") was backported to 4.14.y stable as commit
04198de247. The backport however missed that in 4.14, there are several
arch-specific gup.c versions with fast gup implementations, so these do not
prevent refcount overflow.

This stable-only commit fixes the s390 version, and is based on the backport in
SUSE SLES/openSUSE 4.12-based kernels.

The remaining architectures with own gup.c are sparc, mips, sh. It's unlikely
the known overflow scenario based on FUSE, which needs 140GB of RAM, is a
problem for those architectures, and I don't feel confident enough to patch
them.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-05 15:38:06 +01:00
..
alpha alpha: Fix Eiger NR_IRQS to 128 2019-02-20 10:20:53 +01:00
arc ARC: perf: Accommodate big-endian CPU 2019-12-01 09:14:21 +01:00
arm ARM: ks8695: fix section mismatch warning 2019-12-05 15:37:15 +01:00
arm64 arm64: smp: Handle errors reported by the firmware 2019-12-05 15:37:13 +01:00
blackfin
c6x
cris
frv
h8300 h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux- 2019-04-05 22:31:25 +02:00
hexagon
ia64 ia64:unwind: fix double free for mod->arch.init_unw_table 2019-10-05 12:47:48 +02:00
m32r
m68k m68k: fix command-line parsing when passed from u-boot 2019-12-01 09:13:24 +01:00
metag
microblaze microblaze: move "... is ready" messages to arch/microblaze/Makefile 2019-12-05 15:37:21 +01:00
mips MIPS: kexec: Relax memory restriction 2019-11-20 18:00:28 +01:00
mn10300
nios2
openrisc openrisc: Fix broken paths to arch/or32 2019-12-05 15:37:38 +01:00
parisc parisc: Fix vmap memory leak in ioremap()/iounmap() 2019-10-29 09:17:40 +01:00
powerpc powerpc/pseries/dlpar: Fix a missing check in dlpar_parse_cc_property() 2019-12-05 15:38:04 +01:00
s390 mm, gup: add missing refcount overflow checks on s390 2019-12-05 15:38:06 +01:00
score
sh sh: kernel: hw_breakpoint: Fix missing break in switch statement 2019-08-25 10:50:01 +02:00
sparc sparc64: Rework xchg() definition to avoid warnings. 2019-12-01 09:13:47 +01:00
tile
um um: Make GCOV depend on !KCOV 2019-12-05 15:37:49 +01:00
unicore32
x86 kprobes/x86/xen: blacklist non-attachable xen interrupt functions 2019-12-05 15:37:26 +01:00
xtensa xtensa: drop EXPORT_SYMBOL for outs*/ins* 2019-10-29 09:17:40 +01:00
.gitignore
Kconfig