Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22735144rwd; Fri, 30 Jun 2023 11:51:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlGaUvx6L41LC4s4g99hMHV5v30WajR21ad9hGP7Zq2HrU35lzs6jhl6komJx/Kw29Yr/0Rf X-Received: by 2002:a17:90a:ab0d:b0:262:b22b:d2e8 with SMTP id m13-20020a17090aab0d00b00262b22bd2e8mr3459540pjq.17.1688151069422; Fri, 30 Jun 2023 11:51:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688151069; cv=none; d=google.com; s=arc-20160816; b=E48K7XkF2eZkwPlzMm5wAncpPcKlqnGA7I0CYciIDDKuH3R7yFFQKIZKHeB9UYy8oe vdsNj4fRRpHFISAYFYSVgpocwi/F0mWXQVC6Xyv3XKYqzWb7syJEWprfqLT86qtmKKfY pP4JON4csOpwIpj2LQysoqkQiYaMSFFN8hqKsZXflh+g5trn1ta/QbLEvlY1Kma3NgcL kRxX3pochgsJrREJJtqSCwe+owVzfo3UACk4OUc5i574bSbsCKBIZWl0cO8NXh6yS6+k hOafO+fTUx59Br1RKiRElfH6VPImM8U0cOY0UxlhSqJzor0J6VlzIl0j3pMMgl9Qoh1q LNVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hzP6++sspeiMJGly5/GKvnU83DNQrkePv6Ujpx4JBFo=; fh=C5VWtQqIQnZ4LVcFbwLDW+p3RrhzvL6MQp+X90VaD2M=; b=RNcqAxZAaEtcHfw3qYAxY3zBFsDIP4884f8c1v7AkK5XN5ApT++NLy51h3lbBlzmqr waTohBrmPRRNgSEge/3XVnIf72APpUKOAkGRuIjIh8AKZnFoKA8oij4KOEyQa/2Rq3rf ybi+nRVtOwDqLrUK6tybPHytai7Dmuh6orWHl2Y5+BZq21ePni1XLuyWmB7e8ETE9tIa A7Ea/+37cUX/tq2mpymoX/VBOLY5uZujKhcfUGtcKFNtHt9TelgtV7TEEcldAu3CC4hn q/p2bLcy58KgosP5sa2fa7f7p0tb17yJDkr7e4fZbn10unlJ9HnlkFmuwEi7FFuLttcu FDlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=WzwMOUZ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020a17090a674500b0026121515137si5529299pjm.45.2023.06.30.11.50.56; Fri, 30 Jun 2023 11:51:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=WzwMOUZ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233146AbjF3SnB (ORCPT + 99 others); Fri, 30 Jun 2023 14:43:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233121AbjF3Sm6 (ORCPT ); Fri, 30 Jun 2023 14:42:58 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C0FD3C00; Fri, 30 Jun 2023 11:42:54 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C601D2185A; Fri, 30 Jun 2023 18:42:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1688150572; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hzP6++sspeiMJGly5/GKvnU83DNQrkePv6Ujpx4JBFo=; b=WzwMOUZ7URL2pshBLAbrR5Eb1snRRrtSTCfPeViixI6CoyWR3brJj+Opy8GY3af3RexoqS QBRbdHfDEjAv47pVfxR/ZLVfOcteQydj6yXqtbF8EHg4iVioohn/g7MPxHxp/GqDb9Bwz/ 4ZK6Zr+Q+n15blaSHPLRsoHSPyG0mY4= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 98B59138F8; Fri, 30 Jun 2023 18:42:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Vw50JCwin2SUbgAAMHmgww (envelope-from ); Fri, 30 Jun 2023 18:42:52 +0000 Date: Fri, 30 Jun 2023 20:42:51 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Waiman Long Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-kselftest@vger.kernel.org, Zefan Li , Tejun Heo , Johannes Weiner , Shuah Khan Subject: Re: [PATCH 1/3] cpuset: Allow setscheduler regardless of manipulated task Message-ID: References: <20230629091146.28801-1-mkoutny@suse.com> <20230629091146.28801-2-mkoutny@suse.com> <15c607d9-c1fa-ca11-d675-8f2b3a6fd15b@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="v3oci5sln533st5v" Content-Disposition: inline In-Reply-To: <15c607d9-c1fa-ca11-d675-8f2b3a6fd15b@redhat.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --v3oci5sln533st5v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jun 29, 2023 at 08:11:33AM -0400, Waiman Long wrote: > Another fact about cpuset controller enabling is that both cpus_allowed and > mems_allowed are empty at that point. You may also add these checks as a > preconditions for disabling the security_task_setscheduler check. I considered relying on that, however, there is more generic case when migrating between two sibling that should be allowed in v2 too. See the added test_cpuset_perms_object(). (Admittedly, it doesn't stress the case when the two siblings had different CPUs but it could.) Anyway, let's move on to v2 (where I addressed remaining comments). Thanks, Michal --v3oci5sln533st5v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQpEWyjXuwGT2dDBqAGvrMr/1gcjgUCZJ8iKAAKCRAGvrMr/1gc jsKlAP9Aq4WN+NlTiUnIUf8PeXwyJiCKLc3wgk3m+bILYfDpZgD7B4/zkWylYWB9 ySZ09DxxEk78SmXA9ZCPzwHdr/SkQAU= =b3pu -----END PGP SIGNATURE----- --v3oci5sln533st5v--