]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do not leak oldvmspace if image activation failed
authorKonstantin Belousov <kib@FreeBSD.org>
Wed, 23 Sep 2020 18:03:07 +0000 (18:03 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Wed, 23 Sep 2020 18:03:07 +0000 (18:03 +0000)
commitaaf78c16f5087b0fd998f97696ab492ee30e30f4
tree94955284fbfa0381156514df07f448014317ed09
parenteb7e125e5880dc8c115cc4283ae6b86d9e7a4a55
Do not leak oldvmspace if image activation failed

and current address space is already destroyed, so kern_execve()
terminates the process.

While there, clean up some internals of post_execve() inlined in init_main.

Reported by: Peter <pmc@citylink.dinoex.sub.org>
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D26525
sys/compat/cloudabi/cloudabi_proc.c
sys/compat/freebsd32/freebsd32_misc.c
sys/compat/linux/linux_emul.c
sys/kern/init_main.c
sys/kern/kern_exec.c
sys/sys/imgact.h
sys/sys/syscallsubr.h