Skip to content

Remove code relating to guest reporting stackoverflow #1161

Closed

Description

@ludfjig

StackOverflow is currently detected in 3 different ways:

  1. Hypervisor detects the guest writing to the stack guard page, which host reports as a stackoverflow
  2. Host checks stack guard canary after guest returns and makes sure it's not modified
  3. The guest itself somehow identifies a stackoveflow and then aborts with a specific error code, which host reports as a stackoverflow

I believe the third is dead code, as I cannot find anywhere in our code where the guest itself reports this error code. I believe it was previously used when dynamically allocating stack, but not anymore, so we should consider removing this dead code in the host

Activity

  1. added
    lifecycle/confirmedBug is verified or proposal seems reasonable
    and removed on Jan 21, 2026
  2. ludfjig commented on Jan 26, 2026

    @ludfjig
    ContributorAuthor

    Related to #164

  3. added a commit that references this issue on Feb 20, 2026
    a8253f8
  4. added a commit that references this issue on Feb 20, 2026
    c5b47dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

lifecycle/confirmedBug is verified or proposal seems reasonable

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions