[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFxiDZAcFvngiNGUT=o78i1SWZ-tSHDYV4TKebiixiD6Pg@mail.gmail.com>
Date: Thu, 24 Aug 2017 11:13:02 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: "Eric W. Biederman" <ebiederm@...ssion.com>
Cc: Stefan Lippers-Hollmann <s.l-h@....de>,
Christian Brauner <christian.brauner@...onical.com>,
Christian Brauner <christian.brauner@...ntu.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"Serge E. Hallyn" <serge@...lyn.com>,
Al Viro <viro@...iv.linux.org.uk>,
Thorsten Leemhuis <regressions@...mhuis.info>
Subject: Re: [PATCH 0/1] devpts: use dynamic_dname() to generate proc name
On Thu, Aug 24, 2017 at 11:06 AM, Linus Torvalds
<torvalds@...ux-foundation.org> wrote:
>
> But that still fails the TIOCGPTPEER ioctl with an NULL pointer
> dereference in devpts_mnt, I probably messed up when I fixed the
> dentry refcount leak.
No, that was another bug in the original patch.
ptm_open_peer() passed in 'filp' to devpts_mnt(), but it should
obviously pass in the 'master' one.
filp is NULL at that point.
The attached patch should work. It's Eric's original patch with
various cleanups and fixes.
Linus
View attachment "patch.diff" of type "text/plain" (7312 bytes)
Powered by blists - more mailing lists