Skip to content

Clear abort buffer on each function call#1335

Merged
ludfjig merged 2 commits intohyperlight-dev:mainfrom
ludfjig:clear_abort_buffer
Mar 23, 2026
Merged

Clear abort buffer on each function call#1335
ludfjig merged 2 commits intohyperlight-dev:mainfrom
ludfjig:clear_abort_buffer

Conversation

@ludfjig
Copy link
Contributor

@ludfjig ludfjig commented Mar 23, 2026

Abort buffer must be cleared on each guest function invocation, otherwise if the guest is cancelled mid-abort (e.g. via kill()), the partial bytes persist and leak into subsequent calls. After enough cancel+restore cycles, the buffer exceeds 1024 bytes and triggers a spurious GuestAborted(0, "Guest abort buffer overflowed") error on an otherwise healthy call.

ludfjig added 2 commits March 23, 2026 12:42
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
@ludfjig ludfjig added the kind/bugfix For PRs that fix bugs label Mar 23, 2026
@ludfjig ludfjig marked this pull request as ready for review March 23, 2026 21:00
@ludfjig ludfjig merged commit 3517c0c into hyperlight-dev:main Mar 23, 2026
75 of 79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bugfix For PRs that fix bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants