x86/ipipe: x86_64: fix stack overflow detection
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.
Showing with 11 additions and 5 deletions