Skip to content
Snippets Groups Projects
  • Avi Kivity's avatar
    1dbddc44
    x64: prevent nested exceptions from corrupting the stack · 1dbddc44
    Avi Kivity authored
    Due to the need to handle the x64 red zone, we use a separate stack for
    exceptions via the IST mechanism.  This means that a nested exception will
    reuse the parent exception's stack, corrupting it.  It is usually very hard
    to figure out the root cause when this happens.
    
    Prevent this by setting up a separate stack for nested exceptions, and
    aborting immediately if a nested exception happens.
    1dbddc44
    History
    x64: prevent nested exceptions from corrupting the stack
    Avi Kivity authored
    Due to the need to handle the x64 red zone, we use a separate stack for
    exceptions via the IST mechanism.  This means that a nested exception will
    reuse the parent exception's stack, corrupting it.  It is usually very hard
    to figure out the root cause when this happens.
    
    Prevent this by setting up a separate stack for nested exceptions, and
    aborting immediately if a nested exception happens.