linux-stable/arch/loongarch
Linus Torvalds 7e697935ba mm/fault: convert remaining simple cases to lock_mm_and_find_vma()
commit a050ba1e74 upstream.

This does the simple pattern conversion of alpha, arc, csky, hexagon,
loongarch, nios2, sh, sparc32, and xtensa to the lock_mm_and_find_vma()
helper.  They all have the regular fault handling pattern without odd
special cases.

The remaining architectures all have something that keeps us from a
straightforward conversion: ia64 and parisc have stacks that can grow
both up as well as down (and ia64 has special address region checks).

And m68k, microblaze, openrisc, sparc64, and um end up having extra
rules about only expanding the stack down a limited amount below the
user space stack pointer.  That is something that x86 used to do too
(long long ago), and it probably could just be skipped, but it still
makes the conversion less than trivial.

Note that this conversion was done manually and with the exception of
alpha without any build testing, because I have a fairly limited cross-
building environment.  The cases are all simple, and I went through the
changes several times, but...

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-07-01 13:14:45 +02:00
..
boot
configs LoongArch: kdump: Add single kernel image implementation 2023-02-25 22:12:17 +08:00
include LoongArch: Replace hard-coded values in comments with VALEN 2023-04-19 12:07:27 +08:00
kernel LoongArch: Fix perf event id calculation 2023-06-21 16:02:09 +02:00
lib LoongArch: Mark some assembler symbols as non-kprobe-able 2023-02-25 22:12:17 +08:00
mm mm/fault: convert remaining simple cases to lock_mm_and_find_vma() 2023-07-01 13:14:45 +02:00
net LoongArch, bpf: Fix jit to skip speculation barrier opcode 2023-03-28 10:34:52 +02:00
pci
power LoongArch: Enable PG when wakeup from suspend 2023-04-18 19:38:58 +08:00
vdso
Kbuild
Kconfig mm/fault: convert remaining simple cases to lock_mm_and_find_vma() 2023-07-01 13:14:45 +02:00
Kconfig.debug
Makefile LoongArch: kdump: Add single kernel image implementation 2023-02-25 22:12:17 +08:00