From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [REVIEW][PATCH 1/3] vfs: In d_path don't call d_dname on a mount point Date: Sun, 1 Dec 2013 05:09:30 +0000 Message-ID: <20131201050930.GB10323@ZenIV.linux.org.uk> References: <20131118031932.GA17621@mail.hallyn.com> <52899D09.5080202@cn.fujitsu.com> <20131118140830.GA22075@mail.hallyn.com> <20131118180134.GA24156@mail.hallyn.com> <87k3g5gnuv.fsf@xmission.com> <20131126181043.GA25492@mail.hallyn.com> <87siui1z1g.fsf_-_@xmission.com> <8738mi1yya.fsf_-_@xmission.com> <20131130061525.GY10323@ZenIV.linux.org.uk> <20131130170226.GZ10323@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20131130170226.GZ10323-3bDd1+5oDREiFSDQTTA3OLVCufUGDwFn@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Tetsuo Handa Cc: Aditya Kali , "Eric W. Biederman" , Neil Brown , Containers , Oleg Nesterov , Andy Lutomirski , Eric Dumazet , linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Linus Torvalds List-Id: containers.vger.kernel.org On Sat, Nov 30, 2013 at 05:02:26PM +0000, Al Viro wrote: > FWIW, the other callers of prepend_path() boil down to /proc/mountinfo > handling, apparmour d_namespace_path() (separate handling of MNT_INTERNAL, > __d_path() or d_absolute_path() for the rest) and tomoyo_get_absolute_path() > (this one directly calls ->d_dname() itself). While we are at it, what's the origin of if (buflen >= 256) checks in tomoyo_get_absolute_path() and tomoyo_get_dentry_path()? The minimal buflen value they can be called with is PAGE_SIZE - 1. And if there is a port with pages two times smaller than VAX ones, they'd better audit the tree for places assuming that PAGE_SIZE is at least 4K...