I missed something about abort
I missed something about abort
Posted Aug 24, 2025 17:57 UTC (Sun) by ssmith32 (subscriber, #72404)Parent article: Bringing restartable sequences out of the niche
"the kernel will handle a system-call return in the same way as an interrupt return: if the thread is running in a critical section and an event has occurred, control will be redirected to the abort handler. "
And this:
" If the current instruction pointer lies within the critical section, the kernel will cause execution to jump to the abort address. The thread can then clean up after its aborted attempt and restart the operation. "
What's "if an event occurred"?
I read this as saying invoking a system call in a critical section results in the abort handler being called.. which restart the sequence, which would seem to be a bit (infinite) loopy.
But the rest of the article seems to imply the current (pre-tglx) code inadvertently works on non-debug kernels.
So I missed something, probably obvious.. but I can't sort out what.
