dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/arch/um/os-Linux
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
..
drivers [PATCH] uml: split memory allocation prototypes out of user.h 2006-10-20 10:26:36 -07:00
include Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
skas [PATCH] uml: include tidying 2006-11-03 12:27:59 -08:00
sys-i386 [PATCH] Fix "Remove the use of _syscallX macros in UML" 2006-10-30 12:08:41 -08:00
sys-x86_64 [PATCH] uml: stack usage reduction 2006-09-26 08:49:09 -07:00
Makefile [PATCH] uml: make execvp safe for our usage 2006-11-25 13:28:34 -08:00
aio.c [PATCH] uml: Formatting changes 2006-01-06 08:33:45 -08:00
elf_aux.c [PATCH] uml makefiles sanitized 2005-09-29 08:46:26 -07:00
execvp.c [PATCH] uml: make execvp safe for our usage 2006-11-25 13:28:34 -08:00
file.c [PATCH] uml: add some EINTR protection 2006-07-10 13:24:24 -07:00
helper.c [PATCH] uml: make execvp safe for our usage 2006-11-25 13:28:34 -08:00
irq.c [PATCH] uml: split memory allocation prototypes out of user.h 2006-10-20 10:26:36 -07:00
main.c [PATCH] uml: split memory allocation prototypes out of user.h 2006-10-20 10:26:36 -07:00
mem.c [PATCH] uml: close file descriptor leaks 2006-09-29 09:18:04 -07:00
process.c [PATCH] uml: include tidying 2006-11-03 12:27:59 -08:00
sigio.c [PATCH] uml: split memory allocation prototypes out of user.h 2006-10-20 10:26:36 -07:00
signal.c [PATCH] uml: fix I/O hang 2006-11-03 12:27:58 -08:00
start_up.c [PATCH] uml: stack usage reduction 2006-09-26 08:49:09 -07:00
time.c [PATCH] uml: reenable compilation of enable_timer, disabled by mistake 2006-10-20 10:26:36 -07:00
tls.c [PATCH] uml: include tidying 2006-11-03 12:27:59 -08:00
trap.c [PATCH] uml: Use klibc setjmp/longjmp 2006-09-26 08:49:05 -07:00
tt.c [PATCH] uml: make TT mode compile after setjmp-related changes 2006-10-11 11:14:20 -07:00
tty.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tty_log.c [PATCH] uml: move tty logging to os-Linux 2006-03-27 08:44:38 -08:00
uaccess.c [PATCH] uml: Use klibc setjmp/longjmp 2006-09-26 08:49:05 -07:00
umid.c [PATCH] uml: rename and improve actually_do_remove() 2006-07-01 09:56:03 -07:00
user_syms.c [PATCH] uml: export symbols added by GCC hardened 2006-05-01 18:17:45 -07:00
util.c [PATCH] uml: fix uname under setarch i386 2006-10-11 11:14:20 -07:00