Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC7B8CCA47F for ; Tue, 7 Jun 2022 10:42:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235227AbiFGKmO (ORCPT ); Tue, 7 Jun 2022 06:42:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241280AbiFGKmN (ORCPT ); Tue, 7 Jun 2022 06:42:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99F48C64; Tue, 7 Jun 2022 03:42:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 21772B81EEE; Tue, 7 Jun 2022 10:42:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0EADC385A5; Tue, 7 Jun 2022 10:42:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654598528; bh=4725KDrGpJOk1ZEF6lL67wXtvIpqznZRUIXV0TVSfK0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wkxwy/3yYm9C+WSKRyN2dQEt5+0zMvxdp6LlzTA3aEzvWCToZ9oNg8IA41uBIO1Rv JpVt+F5jOEjVagupgf1FMwpSC3POZVlUdEdUesdkHoIgWXfTzIyQpQpJUBjk85TgMA J5+H7sUYNv0k3weM8T7LNm+vdF/xB6LzowvfPhKo= Date: Tue, 7 Jun 2022 12:42:05 +0200 From: Greg KH To: Christian Brauner Cc: Amir Goldstein , Miklos Szeredi , Giuseppe Scrivano , Christoph Hellwig , linux-fsdevel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 5.15.y 2/2] exportfs: support idmapped mounts Message-ID: References: <20220607100840.1686673-1-brauner@kernel.org> <20220607100840.1686673-2-brauner@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220607100840.1686673-2-brauner@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Tue, Jun 07, 2022 at 12:08:39PM +0200, Christian Brauner wrote: > Make the two locations where exportfs helpers check permission to lookup > a given inode idmapped mount aware by switching it to the lookup_one() > helper. This is a bugfix for the open_by_handle_at() system call which > doesn't take idmapped mounts into account currently. It's not tied to a > specific commit so we'll just Cc stable. > > In addition this is required to support idmapped base layers in overlay. > The overlay filesystem uses exportfs to encode and decode file handles > for its index=on mount option and when nfs_export=on. > > Cc: > Cc: > Tested-by: Giuseppe Scrivano > Reviewed-by: Amir Goldstein > Reviewed-by: Christoph Hellwig > Signed-off-by: Christian Brauner (Microsoft) > Signed-off-by: Miklos Szeredi > Signed-off-by: Christian Brauner (Microsoft) > --- > Hey Greg, > > This was missing a preliminary commit. > My build machines are currently down so I couldn't do a test build but > this should build cleanly. Looks like it applies cleanly, let me apply it and run it through my build systems... thanks, greg k-h