linux-stable-rt/arch
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
..
alpha
arm [ARM] 3942/1: ARM: comment: consistent_sync should not be called directly 2006-11-22 22:45:57 +00:00
arm26
avr32
cris
frv
h8300
i386 x86: be more careful when walking back the frame pointer chain 2006-11-17 11:14:56 -08:00
ia64 [IA64] a fix towards allmodconfig build 2006-11-16 11:25:12 -08:00
m32r
m68k
m68knommu [PATCH] m68knommu: fix up for the irq_handler_t changes 2006-11-20 10:16:49 -08:00
mips [MIPS] Hack for SB1 cache issues 2006-11-22 23:34:01 +00:00
parisc
powerpc [POWERPC] Fix ucc_geth of_device discovery on mpc832x 2006-11-22 13:28:21 +11:00
ppc
s390
sh
sh64
sparc
sparc64
um [PATCH] uml: make execvp safe for our usage 2006-11-25 13:28:34 -08:00
v850
x86_64 [PATCH] x86_64: Align data segment to PAGE_SIZE boundary 2006-11-21 10:31:21 +01:00
xtensa