Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176204253
D41534.id126336.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
455 B
Referenced Files
None
Subscribers
None
D41534.id126336.diff
View Options
diff --git a/sys/riscv/riscv/db_trace.c b/sys/riscv/riscv/db_trace.c
--- a/sys/riscv/riscv/db_trace.c
+++ b/sys/riscv/riscv/db_trace.c
@@ -84,7 +84,8 @@
struct trapframe *tf;
tf = (struct trapframe *)(uintptr_t)frame->sp;
- 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
Sat, Oct 17, 10:42 PM (10 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40970536
Default Alt Text
D41534.id126336.diff (455 B)
Attached To
Mode
D41534: riscv db_trace: Ensure trapframe pointer is suitably aligned.
Attached
Detach File
Event Timeline
Log In to Comment