Ah, or is it the case that rseq_cs is non-NULL if and only if userspace is in anNot quite, as I described above. But we want it to stay set so the CONFIG_DEBUG_RSEQ
rseq critical section, and because syscalls in critical sections are illegal, by
definition clearing rseq_cs is a nop unless userspace is misbehaving.
code executed when returning from ioctl to userspace will be able to validate that
it is not nested within a rseq critical section.
If that's true, what about explicitly checking that at NOTIFY_RESUME? Or is itThe error will indeed already be caught on return from ioctl to userspace, so I
not worth the extra code to detect an error that will likely be caught anyways?
don't see any added value in duplicating this check.