From: Pedro Alves <palves@redhat.com>
To: Andy Lutomirski <luto@amacapital.net>, Andy Lutomirski <luto@kernel.org>
Cc: X86 ML <x86@kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Kees Cook <keescook@chromium.org>, Borislav Petkov <bp@alien8.de>,
Oleg Nesterov <oleg@redhat.com>
Subject: Re: [PATCH v2] x86/ptrace: Stop setting TS_COMPAT in ptrace code
Date: Mon, 20 Jun 2016 23:21:42 +0100 [thread overview]
Message-ID: <da123119-4336-90fd-6cb0-6d3e72843d42@redhat.com> (raw)
In-Reply-To: <CALCETrU3B1fiEQTS8d=w+outfWu3aMjT67LGtStCxYZgvfXomg@mail.gmail.com>
On 06/20/2016 08:37 PM, Andy Lutomirski wrote:
> On Mon, Jun 20, 2016 at 9:29 AM, Andy Lutomirski <luto@kernel.org> wrote:
>> Setting TS_COMPAT in ptrace is wrong: if we happen to do it during
>> syscall entry, then we'll confuse seccomp and audit. (The former
>> isn't a security problem: seccomp is currently entirely insecure if a
>> malicious ptracer is attached.) As a minimal fix, this patch adds a
>> new flag TS_I386_REGS_POKED that handles the ptrace special case.
>>
>> Cc: Pedro Alves <palves@redhat.com>
>> Cc: Oleg Nesterov <oleg@redhat.com>
>> Cc: Kees Cook <keescook@chromium.org>
>> Signed-off-by: Andy Lutomirski <luto@kernel.org>
>
> In case you're interested, my draft followup (definitely not for x86/urgent) is:
>
> https://git.kernel.org/cgit/linux/kernel/git/luto/linux.git/commit/?h=x86/vmap_stack&id=50d2f2a9fe1b
>
> Pedro, this appears to pass ptrace-tests. I need to try the 64-vs-32
> thing, but it's intended to fix it for real.
Awesome, thanks much for working on this!
Thanks,
Pedro Alves
prev parent reply other threads:[~2016-06-20 22:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-20 16:29 Andy Lutomirski
2016-06-20 19:37 ` Andy Lutomirski
2016-06-20 22:21 ` Pedro Alves [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=da123119-4336-90fd-6cb0-6d3e72843d42@redhat.com \
--to=palves@redhat.com \
--cc=bp@alien8.de \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=luto@kernel.org \
--cc=oleg@redhat.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®