Thread (13 messages) flat view 13 messages, 4 authors, 2018-07-02

Re: [RFC PATCH for 4.18 1/2] rseq: validate rseq_cs fields are < TASK_SIZE

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2018-06-29 17:03:27
Also in: lkml

Possibly related (same subject, not in this thread)

On Fri, Jun 29, 2018 at 9:07 AM Mathieu Desnoyers
[off-list ref] wrote:
This code is not invoked from syscalls, but rather on return from
interrupt/trap after a preemption.
But when we register the rseq, we could easily check that the top bits
of the IP is clear, no?

Sure, user space can change it after the fact, but at that point it's
literally "user space is being intentionally stupid".

The real worry is that 32-bit compat code never initializes those bits
at all, no?

                Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help