Commit f5aa2c9e authored by Michael Quigley's avatar Michael Quigley
Browse files

fixed stack overflow bug in ASYNC. This is a bug in Barrelfish. The...

fixed stack overflow bug in ASYNC. This is a bug in Barrelfish. The RETURN_CONT macro was not popping the return address off of the stack when it should have. This would only happen when ASYNC was called a lot without anything yielding within it. I think this is why the bug was undiscovered.
parent b3bfc829
Subproject commit 79712e31190bd1e74efac04ab46dfd32d909364f
Subproject commit 59b5314ae4d629a73725dcea4762d23c4c48e4a7
......@@ -323,6 +323,7 @@ extern int _end_text_nx;
__asm__ volatile ( \
" movq %rbp, %rsp \n\t" /* free frame */ \
" popq %rbp \n\t" /* restore rbp */ \
" addq $8, %rsp \n\t" \
" jmp " JMP_ADDR " \n\t" /* jump to continuation */ \
);
#elif defined(__i386__)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment