Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1354459

Re: [PATCH v10 09/12] arch/x86: enable task isolation functionality

From Andy Lutomirski <luto@amacapital.net>
Newsgroups linux.kernel
Subject Re: [PATCH v10 09/12] arch/x86: enable task isolation functionality
Date 2016-03-09 22:20 +0100
Message-ID <raTGq-5aL-11@gated-at.bofh.it> (permalink)
References (5 earlier) <raapY-7Qq-27@gated-at.bofh.it> <raapY-7Qq-25@gated-at.bofh.it> <raTn4-4Os-9@gated-at.bofh.it> <raTn4-4Os-7@gated-at.bofh.it> <raTGq-5aL-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Mar 9, 2016 at 1:10 PM, Kees Cook <keescook@chromium.org> wrote:
> On Wed, Mar 9, 2016 at 12:58 PM, Andy Lutomirski <luto@amacapital.net> wrote:
>> On Tue, Mar 8, 2016 at 12:40 PM, Chris Metcalf <cmetcalf@mellanox.com> wrote:
>>> On 03/07/2016 03:55 PM, Andy Lutomirski wrote:
>>>>>>
>>>>>> Let task isolation users who want to detect when they screw up and do
>>>>>> >>a syscall do it with seccomp.
>>>>>
>>>>>
>>>>> >Can you give me more details on what you're imagining here?  Remember
>>>>> >that a key use case is that these applications can remove the syscall
>>>>> >prohibition voluntarily; it's only there to prevent unintended uses
>>>>> >(by third party libraries or just straight-up programming bugs).
>>>>> >As far as I can tell, seccomp does not allow you to go from "less
>>>>> >permissive" to "more permissive" settings at all, which means that as
>>>>> >it exists, it's not a good solution for this use case.
>>>>> >
>>>>> >Or were you thinking about a new seccomp API that allows this?
>>>>
>>>> I was.  This is at least the second time I've wanted a way to ask
>>>> seccomp to allow a layer to be removed.
>>>
>>>
>>> Andy,
>>>
>>> Please take a look at this draft patch that intends to enable seccomp
>>> as something that task isolation can use.
>>
>> Kees, this sounds like it may solve your self-instrumentation problem.
>> Want to take a look?
>
> Errrr... I'm pretty uncomfortable with this. I really would like to
> keep the basic semantics of seccomp is simple as possible: filtering
> only gets more restricted.
>
> This doesn't really solve my self-instrumentation desires since I
> still can't sanely deliver signals. I would need a lot more
> convincing. :)
>

I think you could do it by adding a filter that turns all the unknown
things into SIGSYS, allows sigreturn, and allows the seccomp syscall,
at least in the pop-off-the-filter variant.  Then you add this
removably.

In the SIGSYS handler, you pop off the filter, do your bookkeeping,
update the filter, and push it back on.

--Andy

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v10 09/12] arch/x86: enable task isolation functionality Andy Lutomirski <luto@amacapital.net> - 2016-03-07 22:00 +0100
  Re: [PATCH v10 09/12] arch/x86: enable task isolation functionality Andy Lutomirski <luto@amacapital.net> - 2016-03-09 22:00 +0100
    Re: [PATCH v10 09/12] arch/x86: enable task isolation functionality Andy Lutomirski <luto@amacapital.net> - 2016-03-09 22:10 +0100
    Re: [PATCH v10 09/12] arch/x86: enable task isolation functionality Andy Lutomirski <luto@amacapital.net> - 2016-03-09 22:20 +0100
      Re: [PATCH v10 09/12] arch/x86: enable task isolation functionality Kees Cook <keescook@chromium.org> - 2016-03-09 22:30 +0100
        Re: [PATCH v10 09/12] arch/x86: enable task isolation functionality Andy Lutomirski <luto@amacapital.net> - 2016-03-09 23:00 +0100
    Re: [PATCH v10 09/12] arch/x86: enable task isolation functionality Kees Cook <keescook@chromium.org> - 2016-03-09 22:20 +0100

csiph-web