Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108260209
D41486.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
459 B
Referenced Files
None
Subscribers
None
D41486.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D41486: arm64 db_trace: Ensure trapframe pointer is suitably aligned.
Attached
Detach File
Event Timeline
Log In to Comment