[lkml]   [2018]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v8 1/2] seccomp: add a return code to trap to userspace
On 11/29, Tycho Andersen wrote:
> /*
> * These should never be seen by user programs. To return one of ERESTART*
> * codes, signal_pending() MUST be set. Note that ptrace can observe these
> * at syscall exit tracing, but they will never be left for the debugged user
> * process to see.
> */
> #define ERESTARTSYS 512
> So basically, if you respond with -ERESTARTSYS with no signal pending, you'll
> leak it to userspace.


> It turns out this is already possible with
> SECCOMP_RET_TRAP (and probably ptrace alone,


> The question is: do we care?

I think we do not care, debugger can do anything with the tracee.


 \ /
  Last update: 2018-11-30 11:19    [W:0.255 / U:2.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site