Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102647712
D26015.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
773 B
Referenced Files
None
Subscribers
None
D26015.diff
View Options
Index: sys/riscv/riscv/stack_machdep.c
===================================================================
--- sys/riscv/riscv/stack_machdep.c
+++ sys/riscv/riscv/stack_machdep.c
@@ -57,8 +57,7 @@
(vm_offset_t)frame->fp >= td->td_kstack +
td->td_kstack_pages * PAGE_SIZE)
break;
- unwind_frame(frame);
- if (!INKERNEL((vm_offset_t)frame->pc))
+ if (unwind_frame(frame) < 0)
break;
if (stack_put(st, frame->pc) == -1)
break;
Index: sys/riscv/riscv/unwind.c
===================================================================
--- sys/riscv/riscv/unwind.c
+++ sys/riscv/riscv/unwind.c
@@ -53,5 +53,7 @@
frame->fp = ((uintptr_t *)fp)[-2];
frame->pc = ((uintptr_t *)fp)[-1] - 4;
+ if (!INKERNEL(frame->pc))
+ return (-1);
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 7:37 AM (20 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14655328
Default Alt Text
D26015.diff (773 B)
Attached To
Mode
D26015: Check for invalid pc in unwind_frame
Attached
Detach File
Event Timeline
Log In to Comment