HomeFreeBSD

Protect dtrace_getpcstack() from a NULL stack pointer in a trap frame

Description

Protect dtrace_getpcstack() from a NULL stack pointer in a trap frame

Found when trying to use lockstat on a POWER9, the stack pointer (r1) could
be NULL, and result in a NULL pointer dereference, crashing the kernel.

Details

Provenance
jhibbitsAuthored on
Parents
rS334369: libpmc: bring pmu_util closer in line with style(9)
Branches
Unknown
Tags
Unknown