Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934204AbcCIVI0 (ORCPT ); Wed, 9 Mar 2016 16:08:26 -0500 Received: from mail-oi0-f43.google.com ([209.85.218.43]:34502 "EHLO mail-oi0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932504AbcCIVIQ (ORCPT ); Wed, 9 Mar 2016 16:08:16 -0500 MIME-Version: 1.0 In-Reply-To: <56E09031.8050007@mellanox.com> References: <1456949376-4910-1-git-send-email-cmetcalf@ezchip.com> <1456949376-4910-10-git-send-email-cmetcalf@ezchip.com> <56D895EA.1060301@mellanox.com> <56DDE9C9.5060900@mellanox.com> <56DF38BA.9030007@mellanox.com> <56E09031.8050007@mellanox.com> From: Andy Lutomirski Date: Wed, 9 Mar 2016 13:07:55 -0800 Message-ID: Subject: Re: [PATCH v10 09/12] arch/x86: enable task isolation functionality To: Chris Metcalf Cc: Kees Cook , Thomas Gleixner , Christoph Lameter , Andrew Morton , Viresh Kumar , Ingo Molnar , Steven Rostedt , Tejun Heo , Gilad Ben Yossef , Will Deacon , Rik van Riel , Frederic Weisbecker , "Paul E. McKenney" , "linux-kernel@vger.kernel.org" , X86 ML , "H. Peter Anvin" , Catalin Marinas , Peter Zijlstra Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1225 Lines: 41 On Wed, Mar 9, 2016 at 1:05 PM, Chris Metcalf wrote: > On 3/9/2016 3:58 PM, Andy Lutomirski wrote: >>> >>> My preference would be not to have to require all task-isolation users >>> >to also figure out all the complexities of creating BPF programs, so >>> >my intention is to have task isolation automatically generate a BPF >>> >program (just allowing prctl/exit/exit_group and failing everything >>> >else with SIGSYS). To support having it work this way, I open up >>> >the seccomp stuff a little so that kernel clients can effectively >>> >push/pop a BPF program into seccomp: >> >> That sounds like a great use case for the new libtaskisolation that >> someone is surely writing:) > > > Happily, task isolation is so simple an API that all that is needed is a > prctl(). > > ... Unless somehow a requirement to inflict a huge blob of eBPF into the > kernel > just to use task isolation safely is added, of course :-) > BPF, not eBPF. Also, it's a tiny blob. And this still has nothing to do with using it safely. This has to do with catching your own bugs. --Andy > > -- > Chris Metcalf, Mellanox Technologies > http://www.mellanox.com > -- Andy Lutomirski AMA Capital Management, LLC