Re: [PATCH 0/3 RESEND] namei: add follow_up_bind()

2018-04-06 Thread Christian Brauner
On Thu, Apr 05, 2018 at 07:45:15PM +0200, Christian Brauner wrote: > On Thu, Apr 05, 2018 at 09:28:56AM -0700, Linus Torvalds wrote: > > On Thu, Apr 5, 2018 at 3:51 AM, Christian Brauner > > wrote: > > > > > > This series adds: > > > - follow_up_bind() to namei.{c,h} > > > - switches fs/nfsd/vfs.c

Re: [PATCH 0/3 RESEND] namei: add follow_up_bind()

2018-04-05 Thread Christian Brauner
On Thu, Apr 05, 2018 at 09:28:56AM -0700, Linus Torvalds wrote: > On Thu, Apr 5, 2018 at 3:51 AM, Christian Brauner > wrote: > > > > This series adds: > > - follow_up_bind() to namei.{c,h} > > - switches fs/nfsd/vfs.c:follow_to_parent() to use follow_up_bind() > > - switches fs/devpts/inode.c:devp

Re: [PATCH 0/3 RESEND] namei: add follow_up_bind()

2018-04-05 Thread Linus Torvalds
On Thu, Apr 5, 2018 at 3:51 AM, Christian Brauner wrote: > > This series adds: > - follow_up_bind() to namei.{c,h} > - switches fs/nfsd/vfs.c:follow_to_parent() to use follow_up_bind() > - switches fs/devpts/inode.c:devpts_mntget() to use follow_up_bind() Hmm. Seems fair enough to me, although I

[PATCH 0/3 RESEND] namei: add follow_up_bind()

2018-04-05 Thread Christian Brauner
Hi everyone, (Resending since Linus email got mangled on my terminal. Sorry.) Back when we fixed TIOCGPTPEER again in commit a319b01d9095 ("devpts: resolve devpts bind-mounts") we discovered [1] that the code for bind-mount resolution we needed to add in devpts_mtnget() was already duplicated i