Page MenuHomeFreeBSD

D41486.diff
No OneTemporary

D41486.diff

diff --git a/sys/arm64/arm64/db_trace.c b/sys/arm64/arm64/db_trace.c
--- a/sys/arm64/arm64/db_trace.c
+++ b/sys/arm64/arm64/db_trace.c
@@ -93,7 +93,8 @@
struct trapframe *tf;
tf = (struct trapframe *)(uintptr_t)frame->fp - 1;
- if (!kstack_contains(td, (vm_offset_t)tf,
+ if (!__is_aligned(tf, _Alignof(*tf)) ||
+ !kstack_contains(td, (vm_offset_t)tf,
sizeof(*tf))) {
db_printf("--- invalid trapframe %p\n", tf);
break;

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 24, 4:54 AM (19 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16077687
Default Alt Text
D41486.diff (459 B)

Event Timeline