Re:Linux: Introduce restartable sequences system call
by compudj on Friday June 22, 2018 @12:32PM
(#17375296)
Indeed the restartable sequence critical section needs to be written in assembly. The idea is to keep this complexity within public headers implementing the common operations as inline assembly for all supported architectures. You can see such operations already implemented for x86 as part of the rseq selftests here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
Re:Linux: Introduce restartable sequences system call
by viraptor on Friday June 22, 2018 @05:43AM
(#17372713)
I think C lost it at: abort must be possible to call from any place in the critical block. Since you can't be sure the registers didn't spill on the stack, I don't think anything more than ASM would work.
Does it mean that I have to write it in assembly to make sure that I know where the sequence starts and where it ends?