linux-stable/arch/sparc/mm
Linus Torvalds 23d1e960cd sparc32: fix lock_mm_and_find_vma() conversion
commit 0b26eadbf2 upstream.

The sparc32 conversion to lock_mm_and_find_vma() in commit a050ba1e74
("mm/fault: convert remaining simple cases to lock_mm_and_find_vma()")
missed the fact that we didn't actually have a 'regs' pointer available
in the 'force_user_fault()' case.

It's there in the regular page fault path ("do_sparc_fault()"), but not
the window underflow/overflow paths.

Which is all fine - we can just pass in a NULL pointer.  The register
state is only used to avoid deadlock with kernel faults, which is not
the case for any of these register window faults.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: a050ba1e74 ("mm/fault: convert remaining simple cases to lock_mm_and_find_vma()")
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-07-01 13:12:41 +02:00
..
fault_32.c sparc32: fix lock_mm_and_find_vma() conversion 2023-07-01 13:12:41 +02:00
fault_64.c mm: always expand the stack with the mmap write lock held 2023-07-01 13:12:40 +02:00
hugetlbpage.c
hypersparc.S
init_32.c
init_64.c
init_64.h
io-unit.c
iommu.c
leon_mm.c
Makefile
mm_32.h
srmmu.c
srmmu_access.S
swift.S
tlb.c
tsb.c mm, treewide: redefine MAX_ORDER sanely 2023-04-05 19:42:46 -07:00
tsunami.S
ultra.S
viking.S