Fix nasty bug in exec*() code that can crash the machine.
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 30 Jul 2009 18:33:36 +0000 (11:33 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 30 Jul 2009 18:33:36 +0000 (11:33 -0700)
commit118cec38dee6997a4d1e314ac812152af05bda53
tree44068e67ef0b6b30e7a27461b832dcd8e4d019c8
parentefca2b8eccb027904b939aab35fde8c191acfc03
Fix nasty bug in exec*() code that can crash the machine.

Fix a case where the exec() would sometimes attempt to free a wild pointer,
placing it in the objcache and creating nasty kernel memory corruption.

Reported-by: Borislav Nikolov <none@venom.interbgc.com>
sys/emulation/linux/i386/linux_machdep.c
sys/kern/kern_exec.c