Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp673722imm; Wed, 18 Jul 2018 08:46:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcsRH+oYadgs0sV37pgUoFASV9V4p4hW+VD9iT2g5Rfg0yFDgolWKe/9EwwzskpZlk7EoJd X-Received: by 2002:a17:902:9a8a:: with SMTP id w10-v6mr6401656plp.333.1531928819554; Wed, 18 Jul 2018 08:46:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531928819; cv=none; d=google.com; s=arc-20160816; b=uw/F+Nraeyt3Rkdk7up0vIUf5JYewvHFJQjo8jbmF3zmgeBi1zBVuSMDNG1LuY8T6X kRJ5FKFcdrHlAmWUkuALNt1KhuzcJ2pRwR+HERXxp9oQOCEFw53gjJ7BKf/E49qt4fyE qgqmlLRf9pC9q0GH9spG2H2TliTouGwiSDyjIhEczkWlGQ85WpJ9mKid9nJm4llbKUbD z6kWvz/bNJf8XmbuEfe7F/Lt1npbASJchaVK96jP+0OfQ7pVDyH7ZsNy8yECE7ni04bh MtnWARo4vsvBhRUEMFirFZYpAiU26TM3G40lZOpGqBMD5en3RrcoUbRQLTIUFObnQ3Eh 8ncA== 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 :references:in-reply-to:mime-version:arc-authentication-results; bh=GsJHLZekyrntxYLjb7/YYa4VwCpNbm3lWXvPUyMUO8U=; b=Du8swD7Cb12X2SUX5E6jOEFMzwOobyX7tiZQKkn6XLJIYVRlruam68bwL8XAdtuWnK cT2plcujjhNasZbPXI2f2/KLJVPqS4dGkDecj+/yKGbOvyjDCZZQ39TMMYYcF/HYzGRr 2lOYac3l7KtRWXyZmW8GecC1cGJ0gk9wADbAbDgO5d5rcLBqdDRsNN1Iu+hEWA08qAYf cTslZrHLZg+f5a0Tnvr1II+Ft4hUhC/4XYmBzjtxBoFICNiyZ3RINpTsVFDMKljfV0pU PVZioliyI3cnwokOtipWIaT9W6QSQzxdVQYaLBsQjafV082ZLIu5wl/oqsnynfyj1/p9 JV5Q== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n125-v6si3884575pga.376.2018.07.18.08.46.44; Wed, 18 Jul 2018 08:46:59 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731110AbeGRQYk (ORCPT + 99 others); Wed, 18 Jul 2018 12:24:40 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:39083 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730902AbeGRQYk (ORCPT ); Wed, 18 Jul 2018 12:24:40 -0400 Received: by mail-oi0-f66.google.com with SMTP id d189-v6so9656987oib.6 for ; Wed, 18 Jul 2018 08:46:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=GsJHLZekyrntxYLjb7/YYa4VwCpNbm3lWXvPUyMUO8U=; b=U2JmgtFagxnsvS7P7SWQgFb63RVFuXdq+m2b0dpo3JBq4+yn4rIY1il8+Tkt1tiWy3 cXWuizb+vdgdxpcxzUbXRJtQ0uFKTqWooFB2Ic+HtX1hBGfsuDOwPbBAV43+LMk/fJ5F GW7SgtdC90y82MQrtRtSpg2z0vYfDd8s8l8iN7CmhReqaTA5zXLzlnnXdHVA+HiwXIqB OAoEXnhs6VZ0PbFdhAPo7rqcw56+4iocG1irO5cbSRdI6J6Bf33eiiYr+r/UvMOdO/tf qBrAuJJYpgKjOCU+sl+GeJs+GQE8tyZ107JNc4uJsGRb+ilnmg6vz1IYYqJRqE74uxlp 8+WA== X-Gm-Message-State: AOUpUlFc8k1KpyuwzQZgudfqd5CPBEJTX67/YdQv558RCgzsD4BAxWQQ 8tIaMuSiZUy0TMdJTITIbikvz6p/+f0WHkc8G5Gx5w== X-Received: by 2002:aca:e8c9:: with SMTP id f192-v6mr7037979oih.87.1531928769582; Wed, 18 Jul 2018 08:46:09 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:3407:0:0:0:0:0 with HTTP; Wed, 18 Jul 2018 08:46:09 -0700 (PDT) In-Reply-To: <20180718124340.GS30522@ZenIV.linux.org.uk> References: <20180711152555.GR30522@ZenIV.linux.org.uk> <20180711161540.GS30522@ZenIV.linux.org.uk> <20180712124326.GA19272@ZenIV.linux.org.uk> <20180712155337.GU30522@ZenIV.linux.org.uk> <20180718025636.GA26175@ZenIV.linux.org.uk> <20180718132955.2bf185b7@canb.auug.org.au> <20180718124340.GS30522@ZenIV.linux.org.uk> From: Miklos Szeredi Date: Wed, 18 Jul 2018 17:46:09 +0200 Message-ID: Subject: Re: vfs / overlayfs conflict resolution for linux-next To: Al Viro Cc: Stephen Rothwell , linux-fsdevel , Linux Kernel Mailing List , Linus Torvalds 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, Jul 18, 2018 at 2:43 PM, Al Viro wrote: > On Wed, Jul 18, 2018 at 02:10:32PM +0200, Miklos Szeredi wrote: >> On Wed, Jul 18, 2018 at 9:25 AM, Miklos Szeredi wrote: >> > On Wed, Jul 18, 2018 at 5:29 AM, Stephen Rothwell wrote: >> >> Hi Al, >> >> >> >> On Wed, 18 Jul 2018 03:56:37 +0100 Al Viro wrote: >> >>> >> >>> ... and now it even builds. Said that, I would really like to hear something >> >>> from you - I can duplicate the entire overlayfs-next and merge it into >> >>> my #for-next and ask Steven to use that instead of your tree, but I very >> >>> much dislike going over your head like that. >> >>> >> >>> I realize that you'd been away for a while and probably are digging yourself >> >>> from under the piles of mail, but it's getting late in the cycle and I want >> >>> to get #for-next into reasonably sane shape. Please, look through that >> >>> thing and respond. Pushed updated series based on your vfs.git#for-ovl branch to the overlayfs-next tree. There's the additional patch dealing with nr_files accounting (will post for review shortly). That one has a trivial conflict with the mount series, otherwise merges cleanly with viro/vfs.git#for-next. I like the call_with_creds() idea. I didn't realize that override_creds()/revert_creds() can be quite heavyweight due to doing (unnecessary in this case) refcounting. Could use call_with_creds() in overlayfs too, since we hold ref on ofs->creator_cred for the lifetime of the filesystem. Thanks, Miklos