Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1872419imm; Thu, 12 Jul 2018 09:08:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeUGI8WuoFSmf2sy1ibdd9Q4PxYTtklTOAtZN+9wFVkYtRZuye0+Q62F58MjaClALNWJNvN X-Received: by 2002:a17:902:d90f:: with SMTP id c15-v6mr2741941plz.65.1531411728633; Thu, 12 Jul 2018 09:08:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531411728; cv=none; d=google.com; s=arc-20160816; b=078mUVqt1ZsQVxvw5bb1T/r7T6EtIHf6zEDoLWT5dNOUtvUbH+opWlesfjl0DuHREE Y14IcfOJw6GfJbrz9KtJTPQj+ovkoKgJ+quayZDsAkt2Cm9mqjCgbebTSz62EusZZmc4 S/9bpPhRiq91l7dGCg/D7Gu0IOW76wyFtQvymXQM+J4QOj8uzAWjq4MkXA58lvs6fGrc kLM6T7Y1oCO/dnff8/N4o4d0X5kWV5nfcpoTA41r8OySzdeKLCR7h8gJOiIzW3glJ6Cc R58EI6qCfTVE8AsIrNpy9SDXSPpCVOWWN+PNDYXlRBycTrSKxZVDajgxoN37EtonZoM2 Ki0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=VsP8gzpgcXxlTAZMKVKNU/EFbc+W1xB4jMQVVFPYgOo=; b=aqOcnYY3dTruK/dVsUOM7HLExQG2DHBIiwpTmQyuufAp5hrq2tib/mudDOQsRcy3+j qmPF0yrevJsXAN+KmcLdXVVgvs8W76biKKLkZ3NIPslIE9AZ0/UjvacXWiLPiiGKE0/t atrQzsA1WrXzqmHNLyOY2akg9qp/oXj3QbOHO/ze5/KQITnHyIoejKCXISxaNnWg6lpm xs6lSK8YBMFwALT9pbc09S2HO7qMcFKxZtnjxuaLkq67ru+ss/1zM6y7JR++C0HA3MnZ eMpbO4eg5LsG/vStGjnTKLtTLdrxQOG6AZ4RgOKHmrnPgFAGYnlWaFg/v27mMYlu9ncD tDlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=FwVlNeUs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25-v6si6267127pge.595.2018.07.12.09.08.22; Thu, 12 Jul 2018 09:08:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=FwVlNeUs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732343AbeGLQR7 (ORCPT + 99 others); Thu, 12 Jul 2018 12:17:59 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:33431 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726912AbeGLQR7 (ORCPT ); Thu, 12 Jul 2018 12:17:59 -0400 Received: by mail-io0-f194.google.com with SMTP id z20-v6so28712951iol.0; Thu, 12 Jul 2018 09:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VsP8gzpgcXxlTAZMKVKNU/EFbc+W1xB4jMQVVFPYgOo=; b=FwVlNeUsWqV1vi3rbz6CHySm94wH2kcMFiSJ3p64jBShnXkq8UScP6w59lIgsPGm0o VjsBhUdtc8z/eX9X2+AakSZmEml/r2TnCvfjKh8Wo0SBubrJ6c9ltzVxAjrfhlV2DSEP oK3T0ELoJPLiq0oZ9NkshupSoVZvpw7A8Jc1U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VsP8gzpgcXxlTAZMKVKNU/EFbc+W1xB4jMQVVFPYgOo=; b=ccN+aTiO3fQnUuQiFZMlFHRSUvLvmX/W0mKA+chgZ0cej7XokgAGTuSi4uFD48ICo8 0dkA+nPh3U/Fp+5uKDPGOkcLnariNHUuRaJLS44w9y8uRMfmoNPpXaBuPsqKHJZoevYW GeKbYnp2YWLEWIEgc4h1nCdCh6RDiFxowFNChI6BvdpLPIng4YqHTDwA4wMTVToiQzcW Sedqg5O2E07N5d7ZQjqwwND2wj8oOVVd5DDO1t2SzYwM3GzvdNkIlaPCLfgxRntq3gNM R9wN6AipoM0a/yeqFatFb/Zg8tljlPdDM6GB1SJ4sBZtMnrLN6YkbumYGcOywRBqFoan tQwQ== X-Gm-Message-State: APt69E1Ntqmo+ipF6LiwLras4y+AT34y/1b9LSo0p2gTS+1mepXGdeNv RvtocnrllgpXxmMBf8QrAgJ2PXj2lG3336NuWn0= X-Received: by 2002:a6b:1502:: with SMTP id 2-v6mr29689467iov.203.1531411667250; Thu, 12 Jul 2018 09:07:47 -0700 (PDT) MIME-Version: 1.0 References: <153126248868.14533.9751473662727327569.stgit@warthog.procyon.org.uk> <153126264966.14533.3388004240803696769.stgit@warthog.procyon.org.uk> <686E805C-81F3-43D0-A096-50C644C57EE3@amacapital.net> <22370.1531293761@warthog.procyon.org.uk> <7002.1531407244@warthog.procyon.org.uk> <20180712160030.GV30522@ZenIV.linux.org.uk> In-Reply-To: <20180712160030.GV30522@ZenIV.linux.org.uk> From: Linus Torvalds Date: Thu, 12 Jul 2018 09:07:36 -0700 Message-ID: Subject: Re: [PATCH 24/32] vfs: syscall: Add fsopen() to prepare for superblock creation [ver #9] To: Al Viro Cc: David Howells , Andrew Lutomirski , Linux API , linux-fsdevel , Linux Kernel Mailing List , Jann Horn Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 12, 2018 at 9:00 AM Al Viro wrote: > > Wait a sec - that's only a problem if your command contains pointer-chasing > et.al. No. It's a problem if anybody ever does something like "let's have a helper splice thread that uses splice to move data automatically from one buffer to another". And yes, it's something people have wanted. Seriously. I'm putting my foot down. NO COMMANDS IN WRITE DATA! We have made that mistake in the past. Having done stupid things in the past is not an excuse for doing so again. Quite the reverse. Making the same mistake and not learning from your mistakes is the sign of stupidity. So I repeat: write is for data. If you want an action, you do it with ioctl, or you do it with a system call. Linus