minix/kernel
Ben Gras 298b41b523 libexec: detect short files
if an exec() fails partway through reading in the sections, the target
process is already gone and a defunct process remains. sanity checking
the binary beforehand helps that.

test10 mutilates binaries and exec()s them on purpose; making an exec()
fail cleanly in such cases seems like acceptable behaviour.

fixes test10 on ARM.

Change-Id: I1ed9bb200ce469d4d349073cadccad5503b2fcb0
2013-02-04 12:04:35 +01:00
..
arch libexec: detect short files 2013-02-04 12:04:35 +01:00
system kernel, libc: signals fixes 2013-02-04 12:03:46 +01:00
clock.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
clock.h Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
config.h No more intel/minix segments. 2012-07-15 22:30:15 +02:00
const.h No more intel/minix segments. 2012-07-15 22:30:15 +02:00
cpulocals.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
cpulocals.h Kernel: clean up include statements a bit 2012-08-14 16:29:05 +00:00
debug.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
debug.h retire _ANSI and <minix/ansi.h> 2012-03-25 21:58:27 +02:00
extract-errno.sh Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
extract-mfield.sh Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
extract-mtype.sh Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
glo.h kernel: facility for user-visible memory 2012-07-28 20:57:38 +00:00
interrupt.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
interrupt.h SMP - trully idle APs 2010-09-15 14:10:57 +00:00
ipc.h machine/ipcconst.h for arch-specific constants 2012-08-27 19:46:41 -04:00
kernel.h Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
main.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
Makefile Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
priv.h Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
proc.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
proc.h kernel: trap-dependent state restore, trace fixes 2013-01-08 15:47:37 +00:00
profile.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
profile.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
proto.h kernel: trap-dependent state restore, trace fixes 2013-01-08 15:47:37 +00:00
smp.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
smp.h Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
spinlock.h Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
system.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
system.h Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
table.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
type.h No more intel/minix segments. 2012-07-15 22:30:15 +02:00
usermapped_data.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
utility.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
vm.h No linear addresses in message delivery 2010-06-11 08:16:10 +00:00
watchdog.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
watchdog.h Libraries updates and cleanup 2013-01-14 11:36:26 +01:00