Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp609137rdb; Thu, 21 Dec 2023 22:15:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqufdvf2NUdI8gLIUl/ULg/+nZOwfP6ai2ZCSbDmyKUzO1VgP7hHcqCNYPRl/W/6eCD6OM X-Received: by 2002:a17:906:5a8e:b0:a22:faec:7d2e with SMTP id l14-20020a1709065a8e00b00a22faec7d2emr421381ejq.113.1703225736584; Thu, 21 Dec 2023 22:15:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703225736; cv=none; d=google.com; s=arc-20160816; b=DaW/m4sx+VTBYL7WAyJcQ+cJZEBkUQYETt4WlRKZb+mC96JvusAwVbLD4y3Wplcgj8 kKucOXvc4qvE058w28TOI0coa+mq+DkVGjToyfzNf4sZQndRNIYy7Rwtj8+K60HBYK57 oW6OuuIau9uuZm/CzYVSAXl5Yiy4ONVq1QHI9+nL8c3ZA4PhE/caeOmo343SUOdorq1l 1o9xE2Z5CLlE8V04FxDYXday8UknVzuCcMcHqA7cLnfshrivfmslCc4E/l9NBBtIuU+2 bPx3doBOWFQ4VxmSxsjJzzCj4RvqFDeyYqGNG44Y73jkWT8TviI3JUGYx2J3lt/GZoRz Fo/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GT9Ep4KjhhclQSxN3Lb+K54feOKTu6pP12UliztXYJI=; fh=aBH3j9krtIDgYGU4S2ppPOPXmPJLGKJ79680oMIg7cc=; b=FoOdaJZlA6tRrNMSMpmhdNFiA5ioSeYd+fxDWFkJX3AigLGz/eNvKCOflkLn+evGQw BxvyOqRRzuYuQht7+yCUWCaqtBeDgMIg+0ThIr5Kx9gLsgli33lpwQ0Ebl8NG4QLv0ZO rvj/0dNkMpTClgMIAJQFTF1P6AsB3NprEaFGxFU3Fx06leShOKotot1rs98AC0XiBD4+ XpWcK45NIrpZSBszqIoJ4qZAX3D+ia3LHJPDEX6zmICSwak5/2suv5ebzNh+8pQbZjVU cndElVGX6YqHksgvT+IUdRJYY90EjygpaekbLVO/kbmj59r0KV4ppwNWzUCsF+uQvB7N NUSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hPTYSxJ6; spf=pass (google.com: domain of linux-kernel+bounces-9392-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9392-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h20-20020a17090619d400b00a233dcaf953si1512410ejd.731.2023.12.21.22.15.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 22:15:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9392-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hPTYSxJ6; spf=pass (google.com: domain of linux-kernel+bounces-9392-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9392-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5B6521F231A7 for ; Fri, 22 Dec 2023 06:15:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD50E79E4; Fri, 22 Dec 2023 06:15:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="hPTYSxJ6" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EFF45B664; Fri, 22 Dec 2023 06:15:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E43C1C433C9; Fri, 22 Dec 2023 06:15:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1703225720; bh=o34cTG3PLEzDraS+QQ0GYDod+AXopLJCVpOjWSq9VxY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hPTYSxJ6q/QYHzctslnCdQKQejYkiQIWnjTqwwogPxm+3mHkI6lj0PAJ1aLZ0gQZX tLCs2apfhBf5tjvzzaY0hBF/zBXGfBegVBVAHfKnUKly4LZG+IXAzMvMyXpNWqlt+E OTX4SkZiGE/i2GWPAAzsw/9esVagC+CDceyW1wOM= Date: Fri, 22 Dec 2023 07:15:17 +0100 From: Greg Kroah-Hartman To: Tejun Heo Cc: Max Kellermann , Zefan Li , Johannes Weiner , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH v2 1/2] kernel/cgroup: use kernfs_create_dir_ns() Message-ID: <2023122207-faceless-despair-af43@gregkh> References: <20231208093310.297233-1-max.kellermann@ionos.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Dec 22, 2023 at 06:29:43AM +0900, Tejun Heo wrote: > On Fri, Dec 08, 2023 at 10:33:09AM +0100, Max Kellermann wrote: > > By passing the fsugid to kernfs_create_dir_ns(), we don't need > > cgroup_kn_set_ugid() any longer. That function was added for exactly > > this purpose by commit 49957f8e2a43 ("cgroup: newly created dirs and > > files should be owned by the creator"). > > > > Eliminating this piece of duplicate code means we benefit from future > > improvements to kernfs_create_dir_ns(); for example, both are lacking > > S_ISGID support currently, which my next patch will add to > > kernfs_create_dir_ns(). It cannot (easily) be added to > > cgroup_kn_set_ugid() because we can't dereference struct kernfs_iattrs > > from there. > > > > Signed-off-by: Max Kellermann > > Acked-by: Tejun Heo > > Applied to cgroup/for-6.8. Greg, can you please take the second patch? Both are already in my tree, thanks. greg k-h