Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3128343pxb; Tue, 19 Jan 2021 14:43:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJye/CKobIPp9nKhqIoATjydNf7391EZ+RqJQm7kgH7tidxzqAkneC8dxaNfSD5zIFBvfALp X-Received: by 2002:aa7:ce87:: with SMTP id y7mr5160726edv.211.1611096227378; Tue, 19 Jan 2021 14:43:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611096227; cv=none; d=google.com; s=arc-20160816; b=y1dcYAw3mqOafgCO2khugHoNgJeTIjYjXbclgYo0B0XVsolRIKt5SgIWTOJHht9IVK +dJehR2c6JTYwWKYyuyqb2GfauQgIqiQPIVupe2ny1pL0jseVnpd0C9fxtFypjfjsfgr MhTF9ERAd7j4HZU6MYg+IvInfSx6eYyBx58DlLjzfkHwDBrEXxP6Lkc9PHSkEzfpLRyL 6trBfqbMEFdBw6y23ju1yWgGDiW1rl9xWNwJMKD4Eap5QmfFQkfKvAwXqaS/XeciwOPj GR2GoqY+AdSEa+8h9SOW2OTaHxlXNGIAqAhNapXyXpYDUGou36K0zFC4AfqCEQxo+m7x /9CQ== 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:dkim-signature; bh=keYrji6kb84sTzPmJ6JITin40IipfMU9uudHzRNU/z4=; b=BVgSJVdkEFhVLMfn7sRPZ88Lsplx1ak98AHIFHo/pUrijVXrZuqxYQUWnFId6Xe7/i Bhqjd/X18i+YoqQWzGpBbxbDIeOSaBPvfhyt7J67IntbKk+6wI91WVdH1XdOEZcqYQVb UJvQTLyKGXkgQH8y43lnDbSVCIjpRFbYq0LfJdvXVtQvgskabRvQbOkubjee6nMONNS+ RWJGx/ewR/yPxJsalyMouPD4W8vlQ7oLmjzN1Jy0g7RdB0D3U5g7peuVakgU02iEV7Fi vDyEqT3tVXhasSh2VP5e2HNLduEMoHi8yunDrc0emyPuhrR7/7JxDGt9z0pC+s7c9jTc 8SZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=e0iNpPCg; 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 q5si59009ejj.266.2021.01.19.14.43.24; Tue, 19 Jan 2021 14:43:47 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=e0iNpPCg; 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 S2403823AbhASObn (ORCPT + 99 others); Tue, 19 Jan 2021 09:31:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731544AbhASJl7 (ORCPT ); Tue, 19 Jan 2021 04:41:59 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 215FFC061573; Tue, 19 Jan 2021 01:41:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=keYrji6kb84sTzPmJ6JITin40IipfMU9uudHzRNU/z4=; b=e0iNpPCgQhb/Z0gYXXn4GxYpqm Ui+2HSgzoFxhYn7qK1sPmYZpZ1Uek0xpzDcc6Q5XH710j5yJ8IdtDfFvkZ84AdOgVkIlASUG5PSeL wLHWLWhTXp0AwO/nDTuvTlyA82n46yIxh9iJYu89RvSWBwul8eXyujl2xfUnueVaITuIFhrJGGhss Ven4MQDXzp01DjxYGAA7B2h01TmBDRJTdFBa1z0KQBi0JrGPrmv+MWzMrkps0ypfRClpq9XwbS5Mr pb/Y6BAvV9KE6HXPceJhGLAau3dKhqSXlV7M5a0Z8/nO8bUqeKD6+8SM8u/FM903EKyaJkTZz9k5R iUFwiWcw==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1l1nVE-00E854-TT; Tue, 19 Jan 2021 09:40:49 +0000 Date: Tue, 19 Jan 2021 09:40:44 +0000 From: Christoph Hellwig To: Christian Brauner 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 , St??phane Graber , Linus Torvalds , 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, linux-security-module@vger.kernel.org, linux-api@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-integrity@vger.kernel.org, selinux@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH v5 25/42] utimes: handle idmapped mounts Message-ID: <20210119094044.GJ3364550@infradead.org> References: <20210112220124.837960-1-christian.brauner@ubuntu.com> <20210112220124.837960-26-christian.brauner@ubuntu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210112220124.837960-26-christian.brauner@ubuntu.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Jan 12, 2021 at 11:01:07PM +0100, Christian Brauner wrote: > Enable the vfs_utimes() helper to handle idmapped mounts by passing down > the mount's user namespace. If the initial user namespace is passed > nothing changes so non-idmapped mounts will see identical behavior as > before. No real need for the local variable here. Same applies to a bunch of other patches as well. Otherwise looks good: Reviewed-by: Christoph Hellwig