HomeFreeBSD

exec_new_vmspace: print useful error message on ctty if stack cannot be mapped.

Description

exec_new_vmspace: print useful error message on ctty if stack cannot be mapped.

After old vmspace is destroyed during execve(2), but before the new space
is fully constructed, an error during image activation cannot be returned
because there is no executing program to receive it.

In the relatively common case of failure to map stack, print some hints
on the control terminal. Note that user has enough knobs to cause stack
mapping error, and this is the most common reason for execve(2) aborting
the process.

Requested by: jhb
Reviewed by: emaste, jhb
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28050

Details

Provenance
kibAuthored on Jan 11 2021, 6:51 PM
Reviewer
emaste
Differential Revision
D28050: Implement enforcing write XOR execute mapping policy.
Parents
rG2e1c94aa1fd5: Implement enforcing write XOR execute mapping policy.
Branches
Unknown
Tags
Unknown