Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3175061pxj; Mon, 14 Jun 2021 16:43:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4ptJxC0KG+hhdw8kYivwTkg9kqLxQeUR61WHtfqD50ul/z8ODVonOXxEqNtRg6bgsi+DT X-Received: by 2002:a17:906:3845:: with SMTP id w5mr18144139ejc.518.1623714220814; Mon, 14 Jun 2021 16:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623714220; cv=none; d=google.com; s=arc-20160816; b=XTupU4D/QQTiitEHFEo3VEzc/ugUh48R82/XxOWTeCWbr3znAnuTEnqT5Fpxf+XpnG aJVg3QHvWTyWikAq0fz6IIeJ88hD22P6qOGNB/s89gaTBNbwFAf15ZqjvrNfvRjRyPjL bFisdhLmwLijw7lxU80bXX6k4TMJrED2ZgUH22sdIyQHYBdNVtUYicV/GftNzYUM1Mvp mXj+R/vvkZOsEtHGw0t0HpaQjt2pTqqDwHIAE08CF2OgRhJtrQwMOF7HqeeGfphEpv7G MzTyn2nCzVjLZMeP7IEHkfU9L59IXr1zLFu+14M1TMDHJNGTrHBMObInajJ+TTWCfgfG M5xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=tzJYum4jPDYdUZOzxiE2EDYoA//UFqDYCYrMpSJjOzc=; b=rDyVy15XhsGoXlTpF8WQDYHipUqsOZDhER7cMwedB7+1EmA/mli0ci1sY6x9/jYYZN WoIn3VcoWddSnk6Iuh6A9XK6Bng1sbATtEcdQR5UkIrU0YCZJu3bknFfht9wBDsV8/c0 pDsHMjxiElZIJecJfCozNdvErXHATTQrUIYuOpjNOu/TI6Mf/G6QHZ+kt6pIf8hNnBoe Xu5HsEIvociooeBJm7iHR3MRcKgUu01nrqt782wJai5gGaZe9PeeRzOHVi9G4IAomDPt QOO4ktldCbECfOuo/nAnwg7ln/h8dQGSHkmbmYYxtXdgkhczrWXaBI3eDUQbGf3DoysA EzfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="J4coD/Yq"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g7si11937881ejh.141.2021.06.14.16.43.07; Mon, 14 Jun 2021 16:43:40 -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; dkim=pass header.i=@google.com header.s=20161025 header.b="J4coD/Yq"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231612AbhFNXif (ORCPT + 99 others); Mon, 14 Jun 2021 19:38:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231499AbhFNXif (ORCPT ); Mon, 14 Jun 2021 19:38:35 -0400 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA4FBC061574 for ; Mon, 14 Jun 2021 16:36:18 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id q16so14248046qkm.9 for ; Mon, 14 Jun 2021 16:36:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tzJYum4jPDYdUZOzxiE2EDYoA//UFqDYCYrMpSJjOzc=; b=J4coD/Yq3Y+IWgXlsye2jcl1NSGH//FV5ng79LOcvQO18tNKoWLiXcbslqFwjaJLuZ HKVIz8wuW2qkYevTBXTtBvxOGUT4MGiGBfw8WfQFYDyiRStW8P9OnseLP4+gU/NiLKLS AaOCj2p3HzGDOnFcKOCNiWhgo4b5HT5uTGUJmfo2w4fstlkYdnJTqIX/RJtWmuabYBEY gw8YBCQZqBIFrf1S8STV25xmozk1W6CGzvyP3nWcpv4mvUUWudj0BKjDDVUwQ7dxeRG/ i0ZVNQkYkIS4EskS2lifvpKtZbZYspufOcVBiLnsxyO/VNAxD+z4WkWoj+ScPHQrdFiC tnwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tzJYum4jPDYdUZOzxiE2EDYoA//UFqDYCYrMpSJjOzc=; b=TYKLV9MkEuoCQ/v2ax22tqMiYq1OMid4INLEm4cA2AHJA4DKHgNLXx/rpPMXgITk+7 Q69DgFZqr+hrfnSvOU8p6ToHvC3IJ+rOGdCXq/iF2xOr5R95k/NMFWCeGH6NZFzWIgvm 0JOBDfBugjGFLkCyS7Lf31mxKiX95jB164JxfLl3o2m4/4z53yZPyfWRaahzpsFvedg6 IOF1PuVEXEq9Mu4UPBQsRJnZKYZm3WIpDRenvMlB8id6TPIjNggNHeLixSdV1UBFPU9N s2yTf5gP6WypknKq/kW7Yj1S1A5cZhioiqe5pSkolrz2/HkNtKPASfD82zP8SZaMe3U2 L/8g== X-Gm-Message-State: AOAM533wNBhXVAwk0/Fg4T/jSBhxhVcahdG3BZ0NPWW5qrETyqoyVS5J +sHodxEvy41mBXg3zBBHqlOf488h5hR5XTWViVu7cA== X-Received: by 2002:a37:c58:: with SMTP id 85mr18364587qkm.276.1623713777603; Mon, 14 Jun 2021 16:36:17 -0700 (PDT) MIME-Version: 1.0 References: <20210422120459.447350175@infradead.org> <20210422123309.039845339@infradead.org> In-Reply-To: <20210422123309.039845339@infradead.org> From: Josh Don Date: Mon, 14 Jun 2021 16:36:06 -0700 Message-ID: Subject: Re: [PATCH 18/19] sched: prctl() core-scheduling interface To: Peter Zijlstra Cc: Joel Fernandes , "Hyser,Chris" , Ingo Molnar , Vincent Guittot , Valentin Schneider , Mel Gorman , linux-kernel , Thomas Gleixner , Aubrey Li , Xiangling Kong , Benjamin Segall Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 22, 2021 at 5:36 AM Peter Zijlstra wrote: > > From: Chris Hyser > > This patch provides support for setting and copying core scheduling > 'task cookies' between threads (PID), processes (TGID), and process > groups (PGID). [snip] Internally, we have lots of trusted processes that don't have a security need for coresched cookies. However, these processes could still decide to create cookies for themselves, which will degrade machine capacity and performance for other jobs on the machine. Any thoughts on whether it would be desirable to have the ability to restrict use of SCHED_CORE_CREATE? Perhaps a new SCHED_CORE capability would be appropriate? - Josh