Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753827AbdHXVBu (ORCPT ); Thu, 24 Aug 2017 17:01:50 -0400 Received: from mout.gmx.net ([212.227.15.18]:57994 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753721AbdHXVBr (ORCPT ); Thu, 24 Aug 2017 17:01:47 -0400 Date: Thu, 24 Aug 2017 23:01:21 +0200 From: Stefan Lippers-Hollmann To: ebiederm@xmission.com (Eric W. Biederman) Cc: Linus Torvalds , Christian Brauner , Christian Brauner , Linux Kernel Mailing List , "Serge E. Hallyn" , Al Viro , Thorsten Leemhuis Subject: Re: [PATCH v3] pty: Repair TIOCGPTPEER Message-ID: <20170824230121.2221763a@mir> In-Reply-To: <87a82od8ra.fsf_-_@xmission.com> References: <20170816171211.4021-1-christian.brauner@ubuntu.com> <87ziazqdfr.fsf@xmission.com> <20170824022436.44adb497@mir> <87378hhi3y.fsf@xmission.com> <87wp5tfynr.fsf@xmission.com> <20170824062432.1e05e6f8@mir> <874lsxezal.fsf@xmission.com> <87y3q8ermg.fsf@xmission.com> <87a82od8ra.fsf_-_@xmission.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/206pV2g31gk8Tc0bEtS96ZZ"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:SsaThXtY7Xrm62o0p7u3gN8z9dp/sIr86NACcLlAjXRY7TSb2O7 2Vcm7avxYlGfxfxioNnp5EERx8Mu1LDHy+0hQWmsFXZ9y0Ez6So8Ta5iBnvzU4W3j1W3Jht 879F7xSb6Y//Jm8uMG1qrDw/zfMMsiCsfRhr/NZV2w1sapxTce+hapvppcYE4GB8id9RIJ0 /TNSUYd0D0rd1D+esXu4A== X-UI-Out-Filterresults: notjunk:1;V01:K0:sq3JtPzEoIw=:ffXiHPQ9kfRmWRO2Qnd2pK +rWv+GNTXEYRuSzbBDlReYv8uxNPFJN7KXk9acCAPJnFte0hT2Ult9eLQD7PEXirYVJRk7L/L mleBn1oQE8EGNfu5mqcqevE9dpSsrMxwb/b8rVPbkFfd01iOYvUIyk3jYgjbHPlLifYXWxxMj 0D3gwWCkWAiC4KWQWxx6yaxospD3KFx9HnQZXYfZEltUI0Fcnf3eZEo38cFSnUwWZqZpG5GiW 5Dcm7BmEx80N8w2CSmD14SkMYsySVkL8mFf/HT299ODS1MJXpZ+bw5MwQpSBMhYw6deJe73Eo rmP76NDB3d+njnqApZaVpPjlJfEswCysnIyWh4p7Xlv1AHhqHlQBwrquJgsFZaxGNr/RofWjX ncXz1ejCATHyItR/JJpOSOvlsrb+dePmQlLREYA3gMwISyltLW9WERinnjWhskOkWSEwQ4rcD rGSEAroa7AlrOqfCHs9EL3kJ7RgeDgUilUYYFqaaqcxZSv8UaUbK9jEQlVMwt7+EdEBjmmGxR BRq0pf24bt4nd2WkP9JDkqxIto6I7dE/vKYNWNBpkouBxqX038gjje890marHGBXyu/F1UQHS 48ow84TPW10supJWZwCuPxQVCKY1EONwXk/Jr68yaTMX5adNDjpkqa+Zqo9nFUxzdsRf88yMy 5Ph6Z3+JbKd6H575AwDRSAARpFx0yXJn9bsg/V3636i0qofuFIB7dzghozsSXX1+Qv/50istg w9PsreLlca+mWKqhT/QmuFbi5i0ibgID3M9RC0qx1fwb+vkXMyxj9njzhPJzbL/AFT7ChlcUX I2JVtm5HqnLj48FbDh59PpW+J9n5A== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1761 Lines: 48 --Sig_/206pV2g31gk8Tc0bEtS96ZZ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi On 2017-08-24, Eric W. Biederman wrote: > The implementation of TIOCGPTPEER has two issues. >=20 > When /dev/ptmx (as opposed to /dev/pts/ptmx) is opened the wrong > vfsmount is passed to dentry_open. Which results in the kernel displaying > the wrong pathname for the peer. [...] > v2: Lots of fixes to make the code actually work > v3: Suggestions by Linus > - Removed the unnecessary initialization of filp in ptm_open_peer > - Simplified devpts_ptmx_path as gotos are no longer required This version of the patch is working for me as well in all my test (including pbuilder) so far, thanks a lot. Regards Stefan Lippers-Hollmann --Sig_/206pV2g31gk8Tc0bEtS96ZZ Content-Type: application/pgp-signature Content-Description: Digitale Signatur von OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEMQMcJCzZm4GSqVV4v+AtZbHRQu0FAlmfPqEACgkQv+AtZbHR Qu3WRxAAo0PI8U3MNbEJTHuRg3LEkS8ae/wn8akExN2Lc8YLmdrhzJRMu8RD7J6C 0z/K46KGTagAkrZm8S41Y7mPz7p+fFbWfHhOpXqgm0dY0lbC+F6t0IX0C+7HsHPN ApeLwV77KWIa4a6D22ff6IfnyJ+UpurCsqLmQ6eaiM3RwSrmOcEIW/YTqVTLnUGJ NcBj+2ASg+cWsVXkwWYX4JfwwsQcGxuc1TsY3AnARC2ht0H4Odqq66CX7vl49Oh4 Hodx1Po2DaHP5CRPoDQWBOS8zQo3syaAMQFPDHIRUPESMmPomuAbjNEkFAGW9u5C fhVdH8A49S5QEUfIEygfAlsvABrZBDIZwxDokCxPPkoO5I0SilnQolYVvpTdt00h LSKMfy6NsQoyR3PsfMuLCN/NnlKcSfXpvIKpxGQjCDCChrtzfybw24PcdA8DXJG1 F8ZEvskR/BpAjWDec76JpR2piujYz7vGVjbhQ2eoK+JD5ptKcUea/K1bNb++N+MY LqIe2z9AWCN8P/h4Qn71+LbFXwjj1jYl8RB5+/NiTe+wxYGMIHuftT+CE1xhNEQ0 2enbyEmpRja9TtlZOl564Xc4RJI0TQRPnjBB02ZhMDlpC51fw7AVXrDQPNyhBMSO ayaKBqqKzeSWR0tpyTk9dhVW1fl7X0SkmnkelQTKPCAybLLkPm4= =T21Y -----END PGP SIGNATURE----- --Sig_/206pV2g31gk8Tc0bEtS96ZZ--