original_kernel/arch/um/include
Paolo 'Blaisorblade' Giarrusso 5d48545e5e [PATCH] uml: make execvp safe for our usage
Reimplement execvp for our purposes - after we call fork() it is fundamentally
unsafe to use the kernel allocator - current is not valid there.  So we simply
pass to our modified execvp() a preallocated buffer.  This fixes a real bug
and works very well in testing (I've seen indirectly warning messages from the
forked thread - they went on the pipe connected to its stdout and where read
as a number by UML, when calling read_output().  I verified the obtained
number corresponded to "BUG:").

The added use of __cant_sleep() is not a new bug since __cant_sleep() is
already used in the same function - passing an atomicity parameter would be
better but it would require huge change, stating that this function must not
be called in atomic context and can sleep is a better idea (will make sure of
this gradually).

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-11-25 13:28:34 -08:00
..
skas
sysdep-i386 [PATCH] uml: fix I/O hang 2006-11-03 12:27:58 -08:00
sysdep-ia64
sysdep-ppc
sysdep-x86_64 [PATCH] uml: fix I/O hang 2006-11-03 12:27:58 -08:00
tt
aio.h
chan_kern.h
chan_user.h
choose-mode.h
common-offsets.h [PATCH] uml: asm offsets duplication removal 2006-10-11 11:14:20 -07:00
elf_user.h
frame_kern.h
init.h
initrd.h
irq_kern.h IRQ: Use the new typedef for interrupt handler function pointers 2006-10-09 12:19:47 +01:00
irq_user.h
kern.h
kern_util.h [PATCH] make UML compile (FC6/x86-64) 2006-10-15 14:18:39 -07:00
line.h
longjmp.h [PATCH] uml: make UML_SETJMP always safe 2006-10-11 11:14:20 -07:00
mconsole.h [PATCH] uml: mconsole fixes 2006-10-24 22:01:10 -07:00
mconsole_kern.h [PATCH] uml ubd driver: various little changes 2006-10-31 08:07:00 -08:00
mem.h
mem_kern.h
mem_user.h
misc_constants.h
mode.h
mode_kern.h
net_kern.h
net_user.h
os.h [PATCH] uml: make execvp safe for our usage 2006-11-25 13:28:34 -08:00
process.h
ptrace_user.h
registers.h
sigcontext.h
sigio.h
signal_kern.h
skas_ptrace.h
skas_ptregs.h
syscall.h
sysrq.h
task.h
tempfile.h
tlb.h
ubd_user.h
um_malloc.h [PATCH] uml: split memory allocation prototypes out of user.h 2006-10-20 10:26:36 -07:00
um_mmu.h
um_uaccess.h
umid.h
uml_uaccess.h
user.h [PATCH] uml: split memory allocation prototypes out of user.h 2006-10-20 10:26:36 -07:00
user_util.h [PATCH] uml: split memory allocation prototypes out of user.h 2006-10-20 10:26:36 -07:00