Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1005010ybg; Wed, 29 Jul 2020 03:25:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyutGpvuMLb08PgumpMnzNq18Wb9Wh+QOooSXqDojrYj4G/esaBm7BB1lvC1rUdsDfXc54l X-Received: by 2002:a17:906:b150:: with SMTP id bt16mr21575221ejb.89.1596018359766; Wed, 29 Jul 2020 03:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596018359; cv=none; d=google.com; s=arc-20160816; b=AXJs5hRjRpiimadjgkxMkRH2RDVhED6iS89ZAa5pfgGnFNCQcxMcT0K1BYZlyco92i jN0jK2q4rQnK4G7zPloVy1RDDhx+DJbCf/WheCkIjVzm6MJKRnpyAjx5F100byaWT+Rl 9+0yhfl842pWtrTdTPef96liZKsj0I2iE11m9Vgn80hV1sa3/JqmDIxQ2m1VAqQr5sVT zslXhGWNO7oNPmXv6Vg+8/PZxyEP8CQImYLT4SaWeRNkY4teGGS8ktgb826I5gzdOxjg pywNrdwQrc1cqJyPFS4CmZWAUFZflk30wYB+fks3RzCG1ievjDi5iiW/LTISjeta130d biLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=yx64imqgeuy1CGUb2XTKwFwimzpHWVMP0mei3A3K6wI=; b=pUrGvV3lJGOWdPBhJRvxna26D6O6IsB8vG/tnKyyY392Rar6Pcw4ZUGUDrTZxqVmmv fa+oHNvvZ5oF5M0ZJPw8yPDLqV4/30j5T34eLDE4jrlLu+a0XobVYvjl8wKXqtGHpNv2 OMxzZOatm7Smnvo0uHy+LdQRXqd93w8TrnOXDkqZU8D2upeR488lsPc/kopBnVGLHfeM 1NN7b+Wy1NSKELmPXVYJrH/EJ5pFqlNjDxbRq6oMkGFPtZX0+eah2BNaJKDuKIk1x6At sBYhrjHy3elVCDWqR/yUU1wnyGkdAlJ3eN15zF5eUbiytnlyrtEdjRr9YBXmYg/Y9qmL g6jw== 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 dn22si1107765edb.477.2020.07.29.03.25.36; Wed, 29 Jul 2020 03:25:59 -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 S1726588AbgG2KXb (ORCPT + 99 others); Wed, 29 Jul 2020 06:23:31 -0400 Received: from foss.arm.com ([217.140.110.172]:49190 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbgG2KXb (ORCPT ); Wed, 29 Jul 2020 06:23:31 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9253530E; Wed, 29 Jul 2020 03:23:30 -0700 (PDT) Received: from [192.168.178.2] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 28B623F718; Wed, 29 Jul 2020 03:23:28 -0700 (PDT) Subject: Re: [tip:sched/fifo 44/45] ERROR: modpost: "sched_setscheduler" undefined! To: Qais Yousef , peterz@infradead.org Cc: Steven Rostedt , kernel test robot , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, x86@kernel.org, Ingo Molnar , sfr@canb.auug.org.au References: <202006192249.AYnVBGCH%lkp@intel.com> <20200709124505.GT597537@hirez.programming.kicks-ass.net> <20200709115818.36a956a4@oasis.local.home> <20200720214918.GM5523@worktop.programming.kicks-ass.net> <20200720181943.7d8efc65@oasis.local.home> <20200721083643.GG119549@hirez.programming.kicks-ass.net> <20200721101357.xoa6x4xtzkqoltfk@e107158-lin> From: Dietmar Eggemann Message-ID: <4a0da149-5051-8204-6f34-da4d6e42a78a@arm.com> Date: Wed, 29 Jul 2020 12:23:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200721101357.xoa6x4xtzkqoltfk@e107158-lin> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/07/2020 12:13, Qais Yousef wrote: > On 07/21/20 10:36, peterz@infradead.org wrote: >> On Mon, Jul 20, 2020 at 06:19:43PM -0400, Steven Rostedt wrote: >>> On Mon, 20 Jul 2020 23:49:18 +0200 >>> Peter Zijlstra wrote: >>> >>>> Steve, would this work for you, or would you prefer renaming the >>>> parameters as well? >>>> >>> >>> Yeah, that's fine. You don't have any sched_fifo_high() ? >> >> Thanks! and no. >> >> I'll go write a Changelog and add it to tip/sched/fifo, so that >> hopefully, sfr can stop complaining about this build fail ;-) >> >> I've even argued we should rename fifo_low() to something else, but >> failed to come up with a sensible name. The intended case is for when >> you want something above normal but don't particularly care about RT at >> all. >> >> The thing is, once you start adding priorities, even low,med,high, we're >> back to where we were. And the whole argument is that the kernel cannot >> set priorities in any sensible fashion. > > Agreed. I am worried about in-kernel users setting random uclamp values too. Do we really have to restrict in-kernel user? And avoiding module uclamp abuse is covered by 616d91b68cd5 ("sched: Remove sched_setscheduler*() EXPORTs"). > This series should do most of the work but there are more pieces needed on-top. > > From what I see we still need to move the sched_setscheduler() from > include/linux/sched.h to kernel/sched/sched.h. And sched_setattr() too. The > latter has a single user in kernel/trace/trace_selftest.c to create a deadline > task. I think that can be easily wrapped with a similar sched_set_dl() > function and exported instead. But DL does not have the same issue like the FIFO/RR when it comes to resource management. Not sure if we have to restrict in-kernel user. [...]