linux_dsm_epyc7002/arch/um/kernel
Johannes Berg 833f5208b1 um: defer killing userspace on page table update failures
commit a7d48886cacf8b426e0079bca9639d2657cf2d38 upstream.

In some cases we can get to fix_range_common() with mmap_sem held,
and in others we get there without it being held. For example, we
get there with it held from sys_mprotect(), and without it held
from fork_handler().

Avoid any issues in this and simply defer killing the task until
it runs the next time. Do it on the mm so that another task that
shares the same mm can't continue running afterwards.

Cc: stable@vger.kernel.org
Fixes: 468f65976a ("um: Fix hung task in fix_range_common()")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-04 11:38:42 +01:00
..
skas arch/um: partially revert the conversion to __section() macro 2020-10-26 15:39:37 -07:00
asm-offsets.c
config.c.in
dyn.lds.S
early_printk.c
exec.c
exitcode.c
gmon_syms.c
gprof_syms.c
initrd.c
irq.c
kmsg_dump.c
ksyms.c
maccess.c
Makefile
mem.c
physmem.c
process.c sched/idle: Fix arch_cpu_idle() vs tracing 2020-11-24 16:47:35 +01:00
ptrace.c
reboot.c
sigio.c
signal.c
stacktrace.c
syscall.c
sysrq.c
time.c um: Fix time-travel mode 2020-12-30 11:54:17 +01:00
tlb.c um: defer killing userspace on page table update failures 2021-03-04 11:38:42 +01:00
trap.c
um_arch.c treewide: Convert macro and uses of __section(foo) to __section("foo") 2020-10-25 14:51:49 -07:00
umid.c
uml.lds.S
vmlinux.lds.S