Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp416475pxb; Thu, 14 Jan 2021 08:58:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKIWUsVL2LsFXDsDOYrz/eZdGdPcGyUvP5nBALdGw7aCq7H4bx2gIdgdERuJIIJSax5a6Y X-Received: by 2002:a17:906:b2da:: with SMTP id cf26mr6021050ejb.176.1610643522165; Thu, 14 Jan 2021 08:58:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610643522; cv=none; d=google.com; s=arc-20160816; b=Q14FnRNNcyfv/NHSO//JDC0mVRJIiFtINE1kMHxe3byLkEIPiwDHdk7+8L7KQ/Q6DM e4avEn0HdlGsC5iVYZHP7Q7S733ortqAdbyKgU8sHF2ewiunLKZRTMvqU97RPSitXgBe /TZnjiN8DGpHDWdnN72AlA8wpIEQsmRIajf4TdkwkBOaBM7vDWoAYC/88vwsupntWQU4 l68VDjzkqEkOWGbzaauKOWbOKeheDCGQ7Pr0VZTPROB8obVfxu4Z8NKw7S9RkwjQ5WmS WWbBXkgNfL1Yw/DocHtFBTdl73w0NSqfS6yTauDMHcSsciVgjEmNwj+ySH7Kcm7NfMqV oaxw== 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=DRTWHPlrQiiVrNwf4oflLPIJjJTF+5vr64DIMf+QTzg=; b=oHjnGjCvTTEnTc30BNlZF+KRJmBolN7Re3z0EgvI92DE1iecR2OEKvp34Q34tXWwyu iRBebgmJPTfny4M/l6FGACwi+hKkpmTxMgu+nNZXjKmbXqDPADvW+3OJgDlKz9CFvGTC xQEfNFetqf1Hg1M4PETSXUzCBzXrGR4yLq+62zZLOxW9Bvza0zyvOwy38j831EAQhy20 8RTx0r+dlBknLreVYMtVyFBeI8ghL8KauN/nAw1HnVTZkGWCtrwoRTqKvdoZ91mBIV1R iL3OaIZ444PGkCeRhoie0THx/szVIHh1yMLhwwfYCFr+k/PFl+E9NcXSjpCD62JGcHTG gKtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=KHpcDRFA; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h24si1595348ejt.167.2021.01.14.08.58.18; Thu, 14 Jan 2021 08:58:42 -0800 (PST) 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=@suse.com header.s=susede1 header.b=KHpcDRFA; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727285AbhANQzk (ORCPT + 99 others); Thu, 14 Jan 2021 11:55:40 -0500 Received: from mx2.suse.de ([195.135.220.15]:60340 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726473AbhANQzj (ORCPT ); Thu, 14 Jan 2021 11:55:39 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1610643293; 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=DRTWHPlrQiiVrNwf4oflLPIJjJTF+5vr64DIMf+QTzg=; b=KHpcDRFA4ImJgm0jszlZ5QuF1YjRRcDklHFKYmKcTHOppIbR9JtOCoQZRCer8cQKBcuzIq EM6SveYBqUYvVaun91OGPhpL0Ko4u+/DF0/O9mkaHXT/wC/M0ICIXU71iYnKojIT7f0dfx VwFQ5pJzaVHr2iO7YWrMt7Y2IQ/M3EE= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id E7DA2AD18; Thu, 14 Jan 2021 16:54:52 +0000 (UTC) Date: Thu, 14 Jan 2021 17:54:50 +0100 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: chenzhou Cc: tj@kernel.org, lizefan.x@bytedance.com, hannes@cmpxchg.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] cgroup-v1: add disabled controller check in cgroup1_parse_param() Message-ID: References: <20201218061755.121205-1-chenzhou10@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="G5CWgaLxblIFSK1F" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --G5CWgaLxblIFSK1F Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 14, 2021 at 10:08:19PM +0800, chenzhou wrote: > In this case, at the beginning of function check_cgroupfs_options(), the mask > ctx->subsys_mask will be 0. And if we mount without 'none' and 'name=' options, > then in check_cgroupfs_options(), the flag ctx->all_ss will be set, that is, select all the subsystems. But even then, the line https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/kernel/cgroup/cgroup-v1.c?h=v5.11-rc3#n1012 would select only 'enabled' controllers, wouldn't it? It's possible I missed something but if this means that cgroup_no_v1= doesn't hold to its expectations, I'd suggest adding proper Fixes: tag to the patch. Thanks, Michal --G5CWgaLxblIFSK1F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEEoQaUCWq8F2Id1tNia1+riC5qSgFAmAAd1QACgkQia1+riC5 qSgWoQ/+IhQQDXjrTBF5Pw5vod0YE5rO2MUWtzh4d1tLQTjzBng8E1jnWV3jAsD8 wFqLWz3JxqFUQa9A0DEKWjwmHfu0ud0A6t/eCV24Xm6JoX8vcR1dVimMzCUd2Hjk QINq+w81pOhqZX0vjGPRW8J1cf8jMjQgQ0nZmHxm11TaGuO5G3dvhVJuFAjXyvEy 568of571ti78CKzoa7zt5KK1ID2m3u3rk5WDuGGj4zlTg2QoqFOxrBprRaF/1eCu 0Fk+LKva7qmiGP87uXFt124432CQ8AAGG+fsAzcBqKuIFFxcpzyrnkP8jNRZS0xV Sb7nZ7ivB50YyMJxorpXiRT2lhh+BtFbvydWuAs1PGh7z8B6AexE4XtF52XBeybB MSpQJ/0E9LuesHjcEFXLzGwFe7Dw5N0u4pNrKo5QMh63PveCx7KxIcdBWXihuBJm pDE9d707NJ2g4M4/88Hvs9QIiBmzOU9h/x2zKVNKMM4io7o51hUEHkUEG/4nb0/d tUvH1jxlFPeQh4UoazlKnTMq3ljI1gi1mBq6ytoptxVxdu4rvhBNcrd+nuKcWKtu vWwdZ8lh9crRwEWbLtIVY0flm2GX4Nu5xq/VF1y67QA1e+34NjwMX8a2GrrS1dBK q/NvMQTk62NfRzjrh+uabF5pEcA/K7EvnKQLGasG1RYmvas3YoI= =9rm1 -----END PGP SIGNATURE----- --G5CWgaLxblIFSK1F--