Annotate amd64 stack unwinders with __nomemorysanitize
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
4cd7e82a4c
commit
f95e683fa2
@ -258,7 +258,7 @@ db_nextframe(struct amd64_frame **fp, db_addr_t *ip, struct thread *td)
|
|||||||
*fp = (struct amd64_frame *) rbp;
|
*fp = (struct amd64_frame *) rbp;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int __nosanitizeaddress __nosanitizememory
|
||||||
db_backtrace(struct thread *td, struct trapframe *tf, struct amd64_frame *frame,
|
db_backtrace(struct thread *td, struct trapframe *tf, struct amd64_frame *frame,
|
||||||
db_addr_t pc, register_t sp, int count)
|
db_addr_t pc, register_t sp, int count)
|
||||||
{
|
{
|
||||||
|
@ -156,7 +156,7 @@ pmc_save_user_callchain(uintptr_t *cc, int nframes, struct trapframe *tf)
|
|||||||
* code, and if so we terminate our trace.
|
* code, and if so we terminate our trace.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int __nosanitizeaddress
|
int __nosanitizeaddress __nosanitizememory
|
||||||
pmc_save_kernel_callchain(uintptr_t *cc, int nframes, struct trapframe *tf)
|
pmc_save_kernel_callchain(uintptr_t *cc, int nframes, struct trapframe *tf)
|
||||||
{
|
{
|
||||||
int n;
|
int n;
|
||||||
|
@ -70,7 +70,7 @@ static struct mtx intr_lock;
|
|||||||
MTX_SYSINIT(intr_lock, &intr_lock, "stack intr", MTX_DEF);
|
MTX_SYSINIT(intr_lock, &intr_lock, "stack intr", MTX_DEF);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void __nosanitizeaddress
|
static void __nosanitizeaddress __nosanitizememory
|
||||||
stack_capture(struct thread *td, struct stack *st, register_t fp)
|
stack_capture(struct thread *td, struct stack *st, register_t fp)
|
||||||
{
|
{
|
||||||
x86_frame_t frame;
|
x86_frame_t frame;
|
||||||
|
Loading…
Reference in New Issue
Block a user