LWN: Comments on "Restartable sequences restarted" https://lwn.net/Articles/697979/ This is a special feed containing comments posted to the individual LWN article titled "Restartable sequences restarted". en-us Sat, 27 Sep 2025 11:28:03 +0000 Sat, 27 Sep 2025 11:28:03 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Restartable sequences restarted https://lwn.net/Articles/948167/ https://lwn.net/Articles/948167/ bpearlmutter <div class="FormattedComment"> I'd be concerned that this kind of mechanism can be used to get inappropriate access to data, by monitoring the number of restarts while setting things up so data you shouldn't have access to alters the probability of getting restarted.<br> </div> Thu, 19 Oct 2023 11:23:42 +0000 Restartable sequences restarted... with "frightening code" https://lwn.net/Articles/698833/ https://lwn.net/Articles/698833/ nix <div class="FormattedComment"> This is not kernel code. This is *userspace* code. i.e. this is something the *users* of this feature have to do (or, more likely, use this very code, migrated to a proper library, to do).<br> </div> Wed, 31 Aug 2016 19:41:23 +0000 re-registration https://lwn.net/Articles/698447/ https://lwn.net/Articles/698447/ corbet I guess I didn't make that clear enough. The point is to let unrelated libraries all use this facility without stepping on each other's toes. The kernel can only handle one such structure per thread, but, by allowing nested registration and through the use of the <tt>__rseq_abi</tt> trick, independent users can all get along. Mon, 29 Aug 2016 09:50:43 +0000 re-registration https://lwn.net/Articles/698435/ https://lwn.net/Articles/698435/ lkurusa <div class="FormattedComment"> What is the rationale behind letting people re-register their struct rseq? Isn't this something akin to recursive locks?<br> </div> Mon, 29 Aug 2016 03:00:02 +0000 Restartable sequences restarted... with "frightening code" https://lwn.net/Articles/698193/ https://lwn.net/Articles/698193/ pr1268 <blockquote><font class="QuotedText">the rather frightening assembly-in-CPP code found <a href="https://lwn.net/Articles/697990/#do_rseq">here</a> and <a href="https://lwn.net/Articles/697990/#finish_asm">here</a>.</font></blockquote> <p>When our esteemed editor starts describing prospective kernel code as &quot;frightening&quot;, then I think it's time to really be scared.</p> <p>In other words, don't try the self-tests without bracing yourself for possible blindness when browsing the code. ;-)</p> <p>Regardless, this looks like a useful feature. Hopefully it gains enough traction to make it in...</p> Thu, 25 Aug 2016 02:55:07 +0000