HomeFreeBSD

Avoid kernel panic when attaching a process which may not be stopped
rS153697Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Avoid kernel panic when attaching a process which may not be stopped
by debugger, e.g process is dumping core. Only access p_xthread if
P_STOPPED_TRACE is set, this means thread is ready to exchange signal
with debugger, print a warning if P_STOPPED_TRACE is not set due to
some bugs in other code, if there is.

The patch has been tested by Anish Mistry mistry.7 at osu dot edu, and
is slightly adjusted.

Details

Provenance
davidxuAuthored on
Parents
rS153696: MFC r1.41, do not BPF_MTAP the packet twice
Branches
Unknown
Tags
Unknown