From mboxrd@z Thu Jan 1 00:00:00 1970 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 28A68C28B2B for ; Thu, 18 Aug 2022 13:15:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244971AbiHRNPF (ORCPT ); Thu, 18 Aug 2022 09:15:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244924AbiHRNO6 (ORCPT ); Thu, 18 Aug 2022 09:14:58 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68E80268 for ; Thu, 18 Aug 2022 06:14:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660828495; h=from:from:reply-to:subject:subject: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=c6QQzktQOsLF5gvz1m1JMJhC3Jcc7lkjkkVix5pQvuU=; b=iC/+tL0z+UURwzbNpOz4GNVOjV8ecZbG8F/RMAD7KkmZx1H7YYSD7wqw4eDErKVMhV2YPG hxLb015HhfH6NtRy8kEZleYd1nD+/GTJ0yGDP5r91opqB8HFl9Uc6y3wpY7BsC2lVZJEsT gDGkwybLwe4NDoFfO9UOHj1xzXdkDmA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-211-4KzSz-gKPE24pj2vCPoWYw-1; Thu, 18 Aug 2022 09:14:47 -0400 X-MC-Unique: 4KzSz-gKPE24pj2vCPoWYw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4E58D1019C91; Thu, 18 Aug 2022 13:14:46 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.72]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8524D9457F; Thu, 18 Aug 2022 13:14:38 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <165970659095.2812394.6868894171102318796.stgit@warthog.procyon.org.uk> To: Paul Moore Cc: dhowells@redhat.com, Ondrej Mosnacek , Al Viro , Trond Myklebust , Anna Schumaker , Scott Mayhew , Jeff Layton , Casey Schaufler , linux-nfs , SElinux list , Linux Security Module list , Linux FS Devel , dwysocha@redhat.com, Linux kernel mailing list Subject: Re: [PATCH v3] nfs: Fix automount superblock LSM init problem, preventing sb sharing MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2026284.1660828477.1@warthog.procyon.org.uk> Date: Thu, 18 Aug 2022 14:14:37 +0100 Message-ID: <2026286.1660828477@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 Precedence: bulk List-ID: Paul Moore wrote: > I guess my question is this: for inodes inside the superblock, does > their superblock pointer point to the submount's superblock, or the > parent filesystem's superblock? They have to point to the submount superblock. Too many things would break, I think, if inode->i_sb pointed to the wrong place. As far as the VFS is concerned, apart from the way it is mounted, it's a perfectly normal superblock. David