Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755847AbeAHSfh (ORCPT + 1 other); Mon, 8 Jan 2018 13:35:37 -0500 Received: from mail-io0-f196.google.com ([209.85.223.196]:44810 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755723AbeAHSfd (ORCPT ); Mon, 8 Jan 2018 13:35:33 -0500 X-Google-Smtp-Source: ACJfBosRW0M6Vhx5S2Guog158ErbJLuF+eANWCvA5cACi4EbTI0zPJ5bAellcT7h+K0Pc5DRXI2YVc6sNdfnpEdNBKE= MIME-Version: 1.0 In-Reply-To: <20180108182510.3c6dda34@alans-desktop> References: <1515427939-10999-1-git-send-email-w@1wt.eu> <1515427939-10999-4-git-send-email-w@1wt.eu> <760b7264-1ae7-bcaa-6d20-f47cc7c7fce1@intel.com> <20180108175028.acwe3glhw4rsvdsx@gmail.com> <20180108182510.3c6dda34@alans-desktop> From: Linus Torvalds Date: Mon, 8 Jan 2018 10:35:32 -0800 X-Google-Sender-Auth: K__I1QYqsd3ut2TCPM-jk7kHbJs Message-ID: Subject: Re: [PATCH RFC 3/4] x86/pti: don't mark the user PGD with _PAGE_NX. To: Alan Cox Cc: Ingo Molnar , Dave Hansen , Thomas Gleixner , Willy Tarreau , Linux Kernel Mailing List , "the arch/x86 maintainers" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Mon, Jan 8, 2018 at 10:25 AM, Alan Cox wrote: > > I still think cgroups are the best model for this. In particular it > naturally fits things like containers, or network facing apps that fork > helpers. > > Secondly when you are looking at barrier semantics between client/client > a cgroup is much more natural as a way to group processes together who > don't need to be protected from each other as they are trusting each > other. (Or we could just harcode this based upon ptraceability ?) I agree that cgroups would be fairly natural, but I do think we could look at things like simply trusted users too ("running as root? Yeah, we're not going to try to protect the kernel from you") and/or trusted binaries. But all of those things are likely things that can easily be determined at execve() time. Linus