linux/arch/m68k
Linus Torvalds e6bbad7571 mm: always expand the stack with the mmap write lock held
commit 8d7071af89 upstream

This finishes the job of always holding the mmap write lock when
extending the user stack vma, and removes the 'write_locked' argument
from the vm helper functions again.

For some cases, we just avoid expanding the stack at all: drivers and
page pinning really shouldn't be extending any stacks.  Let's see if any
strange users really wanted that.

It's worth noting that architectures that weren't converted to the new
lock_mm_and_find_vma() helper function are left using the legacy
"expand_stack()" function, but it has been changed to drop the mmap_lock
and take it for writing while expanding the vma.  This makes it fairly
straightforward to convert the remaining architectures.

As a result of dropping and re-taking the lock, the calling conventions
for this function have also changed, since the old vma may no longer be
valid.  So it will now return the new vma if successful, and NULL - and
the lock dropped - if the area could not be extended.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[6.1: Patch drivers/iommu/io-pgfault.c instead]
Signed-off-by: Samuel Mendoza-Jonas <samjonas@amazon.com>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-07-01 13:16:25 +02:00
..
68000 m68k: Check syscall_trace_enter() return code 2023-03-10 09:33:51 +01:00
amiga
apollo
atari
bvme6000
coldfire m68k: Check syscall_trace_enter() return code 2023-03-10 09:33:51 +01:00
configs m68knommu: updates and fixes for v6.1 2022-10-10 14:19:05 -07:00
emu
fpsp040
hp300
ifpsp060
include - hfs and hfsplus kmap API modernization from Fabio Francesco 2022-10-12 11:00:22 -07:00
kernel m68k: Move signal frame following exception on 68020/030 2023-05-30 14:03:18 +01:00
lib
mac
math-emu
mm mm: always expand the stack with the mmap write lock held 2023-07-01 13:16:25 +02:00
mvme16x
mvme147
q40
sun3
sun3x
tools/amiga
virt
install.sh
Kbuild
Kconfig
Kconfig.bus
Kconfig.cpu - Yu Zhao's Multi-Gen LRU patches are here. They've been under test in 2022-10-10 17:53:04 -07:00
Kconfig.debug
Kconfig.devices m68k: /proc/hardware should depend on PROC_FS 2023-03-10 09:33:03 +01:00
Kconfig.machine
Makefile kbuild: remove head-y syntax 2022-10-02 18:06:03 +09:00