Konstantin Belousov
83a49712af
kstack_contains(): account for struct pcb on stack
...
for arm64, arm, powerpc, and riscv
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D38320
2023-02-02 00:59:27 +02:00
Konstantin Belousov
2555f175b3
Move kstack_contains() and GET_STACK_USAGE() to MD machine/stack.h
...
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D38320
2023-02-02 00:59:26 +02:00
John Baldwin
9b9e7f4c51
Stack unwinding robustness fixes for RISC-V.
...
- Push the kstack_contains check down into unwind_frame() so that it
is honored by DDB and DTrace.
- Check that the trapframe for an exception frame is contained in the
traced thread's kernel stack for DDB traces.
Reviewed by: markj
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D27357
2020-12-08 17:57:18 +00:00
John Baldwin
367de39efa
Use uintptr_t instead of uint64_t for pointers in stack frames.
...
Reviewed by: mhorne
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D25995
2020-08-12 20:29:49 +00:00
Ruslan Bukin
d52d6d7ca7
Add support for ddb(4).
...
Sponsored by: DARPA, AFRL
Sponsored by: HEIF5
2016-03-10 15:51:43 +00:00