RE: [RFC PATCH] rseq: x86: implement abort-at-ip extension

From: David Laight
Date: Fri Jan 07 2022 - 17:27:22 EST


> That being said, there might be an architecture agnostic alternative available.
> On abort of a RSEQ_CS_FLAG_ABORT_AT_IP critical section, we could let the kernel
> decrement/increment the stack pointer to make room for a pointer (depending if the
> stack grows down or up). It would then store the abort-at-ip value at the top of
> stack.

Stack redzone in a leaf function?

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)