Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755529AbeAHSZp (ORCPT + 1 other); Mon, 8 Jan 2018 13:25:45 -0500 Received: from www.llwyncelyn.cymru ([82.70.14.225]:35976 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755454AbeAHSZl (ORCPT ); Mon, 8 Jan 2018 13:25:41 -0500 Date: Mon, 8 Jan 2018 18:25:10 +0000 From: Alan Cox To: Ingo Molnar Cc: Dave Hansen , Thomas Gleixner , Willy Tarreau , linux-kernel@vger.kernel.org, x86@kernel.org, torvalds@linux-foundation.org Subject: Re: [PATCH RFC 3/4] x86/pti: don't mark the user PGD with _PAGE_NX. Message-ID: <20180108182510.3c6dda34@alans-desktop> In-Reply-To: <20180108175028.acwe3glhw4rsvdsx@gmail.com> 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> Organization: Intel Corporation X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: > The simplest model is indeed child inheritance tree propagation - plus perhaps the > ability for a thread to change its *own* PTI status, which obviously doesn't > create any deep "process lookup" or cross-CPU complications. > > ( Note that here I only mean "simple to implement" - we might decide to not offer > the ABI. ) 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 ?) Alan