Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp722540pxu; Wed, 2 Dec 2020 01:26:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCx5EDJWFJHxbsZcUY+La46pJvKlMDXi8S+dtuJWJqRLDHM+cdNAUUbBBZ3RMx23EKSj4Z X-Received: by 2002:a17:906:4348:: with SMTP id z8mr1454670ejm.119.1606901174957; Wed, 02 Dec 2020 01:26:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606901174; cv=none; d=google.com; s=arc-20160816; b=1EFCphc8mUoLudl4g21JZxSPvIYMoNRDlwGYI6NznYInN0cAcX1Q+/bpUSa9ioc1lx pU9eIan9v1nf9GiYA3552CIA2gaagby63cuRM6dH9v2fcipu73nyjrGKp8FXfDNZ0Puc L+3tLKFs39e3xI3NZDfhIQTYekB9PmBGI3ByjXt6OkZ+GmM7aDSz83mVOTs3wq+uOgoE 2XnpmOQONuTPSIAr0XoPNZFK1CTKCI4vyhjG6YkUaS4g7IfzqcBCZdVZlXpF9pEH6xw1 VbHzY0lPJnYuO6RN+C/4qbIlczD94qnHy687UBbyiFkC1p8fAmRCubHDDOPltxpPBu1w w9pg== 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; bh=T3hK1pnsP2ZbfLHpCowdufoytxCXf7vyfB6TAgfe1cA=; b=J8OQcaJKpetQj/jguAK7QL3OXGqzHd4c3Hhp4bbxzmNqGuKh5FUB/VEE13HbJmFgVR gBNG4SMPhIKX3vwJwbjLSD9h1RemHBYpnlBlyP0caAv4UTL7YvLz4zLERf745o8FlYqK ukbQGHGpYPdrheifvmspwT+aeKOtuAtDcERpJMhS2Alax3nneUpW7MYeelsQ6Rau7oto aXOOqAXSHmF6b4wTuaUPXu3hhjyD0rjkvGDgTWJBsA+jU0w7X4ctqJPvLBmYLhip+Z23 nnroU+ecU6dAQk044TVvg8ifKF4IWscFny0Atq/qXwvgJ3DISB5ATTBVbkOBxpGdv5NS Ndeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si714523edt.166.2020.12.02.01.25.50; Wed, 02 Dec 2020 01:26:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729171AbgLBJZW (ORCPT + 99 others); Wed, 2 Dec 2020 04:25:22 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:34609 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725967AbgLBJZV (ORCPT ); Wed, 2 Dec 2020 04:25:21 -0500 Received: from ip5f5af0a0.dynamic.kabel-deutschland.de ([95.90.240.160] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kkONH-0002G4-5E; Wed, 02 Dec 2020 09:24:35 +0000 Date: Wed, 2 Dec 2020 10:24:32 +0100 From: Christian Brauner To: Christoph Hellwig Cc: Alexander Viro , Christoph Hellwig , linux-fsdevel@vger.kernel.org, John Johansen , James Morris , Mimi Zohar , Dmitry Kasatkin , Stephen Smalley , Casey Schaufler , Arnd Bergmann , Andreas Dilger , OGAWA Hirofumi , Geoffrey Thomas , Mrunal Patel , Josh Triplett , Andy Lutomirski , Theodore Tso , Alban Crequy , Tycho Andersen , David Howells , James Bottomley , Seth Forshee , =?utf-8?B?U3TDqXBoYW5l?= Graber , Aleksa Sarai , Lennart Poettering , "Eric W. Biederman" , smbarber@chromium.org, Phil Estes , Serge Hallyn , Kees Cook , Todd Kjos , Paul Moore , Jonathan Corbet , containers@lists.linux-foundation.org, fstests@vger.kernel.org, linux-security-module@vger.kernel.org, linux-api@vger.kernel.org, linux-ext4@vger.kernel.org, linux-integrity@vger.kernel.org, selinux@vger.kernel.org Subject: Re: [PATCH v3 07/38] mount: attach mappings to mounts Message-ID: <20201202092432.xnedfqc3e4hjgecv@wittgenstein> References: <20201128213527.2669807-1-christian.brauner@ubuntu.com> <20201128213527.2669807-8-christian.brauner@ubuntu.com> <20201201105025.GF27730@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201201105025.GF27730@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Dec 01, 2020 at 11:50:25AM +0100, Christoph Hellwig wrote: > The READ_ONCE still looks suspect as it generally needs to be paired > with a WRITE_ONCE. The rest looks sane to me. I think the READ_ONCE() can be dropped from this patch. At this point in the series we don't allowing changing the vfsmount's userns. The infra to do that is only introduced as almost the last patch in the series and there we immediately use smp_load_acquire() and smp_store_release(). Thanks! Christian