android_kernel_xiaomi_sm8350/arch/um/kernel
Bodo Stroesser 9786a8f3cb [PATCH] uml: Proper clone support for skas0
This patch implements the clone-stub mechanism, which allows skas0 to run
with proc_mm==0, even if the clib in UML uses modify_ldt.

Note: There is a bug in skas3.v7 host patch, that avoids UML-skas from
running properly on a SMP-box.  In full skas3, I never really saw problems,
but in skas0 they showed up.

More commentary by jdike - What this patch does is makes sure that the host
parent of each new host process matches the UML parent of the corresponding
UML process.  This ensures that any changed LDTs are inherited.  This is
done by having clone actually called by the UML process from its stub,
rather than by the kernel.  We have special syscall stubs that are loaded
onto the stub code page because that code must be completely
self-contained.  These stubs are given C interfaces, and used like normal C
functions, but there are subtleties.  Principally, we have to be careful
about stack variables in stub_clone_handler after the clone.  The code is
written so that there aren't any - everything boils down to a fixed
address.  If there were any locals, references to them after the clone
would be wrong because the stack just changed.

Signed-off-by: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-07-07 18:23:44 -07:00
..
skas [PATCH] uml: Proper clone support for skas0 2005-07-07 18:23:44 -07:00
tt [PATCH] uml: skas0 - separate kernel address space on stock hosts 2005-07-07 18:23:44 -07:00
config.c.in
dyn.lds.S [PATCH] uml: skas0 - separate kernel address space on stock hosts 2005-07-07 18:23:44 -07:00
exec_kern.c [PATCH] uml: remove 2_5compat.h 2005-05-28 16:46:11 -07:00
exitcode.c
gmon_syms.c
gprof_syms.c
helper.c
init_task.c
initrd.c [PATCH] uml: initrd cleanup 2005-05-20 15:48:18 -07:00
irq_user.c [PATCH] uml: add and use generic hw_controller_type->release 2005-06-21 19:07:32 -07:00
irq.c [PATCH] uml: add and use generic hw_controller_type->release 2005-06-21 19:07:32 -07:00
ksyms.c [PATCH] uml: Export clear_user_* 2005-05-20 15:48:18 -07:00
main.c [PATCH] uml: always disable kmalloc during shutdown 2005-06-25 16:24:35 -07:00
Makefile [PATCH] uml: initrd cleanup 2005-05-20 15:48:18 -07:00
mem_user.c
mem.c [PATCH] mm: remove PG_highmem 2005-06-21 18:46:17 -07:00
physmem.c [PATCH] uml: skas0 - separate kernel address space on stock hosts 2005-07-07 18:23:44 -07:00
process_kern.c [PATCH] uml: fix timer initialization 2005-06-25 16:24:35 -07:00
process.c [PATCH] uml: skas0 - separate kernel address space on stock hosts 2005-07-07 18:23:44 -07:00
ptrace.c [PATCH] uml: fix a couple of warnings 2005-05-28 16:46:11 -07:00
reboot.c [PATCH] uml: always disable kmalloc during shutdown 2005-06-25 16:24:35 -07:00
resource.c
sigio_kern.c
sigio_user.c [PATCH] uml: Fix SIGWINCH relaying 2005-05-05 16:36:36 -07:00
signal_kern.c
signal_user.c
smp.c
syscall_kern.c [PATCH] uml: fork cleanup 2005-06-25 16:24:35 -07:00
syscall_user.c
sysrq.c [PATCH] uml: stack dump fix 2005-05-28 16:46:13 -07:00
tempfile.c
time_kern.c [PATCH] uml: time initialization tidying 2005-06-25 16:24:35 -07:00
time.c [PATCH] uml: Proper clone support for skas0 2005-07-07 18:23:44 -07:00
tlb.c [PATCH] uml: skas0 - separate kernel address space on stock hosts 2005-07-07 18:23:44 -07:00
trap_kern.c [PATCH] uml: remove 2_5compat.h 2005-05-28 16:46:11 -07:00
trap_user.c [PATCH] uml: S390 preparation, abstract host page fault data 2005-05-05 16:36:36 -07:00
tty_log.c
uaccess_user.c
um_arch.c [PATCH] uml: remove duplicate includes 2005-06-13 20:58:43 -07:00
umid.c
uml.lds.S [PATCH] uml: skas0 - separate kernel address space on stock hosts 2005-07-07 18:23:44 -07:00
user_util.c
vmlinux.lds.S [PATCH] uml: include the linker script rather than symlink it 2005-05-05 16:36:33 -07:00