Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753418AbdHXRwY (ORCPT ); Thu, 24 Aug 2017 13:52:24 -0400 Received: from mail-oi0-f50.google.com ([209.85.218.50]:36818 "EHLO mail-oi0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751317AbdHXRwW (ORCPT ); Thu, 24 Aug 2017 13:52:22 -0400 MIME-Version: 1.0 In-Reply-To: <874lsxezal.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> <20170824062432.1e05e6f8@mir> <874lsxezal.fsf@xmission.com> From: Linus Torvalds Date: Thu, 24 Aug 2017 10:52:21 -0700 X-Google-Sender-Auth: ovUKmF6Kb2zmtQUqaFcodlc9aIo Message-ID: Subject: Re: [PATCH 0/1] devpts: use dynamic_dname() to generate proc name To: "Eric W. Biederman" Cc: Stefan Lippers-Hollmann , Christian Brauner , Christian Brauner , Linux Kernel Mailing List , "Serge E. Hallyn" , Al Viro , Thorsten Leemhuis Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 784 Lines: 24 On Thu, Aug 24, 2017 at 8:54 AM, Eric W. Biederman wrote: > > Weird. There is at least one leak inducing bug in there. So perhaps > that is the cause. *Scratches my head* Are you also testing the new > ioctl? I can verify, and it's not the leak. I tried your patch with that leak fix (and the other fixes I pointed out), and I see similar issues that Stefan noted. With gnome-terminal, the terminal window opens, and then it says Failed to open PTY: No such device and the terminal obviously doesn't work. And I see the error: your devpts_ptmx_path() code always returns -ENODEV because you set the error unconditionally before an error check, and then you don't clear it if the error didn't happen. I'll test the fix. Linus