Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp93124ybe; Wed, 4 Sep 2019 15:47:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1Ece8dOrZjRQwlmpmGI0Oc70TUZe7L8M+JPhsojq8cJQRcMsYBZf81p/8eKKoiTKYMNap X-Received: by 2002:a17:902:aa03:: with SMTP id be3mr190359plb.84.1567637263361; Wed, 04 Sep 2019 15:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567637263; cv=none; d=google.com; s=arc-20160816; b=x1v40LfVLHyXnwCJQfSVxLOVEkZvMJnv5r6hx+toWD9TW2fyJi0M0wkQnOiVqtc52C xpB41rPgbN4CgQO+ogKSKpGE14rsgWi09DquybhekqQVXv34pD5/KgLMH37gBFYb+tl7 ScMPk76Z9T14bEJMmT8qBmAWqfkUMxfVE44jmXPZPaOteq4xBFWQtgTI/fsIQdDATIcC aAjqmNeluOgx9vcy8cu0uQRri3yTyulUx+EmJ4eEYs4RcEQERK1sQQdrpWOLepK/OR5f mE5RpK/E4V8ayk0uuP14XAFBf0NKYUmZt5lpFme26ZjLaueyQzCZwMdr0gDn+L2LX17c JUww== 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=KFDhCyHzhyiLnyceYcteUHqOXGgh38Kg6TIOg9RDlV8=; b=Zti3GI8Ly+SJkAUHNyIBT0eFAx5iJ2Vanlq2DpN4lPUgjkddnF/SnK0D4ihc/kq0Xp Z6KffR6DINPH/HfdOGAIK28k8S4nAQn+uxB87ueXHY4nZH92VeGgiWXjwB7UrJKRw/o/ ZIlrzIJ+ySu8y6WSMJBWHjA6Lzxjpd4juSjDEYCy8yRXSKqqRwF31aJ2xXmZ5sMx/Jpu lAiutzZC7aqAwLXDKXaCdxlzhRTfICHh9+Oq0vSlZ3kFDqxKqFwcAGjH3U6B2/HD5dCk iJ9XWwb87aQlI0K1PK9LcIJM6fTpSPEA0f4VOvZ+irDI2QDtTNtU9tqMtyd/jeLgDpB9 E38g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=GnnwuO2F; 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 v11si130353pfe.163.2019.09.04.15.47.26; Wed, 04 Sep 2019 15:47:43 -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=GnnwuO2F; 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 S1729907AbfIDWqe (ORCPT + 99 others); Wed, 4 Sep 2019 18:46:34 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:41412 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727156AbfIDWqd (ORCPT ); Wed, 4 Sep 2019 18:46:33 -0400 Received: by mail-lj1-f196.google.com with SMTP id a4so338134ljk.8 for ; Wed, 04 Sep 2019 15:46:32 -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=KFDhCyHzhyiLnyceYcteUHqOXGgh38Kg6TIOg9RDlV8=; b=GnnwuO2FC8JvRpMBdQIyMOw63KWp0i8RWU7BAf9vhwmdfauk+kGPRrhGsnlnlPAmBt Cx6hzCIVK4L+kzxznEGXiVTPGueSaoLKTwELcbVCO2oVI6bZuWttjzsqT9tZPNkgY/TA 7QyH0CjS5KTQcx4hIjs9o8ztIuxjlBT486QSI= 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=KFDhCyHzhyiLnyceYcteUHqOXGgh38Kg6TIOg9RDlV8=; b=EeoK4rw/UsBxpj3q50vh7kmH8jkHabTEIW/jK1liPEmo1Vl19qBR1rmZWFxg+pD7Wi FQZUZHuFdDPicsINGV0+qGvra+UdpopMS+RVr2N7TC+Fz4JVP3XOzir+AZYseVAs9gvk w/l6ep/x0Jf5O+UGJvXNt03z9vIZUHaPpX1HMQ/PBEy89vAsO4/s0ySOp3f8tKZFfgWX djV2pGtvBn8ndmQrXRMY96htnMp3D5Knu9ypUQ1T0jSTKP+Vn3uNUsCmkQKe2cYW3t2i FDNZlKeGRexaB58TFS0Mp/UqySWEkbsFO/6FlbcpXvHDRH3BMu4i5rKdfuoNX+pQbTfB gC4w== X-Gm-Message-State: APjAAAUZg9LcOLqsNvd4968rGKdGbhB2sFguh44amyTbzbphcfDuPoWS Y88zj5kKW8VLnWwVYsUTNALLD6LK9Qs= X-Received: by 2002:a2e:2953:: with SMTP id u80mr10998lje.233.1567637191650; Wed, 04 Sep 2019 15:46:31 -0700 (PDT) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com. [209.85.208.175]) by smtp.gmail.com with ESMTPSA id b205sm48517lfg.72.2019.09.04.15.46.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Sep 2019 15:46:31 -0700 (PDT) Received: by mail-lj1-f175.google.com with SMTP id x18so377772ljh.1 for ; Wed, 04 Sep 2019 15:46:31 -0700 (PDT) X-Received: by 2002:a2e:814d:: with SMTP id t13mr24885ljg.72.1567636715921; Wed, 04 Sep 2019 15:38:35 -0700 (PDT) MIME-Version: 1.0 References: <20190904201933.10736-1-cyphar@cyphar.com> <20190904201933.10736-11-cyphar@cyphar.com> <20190904214856.vnvom7h5xontvngq@yavin.dot.cyphar.com> <20592.1567636276@warthog.procyon.org.uk> In-Reply-To: <20592.1567636276@warthog.procyon.org.uk> From: Linus Torvalds Date: Wed, 4 Sep 2019 15:38:20 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v12 10/12] namei: aggressively check for nd->root escape on ".." resolution To: David Howells Cc: Aleksa Sarai , Al Viro , Jeff Layton , "J. Bruce Fields" , Arnd Bergmann , Shuah Khan , Shuah Khan , Ingo Molnar , Peter Zijlstra , Christian Brauner , Jann Horn , Kees Cook , Eric Biederman , Andy Lutomirski , Andrew Morton , Alexei Starovoitov , Tycho Andersen , David Drysdale , Chanho Min , Oleg Nesterov , Rasmus Villemoes , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Aleksa Sarai , Linux Containers , alpha , Linux API , linux-arch , Linux ARM , linux-fsdevel , linux-ia64@vger.kernel.org, Linux List Kernel Mailing , "open list:KERNEL SELFTEST FRAMEWORK" , linux-m68k , linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390 , Linux-sh list , linux-xtensa@linux-xtensa.org, sparclinux@vger.kernel.org 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 Wed, Sep 4, 2019 at 3:31 PM David Howells wrote: > > It ought to be reasonably easy to make them per-sb at least, I think. We > don't allow cross-super rename, right? Right now the sequence count handling very much depends on it being a global entity on the reader side, at least. And while the rename sequence count could (and probably should) be per-sb, the same is very much not true of the mount one. So the rename seqcount is likely easier to fix than the mount one, but neither of them are entirely trivial, afaik. Linus