Skip to content
  • Philippe Gerum's avatar
    x86/ipipe: x86_64: fix stack overflow detection · 08bde997
    Philippe Gerum authored
    Due to the deferred IRQ dispatching model when the pipeline is active,
    the detection code may not assume that its runs over the preempted
    stack context, so regs->sp does not necessarily point at the current
    stack context anymore.
    
    Explicitly compare the current %rsp value against valid stack
    boundaries instead.
    
    This fixes spurious overflow detections when
    CONFIG_DEBUG_STACKOVERFLOW is enabled.
    08bde997