Re: [PATCH v7 3/7] kernel: Implement selective syscall userspace redirection

From
Peter Zijlstra <peterz@infradead.org>
Date
2020-11-19 12:36:33
Also in
linux-kselftest, lkml
Reply to
Gabriel Krisman Bertazi, 2020-11-18
On Tue, Nov 17, 2020 at 10:28:36PM -0500, Gabriel Krisman Bertazi wrote:
  prctl(PR_SET_SYSCALL_USER_DISPATCH, <op>, <off>, <length>, [selector])

The range [<offset>,<offset>+len] is a part of the process memory map
+	if (likely(instruction_pointer(regs) - sd->offset < sd->len))
+		return false;
The actual implementation ^ is: [<offset>, <offset>+<length>).

Which seems consistent and right, so I would suggest simply changing the
Changelog, something that could be done when applying.
Thread (11 messages) 11 messages, 3 authors, last reply 2020-11-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help