Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp638160imm; Fri, 17 Aug 2018 04:15:54 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzgUbs8xk7Q/lV85C1yynoazkOx5xpZSNDxxoaqsn9uVSHB/AgEGkD91XV5g7wkhZu6fqhE X-Received: by 2002:a63:5a5e:: with SMTP id k30-v6mr33048127pgm.123.1534504554685; Fri, 17 Aug 2018 04:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534504554; cv=none; d=google.com; s=arc-20160816; b=ynSxKtEk7z9IXm2xtdxKKJ4KV6y6qPajZcL3CAsQL05T4Fi8zuBtQekjJrwtMLfSxF uh9tAW1axJ8aI1i8yu6tfhgXaAbW3kI55C9uhAt44dcBFUT8Yia+EBmdlFoHdpTSxEK1 gRZWdcx03acHMTOUZYZw7Q3wIjVFsvnUFCjsNGrJMRUbJJLNsNJN1ckpNLZMCeRKM7lK 948ZnC/61tZ7GechUGKSI8EqLBwpzFiH15/81a3z+gI/vIsRg55IVFgnAUouYrsqbWYJ uEmitwGmQH1hO+6kaTWuE75OIPOxaYmMkFVX1qQoEn1hNZcrYfx64MfOAFtI40y05DF0 6knQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=SkXxwd9HYAyJPZNiN3Bq/kOGpmYmxEyLNpCmEciUIws=; b=P/e/ZmoxH6NPL8s8EElm5fwXHMFhojojCsSMyeQd2rPzVtD/pTI/lDIUNJZeqv+xcH 3HmOCRxHwFBoUL4mH6gXv7xgNaGwA+1ayAA3Yj6OtgGhO/9UmGN+cg9iN+nhE1STKAJ3 gSzymxHKA7lboJZuUejSNSbOX7WFAKaoVy7N+DiWgSdJ2mbjJ4aLkgplcFqM1ZcPNn2k TJJTXgSMCNjtKqf95WDPD9pDAd0GG9M/cW1wGcj27+gsf2/3ER84PMw6VBTa0zRQXCZl ezpIzDaJB7+2E7VvjNPNvO1Q5IMgFVxsaOJ/JgOeGWbUi08UQu6eAiL9DXSVYY6yP8X+ YHmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n34-v6si1705059pgm.28.2018.08.17.04.15.39; Fri, 17 Aug 2018 04:15:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726685AbeHQORj (ORCPT + 99 others); Fri, 17 Aug 2018 10:17:39 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:46196 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725992AbeHQORj (ORCPT ); Fri, 17 Aug 2018 10:17:39 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 072317A9; Fri, 17 Aug 2018 04:14:36 -0700 (PDT) Received: from queper01-lin (queper01-lin.emea.arm.com [10.4.13.27]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 38A693F5BD; Fri, 17 Aug 2018 04:14:33 -0700 (PDT) Date: Fri, 17 Aug 2018 12:14:31 +0100 From: Quentin Perret To: Patrick Bellasi Cc: Juri Lelli , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Tejun Heo , "Rafael J . Wysocki" , Viresh Kumar , Vincent Guittot , Paul Turner , Dietmar Eggemann , Morten Rasmussen , Todd Kjos , Joel Fernandes , Steve Muckle , Suren Baghdasaryan Subject: Re: [PATCH v3 01/14] sched/core: uclamp: extend sched_setattr to support utilization clamping Message-ID: <20180817111429.3nhqm3lrr42lzqho@queper01-lin> References: <20180806163946.28380-1-patrick.bellasi@arm.com> <20180806163946.28380-2-patrick.bellasi@arm.com> <20180807123550.GA3062@localhost.localdomain> <20180809091427.4p2c4fbxocpkjaby@darkstar> <20180809095043.GC22465@localhost.localdomain> <20180809152313.lewfhufidhxb2qrk@darkstar> <20180817103406.gmve4clcxmhwlmtc@queper01-lin> <20180817105731.GI2960@e110439-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180817105731.GI2960@e110439-lin> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 17 Aug 2018 at 11:57:31 (+0100), Patrick Bellasi wrote: > On 17-Aug 11:34, Quentin Perret wrote: > > Hi Patrick, > > > > On Thursday 09 Aug 2018 at 16:23:13 (+0100), Patrick Bellasi wrote: > > > On 09-Aug 11:50, Juri Lelli wrote: > > > > On 09/08/18 10:14, Patrick Bellasi wrote: > > > > > On 07-Aug 14:35, Juri Lelli wrote: > > > > > > On 06/08/18 17:39, Patrick Bellasi wrote: > > > > > > [...] > > > > > > > > 1) make CAP_SYS_NICE protected the clamp groups, with an optional boot > > > > > time parameter to relax this check > > > > > > > > It seems to me that this might work well with that the intended usage of > > > > the interface that you depict above. SMS only (or any privileged user) > > > > will be in control of how groups are configured, so no problem for > > > > normal users. > > > > > > Yes, well... apart normal users still getting a -ENOSPC is they are > > > requesting one of the not pre-configured clamp values. Which is why > > > the following bits can be helpful. > > > > So IIUC, normal users would still be free of choosing their clamp values > > as long as they choose one in the list of pre-allocated ones ? Is that > > correct ? > > No, with the CAP_SYS_NICE/ADMIN guard in place, as discussed above in > point 1, the syscall will just fail for normal users. Right, I just misunderstood then :-) Sorry for the noise ... Thanks, Quentin