The contents of frame->tf_tp are uninitialized if accessed by DTrace (in
probe context), resulting in a panic when trying to access the memory pointed to by
tp. This saves the thread pointer to the trap frame when handling
both userland and kernel exceptions.
Details
Details
- Reviewers
markj mhorne - Commits
- rGd95fbf4e1a12: riscv: save the thread pointer in both modes
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable