Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp35249imm; Thu, 12 Jul 2018 13:37:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf/+uRrzprlhCYSlj1d1TCjm69m2a/ghy+WH8Yr8gqM2lrwEq9KLHCF7NpHaZgb0kexVp0Z X-Received: by 2002:a17:902:8607:: with SMTP id f7-v6mr3589174plo.138.1531427856261; Thu, 12 Jul 2018 13:37:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531427856; cv=none; d=google.com; s=arc-20160816; b=smNPMV0UfPkhiQAT2zK06zARyIDkl74iAQFQZ10ApDowbg1k0UZB0Hq3I60Nq6iAC2 O+i3Lnkxls7mLTKV0ekUqh+t+ofDLQENUVcVsW1Xz7QfT34/6/xaMt37fdRq3TX2dtli nywnkhYJC5i8GjxzTJ8pedt0IrV31+/pgOgCYZM85Kv0iTiQy/QEm/8wgzY9WRXaQlKA TQD6rJhuxFjVKo/ERdj1ag18NetuBycnqkQcgyblymbIZkI+6Sg1HFqLwZKcTi3RT6or V48fPDT4JVTKVcPZ0HtKmf6HfbXj4ad38PjA2TMO+zjAh6EXEfNmvzXC2r/5Vsk9iuTy UA4Q== 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=6cdcvVt1oSJZhx07g+hA0IEuiW82yJMU4jnkJZzlRLs=; b=loceNGEyFkl6l86IBirO2JORlQ6z8CQG4NJYF57PyVXZHoMekHoGmHo0oM/DHEHQhK B1Ld921Xm1vpjC3Euq3PMdQL2Ef0q7cxH/xxlCL77H5Ic8sOeXlxtl0FLzf6LrR2VGgn /BH+xJ2z/SmJCVw2zZ/57n3ZOSZA7L9laAzWSDqCk2vt6WYxbBPMGpXixnKLPtlHdvce X/q3O6TdDQNEVveL5VDAfv6+GHS7STCcSqIvIwDMwk+HdLFLh3kp+0WJjQBSg0KGsAzA Z3PQeqPqgq3wTMmgajZ5XdRYp6i8Y3xuQDKAd0pzTYRaKZnEEOZDV2Ww8dPBDht55QG4 8OEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=hLsObV3y; 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 144-v6si22066535pge.406.2018.07.12.13.37.21; Thu, 12 Jul 2018 13:37:36 -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=hLsObV3y; 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 S1727509AbeGLUrr (ORCPT + 99 others); Thu, 12 Jul 2018 16:47:47 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:38964 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726457AbeGLUrr (ORCPT ); Thu, 12 Jul 2018 16:47:47 -0400 Received: by mail-it0-f65.google.com with SMTP id 198-v6so370526ite.4; Thu, 12 Jul 2018 13:36:34 -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=6cdcvVt1oSJZhx07g+hA0IEuiW82yJMU4jnkJZzlRLs=; b=hLsObV3yAkgT46naBPFPW51StHVLr9qIlub+G2Lg1drUPuLp/O5SFqZr9j6Imi0YeH hfBAvkWyfoMf8kVAr8GwSIL4J4K6MFYKA5Qr/DmdZL1RBtJ+kdN6tJK/YUcLFyBaFvMY B6ozCZs9EQu3kp/s5578JGWs8TxjCFDbTavUw= 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=6cdcvVt1oSJZhx07g+hA0IEuiW82yJMU4jnkJZzlRLs=; b=qXo+ndEftRG2Fcn+uFEJAx70Dw7kUQWsxAnhhwdijuyOHmMyhA0xFAwNWFn2W3bKjP 5Acqq1Wt3bcS1zsrtYquoPaCs55RB3UWNaTYV0mx4KrkIG0UIpAkWQSGTZj8PCwvBEaY EE1FbevlGx3xk4T7MgqSOLV9OuTvIiWfZLOhbLOaPwjCgz+GEUap9r9N/6EvEsnVzMjx Ks48B5k1rqMW1J+Ng09webSUIpls4Bq94XScESbIDqYhBrlmuX/c76ndd3YQkVxkiwCv 6CS/eiBsgtUE+LvDgbhkGLuEMU7MC9rCzQUvC0qG8xtel1pElnGLw+/ZEio0MDXrVswS v3eA== X-Gm-Message-State: AOUpUlHWU/2Py1/dk+zbViSVarXiaAvEQ8t/reZ6WRvuOPTMkbuXJ3ZX JpkL6J22mbyBOI1ZVdRWdvqgFIsWykhdG8vcDWg= X-Received: by 2002:a02:1bdc:: with SMTP id 89-v6mr2877489jas.72.1531427794245; Thu, 12 Jul 2018 13:36:34 -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> <16699.1531426991@warthog.procyon.org.uk> In-Reply-To: From: Linus Torvalds Date: Thu, 12 Jul 2018 13:36:22 -0700 Message-ID: Subject: Re: [PATCH 24/32] vfs: syscall: Add fsopen() to prepare for superblock creation [ver #9] To: David Howells Cc: Andrew Lutomirski , Al Viro , 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 1:34 PM Linus Torvalds wrote: > > This is the whole "write() is only for data". If you ever have > credentials mattering at write time, you're doing something wrong. > > Really really. > > Don't do it. .. and I'd like to repeat: we *have* done things wrong. But that's simply not an excuse. We've done it wrong in SCSI, we've done it wrong in various /proc files, we've done it wrong in many places. But let's not do it wrong AGAIN. Linus