Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp694539pxb; Thu, 26 Aug 2021 12:17:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjaqHRBrpLBqrukJAn/A/u1YXpoeOXDYAqFH0e08Xtn/vWyCvu0Urz1bJ0cQtHMXfm+jn1 X-Received: by 2002:a05:6638:148f:: with SMTP id j15mr4715805jak.61.1630005465127; Thu, 26 Aug 2021 12:17:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630005465; cv=none; d=google.com; s=arc-20160816; b=WA3PPD/LWNZsK0/l3ouFo44UKmj8RE3kc65o4eASqLFd1bDgR8EaGkG0sYz5AW3cEj 3eOo2VsFeGYj5aR2k459wNvABK8fQ4cMO7Mz4vCITVeCdXGr/iWPNNl6WdXg7DaMpKj+ 41hkVKfrXtwWjgeI2XkCF/LXUgxIIWJxDpQlgIaZrEv549T+UMQsg7TweASVNeT10SB7 Cufljl9JojkyQ5WADpdhlYWuWfe9EIyzLFE+Qm7Xi84am2e1wPqqITHjfQc7H5k7cFbF 5B+PkRKuye2G0ZArDw7KXJL3SMg6BrDEjvsMvMQVuKlwDF4fpSurjUjWlSOHsIMMv3ci 8OcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=WKnq15o5DHzzZid8FemFIRbiJPpFb0yTGTzQ0eHxU1k=; b=oL6ALVJ63EXyHJCLwixfyitU4wItXT5XSwdIZMxqY1dNIjA8Bx6jIQSnDEvorafeum BTi/JDVawxzV8OigADCSvjU82L6yW32YF8Rc0s/hYVHvNClHZRs0py9mJAgzVQdzrQe3 yN23gvU8DIekyuBPQvt96gsqXjndbv51pteI+cSebPFUUybm3FbFf8g5ZFiaL0hYT1Re Mx2VF9EpUzeDh5R6Qu/iGcPpWKDMgvehzopaOLsYrhtmFhv5zM5vx10MrEoaIIMC+5uA MZdzGYsk+dPEoUpEHf+v7JlcSTV5pqxY+1VnThFtcsh4arAgO52MQ3O2rSWF9nHp+ALS ySnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a94si3460152jai.31.2021.08.26.12.17.21; Thu, 26 Aug 2021 12:17:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243465AbhHZTQr (ORCPT + 99 others); Thu, 26 Aug 2021 15:16:47 -0400 Received: from vmi485042.contaboserver.net ([161.97.139.209]:34926 "EHLO gentwo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243360AbhHZTQr (ORCPT ); Thu, 26 Aug 2021 15:16:47 -0400 Received: by gentwo.de (Postfix, from userid 1001) id 9ABCEB00397; Thu, 26 Aug 2021 21:15:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by gentwo.de (Postfix) with ESMTP id 92245B00356; Thu, 26 Aug 2021 21:15:57 +0200 (CEST) Date: Thu, 26 Aug 2021 21:15:57 +0200 (CEST) From: Christoph Lameter To: Marcelo Tosatti cc: Frederic Weisbecker , linux-kernel@vger.kernel.org, Nitesh Lal , Nicolas Saenz Julienne , Juri Lelli , Peter Zijlstra , Alex Belits , Peter Xu Subject: Re: [patch V3 2/8] add prctl task isolation prctl docs and samples In-Reply-To: <20210826121131.GA152063@fuller.cnet> Message-ID: References: <20210824152423.300346181@fuller.cnet> <20210824152646.706875395@fuller.cnet> <20210826095958.GA908505@lothringen> <20210826121131.GA152063@fuller.cnet> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 26 Aug 2021, Marcelo Tosatti wrote: > Decided on a separate prctl because the inheritance control > is not a feature itself: it acts on all features (or how task isolation > features are inherited across fork/clone). I am having a hard time imagening use cases for such a feature since I usally see special code sections optimized to run without OS jitter and not whole processes. AFAICT You would not want to have any of these on because they cause performance regression if you must do syscalls related to process startup and termination. Since we are adding docs: Could we have some sample use cases for when these features are useful?