From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5531C4338F for ; Tue, 17 Aug 2021 15:42:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A9F1C60184 for ; Tue, 17 Aug 2021 15:42:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A9F1C60184 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0lkAP1DJnhn11P1+A7IK/lBYsqrkyKfvOzBJTlFsy08=; b=0j7U1Bg9hZU23o 72CMy0jMAjH2bFjU5efn81WVe0oMZW3abr8vYGoInVU3tXeroCL5aKPJG+1IOtiIdOYasWfddsMdZ grnIlCvAzGnKp26YEkF98gsRDZ7r/VYztVFmcpcQ8LlcXOBFv/qYF51d+YleUIbTGZryg8ejUwerE spCeK67utwxYdxmcwV/DnohkMgkQUeIOdu6mdzugFaoySqr1abZRDmcUujje73qN5DpYMLTaSACjp /5ItHSuUXmPs9HGcINGQCphn/PUuCaDPrfplhJP35DGB5UzWb4IbyTMfGufPpzMz8tTQRj4XZUrqR ztatBvmUT4xwGdaXD2XA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mG1CY-002pSv-P6; Tue, 17 Aug 2021 15:40:30 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mG1CW-002pSh-Hn for linux-arm-kernel@bombadil.infradead.org; Tue, 17 Aug 2021 15:40:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=u2BzcnqSZsZ2CjWCbcjr6I/Lj+YghJDDrab9xd4gN/o=; b=CgyKkEgufJEEC8SUuIGuAVwUNw t7Jd3M61KkL72j9PTK/fpahwjz6+p89MBAvQ/JLqAlt05/023F5vG+TJX5iSSZuah6los43S5w9o+ U8gDSg7TI/CsZTfB7q/vIHw3n1Dv9qOrSwSS62NnOgfX/geJa3tXWouWs2fMEqTAVUVFFqYpu9IRq rOMtUdCn0O0wz7twL8QtfYyaVs+WowxccmOSLX9BCD06AOvjAQ9D0g6a9KV4Cvwc542CpHURBGBcz WxntkvO8eUSJqolfi29NSi/2OMBQ3FOIK9wy2d1IMC6wVtUcx8Kche72/Doy1v6GueRD21ZRYajel kdluLNHw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mG1CT-00AV02-Jn; Tue, 17 Aug 2021 15:40:25 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id ED33530019C; Tue, 17 Aug 2021 17:40:24 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id D67542C8F5E09; Tue, 17 Aug 2021 17:40:24 +0200 (CEST) Date: Tue, 17 Aug 2021 17:40:24 +0200 From: Peter Zijlstra To: Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Catalin Marinas , Marc Zyngier , Greg Kroah-Hartman , Morten Rasmussen , Qais Yousef , Suren Baghdasaryan , Quentin Perret , Tejun Heo , Johannes Weiner , Ingo Molnar , Juri Lelli , Vincent Guittot , "Rafael J. Wysocki" , Dietmar Eggemann , Daniel Bristot de Oliveira , Valentin Schneider , Mark Rutland , kernel-team@android.com Subject: Re: [PATCH v11 07/16] sched: Split the guts of sched_setaffinity() into a helper function Message-ID: References: <20210730112443.23245-1-will@kernel.org> <20210730112443.23245-8-will@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210730112443.23245-8-will@kernel.org> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jul 30, 2021 at 12:24:34PM +0100, Will Deacon wrote: > In preparation for replaying user affinity requests using a saved mask, > split sched_setaffinity() up so that the initial task lookup and > security checks are only performed when the request is coming directly > from userspace. > > Reviewed-by: Valentin Schneider > Signed-off-by: Will Deacon Should not sched_setaffinity() update user_cpus_ptr when it isn't NULL, such that the upcoming relax_compatible_cpus_allowed_ptr() preserve the full user mask? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel