Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1176652ybh; Sun, 19 Jul 2020 10:55:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6w1B9t5SeVelWNPOPgNA0ZS6XBYUVYc2ITwlduVBO6dCtZr+XDg+T6mPxm+stjDyV22tJ X-Received: by 2002:aa7:c305:: with SMTP id l5mr18678584edq.163.1595181353346; Sun, 19 Jul 2020 10:55:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595181353; cv=none; d=google.com; s=arc-20160816; b=bA9Af8YeESnz2X8rCNEI5G1uc0k+OrnIhITOpRdyzn5J9WZ6Wx/LeC+jsefqVobeDn JpNkAbxA/hrXUt0jHmSVDUJUMcJZX43cdI5QcvjM68+Q11WFfTp8tH/sBq6uod1EQiSw oZkfpgjyK9G7aaFhJptSTaUKHgx9wnyR5D9zT0RaBGnATEzzp+8hRejce6xet+RH00Iq qeXPViP4VgJXMRX9Yl6HsbY056LWKXHbMz1KgkTQed7Lee+TB0bNrQ9xeWn6zif7lJom oVJYbT2J5nyYHYa4T+u8uJg4Sa2WQGsNn6IcqD5+bHz/HjfkmXIlyfvRkLz8hIgZgAEA IAAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=3iLN7YP2sr157pSakyMKpIpetrx01YN0MHI0ZWBiO/E=; b=KBc1xX3glJjFZbyD2W29V6Nx7C5TxFc79cFGNiaTUQ2Ab3y+lQtJ1+Q5SstDVT3QKq rL7MMVb+EeS1QV9Dv6jX4EpCwkIcK/LCHeVkkQe4QJk/hmYRlIOGZgxPMDSPKtAzt0z3 Kd178Yzzj0YZbGnti88AW7yPQsx42F5d/MRjj//KT9MLgN8XIPLg7wjtCcqTMOCN0B71 tz5GdsZbeiSexvrSkmAe2IRpHpIi8pAYsrj1a8DsaJgSDCTNbYW52h1GSuYltlO2tyHu o+t9+krb0tNrdG1oaHzEXnGLeITCJ1fgkZmVMfUlWoqT4iuhVcCzmjJhYhHgrB6VdV6I zWpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 n26si9329635ejz.133.2020.07.19.10.55.28; Sun, 19 Jul 2020 10:55:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726093AbgGSRzN (ORCPT + 99 others); Sun, 19 Jul 2020 13:55:13 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:38660 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbgGSRzN (ORCPT ); Sun, 19 Jul 2020 13:55:13 -0400 Received: from ip5f5af08c.dynamic.kabel-deutschland.de ([95.90.240.140] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jxDWl-0001P4-0X; Sun, 19 Jul 2020 17:55:07 +0000 Date: Sun, 19 Jul 2020 19:55:06 +0200 From: Christian Brauner To: Al Viro Cc: David Howells , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Michael Kerrisk Subject: Re: [PATCH 0/4] fs: add mount_setattr() Message-ID: <20200719175506.fwxsb6r6pfrdhvxb@wittgenstein> References: <20200714161415.3886463-1-christian.brauner@ubuntu.com> <20200719171054.GK2786714@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200719171054.GK2786714@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 19, 2020 at 06:10:54PM +0100, Al Viro wrote: > On Tue, Jul 14, 2020 at 06:14:11PM +0200, Christian Brauner wrote: > > > mount_setattr() can be expected to grow over time and is designed with > > extensibility in mind. It follows the extensible syscall pattern we have > > used with other syscalls such as openat2(), clone3(), > > sched_{set,get}attr(), and others. > > I.e. it's a likely crap insertion vector; any patches around that thing > will require the same level of review as addition of a brand new syscall. Which is just how we should and hopefully treat any meaningful extension, yes. Otherwise let's just never add a flag argument to any syscall and only have dup()- and accept()-like syscalls. > And they will be harder to spot - consider the likely subjects for such > patches and compare to open addition of a new syscall... In the new revision I have dropped the atime argument because David already plumbed setting atime into fsmount() via flags and making userspace jump through more hoops by adding more constants seems pointless. So the additional arguments can be moved up because we're below the 6 syscall args limit. Though I really want to stress that while I see the worry it is less a technial argument but one for our review process where we should treat extensions to syscalls as strict as syscall additions. Which yes, very much so. Thanks! Christian