linux-yocto/arch/um/kernel
Benjamin Berg 8dbc01f09c 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 11:00:07 +02:00
..
skas
asm-offsets.c
config.c.in
dtb.c of/fdt: add dt_phys arg to early_init_dt_scan and early_init_dt_verify 2024-12-09 10:31:56 +01:00
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:37:34 +02:00
mem.c um: Update min_low_pfn to match changes in uml_reserved 2025-06-04 14:41:57 +02:00
physmem.c um: Fix potential integer overflow during physmem setup 2024-12-09 10:32:54 +01:00
process.c um: Fix the return value of elf_core_copy_task_fpregs 2024-12-09 10:32:54 +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-09 10:32:54 +01:00
time.c um: time-travel: fix time-travel-start option 2024-08-03 08:54:35 +02:00
tlb.c
trap.c um: use proper care when taking mmap lock during segfault 2025-07-06 11:00:07 +02:00
um_arch.c
um_arch.h
umid.c
uml.lds.S
vmlinux.lds.S