Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1013516imd; Thu, 1 Nov 2018 08:58:42 -0700 (PDT) X-Google-Smtp-Source: AJdET5d0LrGSnPan7nHpLWzAMRtxnFElw5L/4qXuf+BuiQXn3gmWRvMNXndpkv76tWhtrLcuSSwW X-Received: by 2002:a62:1a92:: with SMTP id a140-v6mr8194499pfa.219.1541087922052; Thu, 01 Nov 2018 08:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541087922; cv=none; d=google.com; s=arc-20160816; b=K9UmysR6T38WiJdAeLCPcL10KQqaTwGXOHBXFsrpyshIhIxK6qNXjnTJa+XIYXmpG1 LIc2Ccy2NGCuiDcgavy4elTNWflY5Zw8CD9Dk6ObW2u8zzwJDZ/7p+sKcHrh9h+8ITk/ qYbsoUzR7f2/8J6zeyVrUfKfJRXgYT3PVlP+x2cAJqceS+cBCwf+bZD06qdLMlvqeZ9f 3xZl0e51DpYzduJVScE508hx4Zv+Xs+PiTjltxObnxOd1IGDiPA1OJBYgliWAZpbXEJE RdCXFCLPZBR46uP2QWX66pnVOVxNOGj+87a+MljSM+CZBGOuVaw/Tu0PoN3JDFKnWZNv p7+w== 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; bh=KkK2xYMLGCrG5zn6705/L8jW4iYM6Jihp0vIHYmHv6c=; b=1CzM/bZ+LuTpL2i7Q39PC9HtEtR8FXoiWVzBhZhXFFcntHIRb/PavC6lw6Jww4Bzeq EZqOJ3fgE73mckpvh6J9V6j8bucw/ntSMxWPfzhGiaQWHKK9BknDE/t4TaMBDJUr8/cH 7OfVdJ1BKk8vHoHhL2yQjuzjlEMcM0Q20qXhOaGZ3ISN0xreNHCJQY6xvlYdLE3Gu0lK +US+E6Ho4bWQDWmdXGY8Qgp/OhFsFa4VkZMzReo5WiEFcZ15eFXZPwELFZGiW3kdVRe/ RXdJYasX+6k03mRUkf9gi1AFlh/P06udU4A7k11XTPX3VpFX5kIa3+4H3snZnDAP1gaE fU/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=WaH9ILqp; 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 f15-v6si4746937pfn.85.2018.11.01.08.58.27; Thu, 01 Nov 2018 08:58:42 -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=WaH9ILqp; 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 S1729017AbeKBBBP (ORCPT + 99 others); Thu, 1 Nov 2018 21:01:15 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:42951 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728561AbeKBBBP (ORCPT ); Thu, 1 Nov 2018 21:01:15 -0400 Received: by mail-lf1-f66.google.com with SMTP id q6-v6so14534010lfh.9 for ; Thu, 01 Nov 2018 08:57:41 -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=KkK2xYMLGCrG5zn6705/L8jW4iYM6Jihp0vIHYmHv6c=; b=WaH9ILqpyaI0fahfZ4bL832OGrts5SI9iAVi38KMFQCnDut8ZdAHsa9dmw5M3KvicQ CbFxnJLgaJRSv1vXp9sgyVUXH74Hq65+3RAjzDgqEH1yByu+J5qo7bI/1gHd6jHR/uDA 8T6/+IKTPCdMXcgtGe2Tvx6HTXNiqJMicdsXs= 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=KkK2xYMLGCrG5zn6705/L8jW4iYM6Jihp0vIHYmHv6c=; b=cR3eVnSa2UdeSIfiU4ZNaFf1HL/X+eIwqbdUVAkeNc7uZCIwCTTWexBsv8LmOKjM/u ccDojdU5ITMxkFS5XTvEXAIaSQdE07vyssjsI591Jup6oUiFpiD8+V3dvspHDI7x6XbL OQSzaS/cXVtEROmP3Wjzq35X7Bl17tCh7aEcljTQvMR8kgjO7r1YpJLkEIM3b4bWfXM+ eZtbLcePIQ6BrKK0ybvibZbS/Mg/6YmVc0Bd8fAka3iEQG8FMD4rZdp5p0EYcEerIFEL gxQxUbcQUKSZNs4O7x/JKKB2nxmE6ktPLGCFXOBeMItvGeWP5NGVyXZbX0ekfcX/d7Fc BOwQ== X-Gm-Message-State: AGRZ1gKE424Xesv2JUbvAUXm7Yzne3rUtSjCW0SSrHucJjKb3KhELErZ Nnxx6/f2TtPoYqHHFrNt5n6miVMH/gwskw== X-Received: by 2002:a19:1901:: with SMTP id 1mr4197333lfz.99.1541087859840; Thu, 01 Nov 2018 08:57:39 -0700 (PDT) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com. [209.85.167.52]) by smtp.gmail.com with ESMTPSA id y10-v6sm4918636lje.30.2018.11.01.08.57.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Nov 2018 08:57:38 -0700 (PDT) Received: by mail-lf1-f52.google.com with SMTP id m18-v6so14539798lfl.11 for ; Thu, 01 Nov 2018 08:57:38 -0700 (PDT) X-Received: by 2002:a19:3fcf:: with SMTP id m198mr4641455lfa.106.1541087858030; Thu, 01 Nov 2018 08:57:38 -0700 (PDT) MIME-Version: 1.0 References: <20181031053355.GQ32577@ZenIV.linux.org.uk> In-Reply-To: From: Linus Torvalds Date: Thu, 1 Nov 2018 08:57:22 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [git pull] mount API series To: swhiteho@redhat.com Cc: Al Viro , ebiederm@redhat.com, linux-fsdevel@vger.kernel.org, Linux Kernel Mailing List 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, Nov 1, 2018 at 3:53 AM Steven Whitehouse wrote: > > When I look at the discussions I'm seeing two main issues (please > correct me if you think I'm wrong about this) which are (a) whether the > design is correct and (b) whether there are still bugs in the current > patch set. > > Which of these are you most concerned about? I'm most worried about bugs _due_ to the new design. Exactly because it splits up what used to be an atomic sequence, I worry about the intermediate states having issues (the refcounting things we've already seen, for example), but I also worry about the fact that it completely changes the model, and that that makes things like security hooks fundamentally different. The latter may not be a "bug" in the sense that it's all intentional, but it does mean that I see *one* mount-time security hook now having been replaced by *five* security hooks. And that's ignoring the alloc/dup/free ones. As far as I can tell, the patch-series simply added the hooks. It made no attempt at making sure that previous hooks had sane semantics. Do they? So now a system that has an old mount hook can be bypassed by simplky using the new model instead. I dunno. The patches are illegible in this regard (and I don't blame the fsmount ones, I blame the security subsystem that just is full of random indirection to random sub-security systems, which in turn just have hash lookups for data structures set up by other operations entirely). Eric was pointing out bugs as late as the weekend before the merge window opened. That, to me, does not say "ready for the merge window". Linus