We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88390e4 commit 7feba04Copy full SHA for 7feba04
sdk/core/switcher/entry.S
@@ -200,8 +200,9 @@ compartment_switcher_entry:
200
and gp, gp, ~0xf
201
// Skip zeroing if high water mark >= stack pointer
202
bge t2, sp, after_zero
203
- // Use stack high water mark as base address for zeroing
204
- // XXX could be out of bounds / unrepresentable if bad csp?
+ // Use stack high water mark as base address for zeroing. If this faults
+ // then it will trigger a force unwind. This can happen only if the caller
205
+ // is doing something bad.
206
csetaddr ct2, csp, gp
207
#endif
208
zero_stack t2, s0, gp
0 commit comments