linux-yocto/arch/um/kernel
Benjamin Berg 4793d76b82 um: use proper care when taking mmap lock during segfault
[ Upstream commit 6767e8784c ]

Segfaults can occur at times where the mmap lock cannot be taken. If
that happens the segfault handler may not be able to take the mmap lock.

Fix the code to use the same approach as most other architectures.
Unfortunately, this requires copying code from mm/memory.c and modifying
it slightly as UML does not have exception tables.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20250408074524.300153-2-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-06 10:57:55 +02:00
..
skas
asm-offsets.c
config.c.in
dtb.c
dyn.lds.S
early_printk.c
exec.c
exitcode.c
gprof_syms.c
initrd.c
ioport.c
irq.c
kmsg_dump.c
ksyms.c
load_file.c
Makefile um: remove copy_from_kernel_nofault_allowed 2025-04-10 14:33:36 +02:00
mem.c um: Update min_low_pfn to match changes in uml_reserved 2025-06-04 14:40:05 +02:00
physmem.c um: Fix potential integer overflow during physmem setup 2024-12-14 19:54:06 +01:00
process.c um: Fix the return value of elf_core_copy_task_fpregs 2024-12-14 19:54:06 +01:00
ptrace.c
reboot.c
sigio.c
signal.c
stacktrace.c
sysrq.c um: Always dump trace for specified task in show_stack 2024-12-14 19:54:07 +01:00
time.c um: time-travel: fix time-travel-start option 2024-08-03 08:49:47 +02:00
tlb.c
trap.c um: use proper care when taking mmap lock during segfault 2025-07-06 10:57:55 +02:00
um_arch.c um/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 20:03:47 +02:00
um_arch.h
umid.c
uml.lds.S
vmlinux.lds.S