From mboxrd@z Thu Jan 1 00:00:00 1970 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) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="hPTYSxJ6" 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