Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751208AbdHXBQE (ORCPT ); Wed, 23 Aug 2017 21:16:04 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:36136 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751061AbdHXBQC (ORCPT ); Wed, 23 Aug 2017 21:16:02 -0400 MIME-Version: 1.0 In-Reply-To: References: <20170816171211.4021-1-christian.brauner@ubuntu.com> <20170816194805.hnof3aqiqykwki7p@gmail.com> <87pobvruzt.fsf@xmission.com> <87ziazqdfr.fsf@xmission.com> <20170824022436.44adb497@mir> From: Linus Torvalds Date: Wed, 23 Aug 2017 18:16:01 -0700 X-Google-Sender-Auth: GIEsR0yi3IUK4segsT9Qa0JQDAs Message-ID: Subject: Re: [PATCH 0/1] devpts: use dynamic_dname() to generate proc name To: Stefan Lippers-Hollmann Cc: "Eric W. Biederman" , 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: 1009 Lines: 30 On Wed, Aug 23, 2017 at 5:42 PM, Linus Torvalds wrote: > > Let me try to think about alteratives. Clearly this is a regression > and I need to fix it, I just need to figure out _how_. Ok, sadly, I think it's unfixable with the current model. We literally used to keep the wrong 'struct path' around, and sadly, fixing the struct path to point to the right vfsmount fundamentally means that we'd be keeping the mount count elevated for that pts mount. And that fundamentally means that umount() will return -EBUSY. There's no way around it. So I think I will have to just revert that fix. Damn. Now, I think there's a way forward: get rid of the 'struct path' (which is bogus anyway), and only remember the pts denty. Then, at TIOCGPTPEER time (which is why we currently have that 'struct path' anyway), look up the right 'vfsmount' by looking up the 'pts' path again. That's a rather bigger patch than the one I'll have to revert, I'm afraid ;( Linus