On Mon, Jan 19, 2026 at 01:01:07PM +0000, Ryan Roberts wrote: > As I reported at [1], kstack offset randomisation suffers from a couple of > bugs > and, on arm64 at least, the performance is poor. This series attempts to fix > both; patch 1 provides back-portable fixes for the functional bugs. Patches > 2-3 > propose a performance improvement approach. > > I've looked at a few different options but ultimately decided that Jeremy's > original prng approach is the fastest. I made the argument that this approach > is > secure "enough" in the RFC [2] and the responses indicated agreement. > > More details in the commit logs. > > > Performance > =========== > > Mean and tail performance of 3 "small" syscalls was measured. syscall was made > 10 million times and each individually measured and binned. These results have > low noise so I'm confident that they are trustworthy. > > The baseline is v6.18-rc5 with stack randomization turned *off*. So I'm > showing > performance cost of turning it on without any changes to the implementation, > then the reduced performance cost of turning it on with my changes applied.
This adds 16 instructions to the system call fast path on s390, however some quick measurements show that executing this extra code is within noise ratio performance wise. Acked-by: Heiko Carstens <[email protected]> # s390
