Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751281AbdHXEZJ (ORCPT ); Thu, 24 Aug 2017 00:25:09 -0400 Received: from mout.gmx.net ([212.227.15.15]:62733 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751258AbdHXEZI (ORCPT ); Thu, 24 Aug 2017 00:25:08 -0400 Date: Thu, 24 Aug 2017 06:24:32 +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 0/1] devpts: use dynamic_dname() to generate proc name Message-ID: <20170824062432.1e05e6f8@mir> In-Reply-To: <87wp5tfynr.fsf@xmission.com> References: <20170816171211.4021-1-christian.brauner@ubuntu.com> <20170816194805.hnof3aqiqykwki7p@gmail.com> <87pobvruzt.fsf@xmission.com> <87ziazqdfr.fsf@xmission.com> <20170824022436.44adb497@mir> <87378hhi3y.fsf@xmission.com> <87wp5tfynr.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_/6f=3By0xrEIP+xDO3C8zk4m"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:5jb4vVYdCODfMAP1INzrvEotkz+okjCCzc/exiczBbhsoZK74z+ FSV0jSijVX0Ma65zpxTWWYUKLdIzwo3erlRjgpIJnS51t6fPpNpjhZ4hb6fJKrnu07Uq140 0jo7z+UZUfhd2jiJVgZfVNv+fedDBKfgk7voybBoyDqGcZoqsJHoKWJilIlmuRXBtoedoRe EGYuAoyyBAlAYpi12D1RA== X-UI-Out-Filterresults: notjunk:1;V01:K0:RbFVirwvtvo=:58Layt23CnOglxv3T5u0e9 05XsK3UJ72gkXQUR+JoVaa4tC4Q8Mrbo3ocQq2VjLAR7X1Zq3C3k7m6bBigD1PNZNarsNIDXE 6EePHcwnByLp2vaCfK4xHmUlsN5MhdBXoR5GVnOckUy7YUlIhXZlI9GpfbRQVdCufCiGB0nxc 7+YSNM6QAVonAcg7JBp06LJ2589cxICXcYO2ZL5qZ19Rb0pDZR61mxTv3bn2UKce4KSy3hNg8 8iXCBAGmEegGnpgyAHSKKYB2zTa8P8T9GL2y9poKss2KmiBhK6tpVcQ+qnZbhxmqqibDU98Mk 0mcmbA8h71e4nE13/I3ODErW/Blqa3V+KoyiGNfeBqLHoq46bQbSEOb7knSFNte5W8lCF4RvK Qvase6X3FnFTSgcIYlm7x2Jp1uN4va4mLcj9hMc4wxdoL6mWB0Tk98mHNTo2NVWkKjbny72p0 aA1yzjwgxc29SoQCa7sNWfvAz8w/gJhMkApjApgntQcCCadPWFFBKeZ54qkOE27F07yp55MmQ Pyo6YTwFDh4rIc41AFFZ14Afv/4RbgpQhg8Pe72M8aVcBV5G0bSqn9hRUpCqhcno5ggDQvTOT f0bdBPm2b9tUQ9Dd46qjVgS7qawvlQ0rV5ByX7g8m2mw0waIMh8vxDi8S/XqZBDHx0eL1Rep1 oDHZCN9yUY4O9J5RIIstsHDHwt4iAr3hNd9GZFu8EtEEkzz+VOc2nbKEtYFi84ovKDD22ElB7 bQj2cJR/giONolgsDwEb5Sowa6ynsbeM4BX6xD3pu+MDXHeWYYDQ1yu0esyHMmtyyi5m/B5U6 MTHPEAvGpQsW77NGvv5toKJJVhVPw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2252 Lines: 57 --Sig_/6f=3By0xrEIP+xDO3C8zk4m Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi On 2017-08-23, Eric W. Biederman wrote: > Linus Torvalds writes: > > On Wed, Aug 23, 2017 at 6:49 PM, Linus Torvalds wrote: =20 [...] > This is so far untested (except for compiling) but I think this will > work. >=20 > I factor out devpts_ptmx_path out of devpts_acquire so the code > doesn't have to do unnecessary and confusing work, and add the > new function devpts_mnt. >=20 > I revert the code to keep anything except a dentry in > tty->link->driver_data. >=20 > And reduce the peer opening to a single function ptm_open_peer. >=20 > It takes lines of code but the result is very straightforward code. I've given this a quick test, while it seems to fix the initial problem with umounting /dev/ptmx, it does introduce a new one - trying to open=20 an xterm (KDE5's konsole to be exact) doesn't open a shell (the shell=20 window remains totally empty) and trying to ssh into the system fails=20 with "PTY allocation request failed on channel 0", logging in via a=20 real tty and creating a new pbuilder chroot from there succeeds. Regards Stefan Lippers-Hollmann --Sig_/6f=3By0xrEIP+xDO3C8zk4m Content-Type: application/pgp-signature Content-Description: Digitale Signatur von OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEMQMcJCzZm4GSqVV4v+AtZbHRQu0FAlmeVQAACgkQv+AtZbHR Qu16VRAA46MrjDYahn8cdp5ECE9ko/xOJG63T8huROrpihRenDWXviWyp7oMHmnj c0FS6QPq6WFkO6CsAvLWCwRtqtAnWkiSoRGRMBvZCNe7Py0p5UlHfqlmjujUSPuQ N/keQs+GIxRLJEgNCTqug/ACgHmbyhVxyrgBWG0CWkJEqMOjRRrvebIiUpY9WPNe k1ciCws9vnIDQeR3+7LkndexwOUvZRb7EWl+mUgXKK5wh8KTevwSLygxSXbdigQ/ NbH5XqRdsb98Qd+R4/JUqQ6L7Jf1ae7SC90EvdR7MHeUP+HQqYY/E5Ke054qszfd UmeGoVsPOCaV/9p4160hWHe4cCoymVnpRcWxOlrfvG39DWrbm6BamAUVFD8SH9hJ MuEnWUHVCJqdKoC25cWKFeLOrnXYb1GLMghYtCjABgMfhJubWj8HDlqlvM915bso C2QHoRs31LXqhR9uMhHOujIecJDVilRvzxv0XPCvTtXQV6YA+Fc9aVPJ6jIRDjlF gY47vXxhGtm2TAPjbYj035+L6pIEtNDlp04C8WwKKxwMSkyc0BDFvi7v4lbhXL2m of1zBmn5hxybsqyJodemY0LDKkieygsZLU/XjwfgriTPLixrCei9GiQ72k/cgmhh T/u00A0H6Q8YyPzVinSmihcyfj/SqaWoC49f8BCHRabMGtRNdKU= =yUC4 -----END PGP SIGNATURE----- --Sig_/6f=3By0xrEIP+xDO3C8zk4m--