Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754081AbbFIMoU (ORCPT ); Tue, 9 Jun 2015 08:44:20 -0400 Received: from mail-qk0-f172.google.com ([209.85.220.172]:36661 "EHLO mail-qk0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753958AbbFIMoL (ORCPT ); Tue, 9 Jun 2015 08:44:11 -0400 MIME-Version: 1.0 X-Originating-IP: [217.173.38.102] In-Reply-To: <877frgwcsf.fsf@x220.int.ebiederm.org> References: <1433424586-7771-1-git-send-email-miklos@szeredi.hu> <1433424586-7771-3-git-send-email-miklos@szeredi.hu> <20150605000715.GP7232@ZenIV.linux.org.uk> <20150605150939.GA2174@tucsk> <877frgwcsf.fsf@x220.int.ebiederm.org> Date: Tue, 9 Jun 2015 14:44:09 +0200 Message-ID: Subject: Re: [PATCH 2/2] ovl: allow distributed fs as lower layer From: Miklos Szeredi To: "Eric W. Biederman" Cc: Al Viro , "linux-unionfs@vger.kernel.org" , Linux-Fsdevel , Kernel Mailing List , sa , "Roth, Andre" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 970 Lines: 23 On Sun, Jun 7, 2015 at 3:02 AM, Eric W. Biederman wrote: > A nasty corner case to be aware of (and I think this is part of what Al > was warning about). /proc/sys/net is different depending upon which > current->nsproxy->net_ns. Ah, I'm beginning to grasp what's going on there: mulitple dentries with the same name but belonging to different namespaces, ->d_compare() being used to select the right one. Is that it? Overlayfs checks for d_compare() on the root of the lower and upper trees, but here it only set on a subdirectory of proc, not on every dentry. So overlayfs should be careful and check for DCACHE_OP_COMPARE | DCACHE_OP_HASH and reject going down such a dentry. Thanks, Miklos -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/