linux-stable/arch/sh/mm
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
..
alignment.c proc: remove PDE_DATA() completely 2022-01-22 08:33:37 +02:00
asids-debugfs.c sh: mm: Convert to DEFINE_SHOW_ATTRIBUTE 2021-01-06 19:55:24 -05:00
cache-debugfs.c sh: mm: Convert to DEFINE_SHOW_ATTRIBUTE 2021-01-06 19:55:24 -05:00
cache-j2.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 211 2019-05-30 11:29:53 -07:00
cache-sh2.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 211 2019-05-30 11:29:53 -07:00
cache-sh2a.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 211 2019-05-30 11:29:53 -07:00
cache-sh3.c mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
cache-sh4.c mm: move page_mapping_file to pagemap.h 2021-04-30 11:20:37 -07:00
cache-sh7705.c mm: move page_mapping_file to pagemap.h 2021-04-30 11:20:37 -07:00
cache-shx3.c
cache.c sh: remove sh5 support 2020-06-01 14:48:52 -04:00
consistent.c sh: remove call to memset after dma_alloc_coherent 2020-08-14 22:05:03 -04:00
extable_32.c
fault.c mm/fault: convert remaining simple cases to lock_mm_and_find_vma() 2023-07-01 13:14:45 +02:00
flush-sh4.c
hugetlbpage.c hugetlb: pass vma into huge_pte_alloc() and huge_pmd_share() 2021-05-05 11:27:20 -07:00
init.c sh: initialize max_mapnr 2023-02-16 20:43:55 -08:00
ioremap.c sh: don't include <asm/io_trapped.h> in <asm/io.h> 2020-08-14 22:05:16 -04:00
ioremap.h sh: move ioremap_fixed details out of <asm/io.h> 2020-08-14 22:05:15 -04:00
ioremap_fixed.c Cleanup, SECCOMP_FILTER support, message printing fixes, and other 2020-08-15 18:50:32 -07:00
Kconfig arch: mm: rename FORCE_MAX_ZONEORDER to ARCH_FORCE_MAX_ORDER 2022-09-11 20:25:56 -07:00
kmap.c mm: pgtable: add shortcuts for accessing kernel PMD and PTE 2020-06-09 09:39:13 -07:00
Makefile sh: remove -Werror from Makefiles 2020-08-14 22:05:13 -04:00
mmap.c sh/mm: enable ARCH_HAS_VM_GET_PAGE_PROT 2022-07-17 17:14:41 -07:00
nommu.c sh: fix trivial misannotations 2021-09-17 13:59:56 -04:00
numa.c mm/sparse: cleanup the code surrounding memory_present() 2020-08-07 11:33:27 -07:00
pgtable.c sh: Fix unneeded constructor in page table allocation 2020-08-14 22:05:03 -04:00
pmb.c sh: mm: Convert to DEFINE_SHOW_ATTRIBUTE 2021-01-06 19:55:24 -05:00
sram.c
tlb-debugfs.c sh: no need to check return value of debugfs_create functions 2019-06-03 15:39:40 +02:00
tlb-pteaex.c
tlb-sh3.c mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
tlb-sh4.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 211 2019-05-30 11:29:53 -07:00
tlb-urb.c
tlbex_32.c sh: add support for folded p4d page tables 2020-06-04 19:06:21 -07:00
tlbflush_32.c
uncached.c treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00