HomeFreeBSD

Return ESRCH when a kernel stack is queried on a process in execve() --
rS174947Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Return ESRCH when a kernel stack is queried on a process in execve() --
p_candebug() will return EAGAIN which, if the other process never
leaves execve(), will result in the sysctl spinning and never returning
to userspace. Processes should always eventually leave execve(), but
spinning in kernel while we wait is bad for countless reasons, and
particularly harmful if execve() itself is deadlocked.

Possibly we should return another error, or return a marker indicating
the thread is in execve() so it can be reported that way in userspace.

Reported by: kris

Details

Provenance
rwatsonAuthored on
Parents
rS174946: Garbage-collect following nomore existing options:
Branches
Unknown
Tags
Unknown

Event Timeline