Received: by 10.213.65.68 with SMTP id h4csp464962imn; Tue, 13 Mar 2018 09:54:46 -0700 (PDT) X-Google-Smtp-Source: AG47ELtQlFBEDYV+Coi4BwWcoii5EfZ36oLK8dzIpw8Db2P2m1AMAJJnJsDKtQFAT5wKcrr75IfL X-Received: by 10.99.124.79 with SMTP id l15mr1027730pgn.19.1520960086456; Tue, 13 Mar 2018 09:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520960086; cv=none; d=google.com; s=arc-20160816; b=F5gilQKW93Cd91HrXTE2+QZm0LYWZKekXKXwXqHaPQsQRd9oB6DszLQzeO8u0Ng957 Slouh2u4tVQQAkh8MM8V1l0hKKWOOtjHBTPTq3XMCvCng4rM/CRcoy4ibGVPjm2z+lhX aUVOZv6TwuPxstr19cJmMczPat8VBAzTKWBL+NmTDUV/d/h0tBcEBOFzmDDXVVuFDoFz 7vaFHOAyPQYstm4H9vA17HFW23d0OsuSkPp1PavKG0ZR9iuc36XPUAmLz0FIBbw8ebu8 wo75FYA4RreiRWtrSTu4X8mZY53ZDgL6UOR0HjCYO5LvOWgDQdJKFcsgqNuUvX1yWkxI HIJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=5mtmrf9cLDLpY06z3Cez2aMysDKW3M42qF5lLw5vczM=; b=BKknZ4kasWzqmFR70TMctSnQR/TLTt0EPA0VR5gqpC4bTtgfOlueCA0X7TAfBA8amC f9BlxRYIhAaOQ9pQXjDJVzt1aCEzvnF+A9Xe3WmgZVRRFUvPoq5kQcO5ZEm+v/7T77Rn z6GxDZc6I+c3ql0BBlKTjgBsaaUGy4rhfgn4iD4oI4iERUcvbsn35Sw/J8IbgYOwahIZ w7XfNtlNmRL3DYWjpvEvqlBlMXiMFUqzXvCYH32BhN08M3JanviTBFXvau+35sdIEsBl ZxvMz89q8cuo0xZTLkaVvVgwD9NTTcQvHBcoJhCvfa/DeR5iJnGkKbm81hUIFe1uIW9C giSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=VbJx2Tub; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mailbox.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 197si297742pge.78.2018.03.13.09.54.32; Tue, 13 Mar 2018 09:54:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=VbJx2Tub; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mailbox.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752885AbeCMQvv (ORCPT + 99 others); Tue, 13 Mar 2018 12:51:51 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:49118 "EHLO mx2.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752384AbeCMQvs (ORCPT ); Tue, 13 Mar 2018 12:51:48 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id E9B1F4101B; Tue, 13 Mar 2018 17:51:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= in-reply-to:content-disposition:content-type:content-type :mime-version:references:message-id:subject:subject:from:from :date:date:received; s=mail20150812; t=1520959895; bh=yE0lV7M2rd lr7hQoGVAX7eClFC39mtaufcER8sQ6roo=; b=VbJx2Tubq4ayb/+u5haVeVPMcy mh0HcRPKi0xsSiWGxOLbQvmpCLRNZkiAEK/C0KVt26QulBHxVpVdKq+lXTigzqbg OHP93r8LRvS+88Zba7lm4/hLnpozYxfHxtmQCLdConuoqzqhjGvpcnGsPkPTCuXR YLHHzKr9Ne9E8J//bziIIf3LZHzdEKpPRCYIPY0BeEIyExxH3rfSXuekGosdSO7w Fy791SqfhKYQ6Nsl/3LKVWkX0ejHTDdj5ViKVa1Gs0DU4zd89RCIA4tlOg+PW6mt LZIjDWwpsvH8e9wUpGYW7jLz95Nww7WhZwNBRC5+Zo+oihpdpd2EXKK45Tnw== X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id VNq5fS05gQd0; Tue, 13 Mar 2018 17:51:35 +0100 (CET) Date: Tue, 13 Mar 2018 17:51:33 +0100 From: Christian Brauner To: "Eric W. Biederman" Cc: Christian Brauner , containers@lists.linux-foundation.org, torvalds@linux-foundation.org, viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/4 v5] devpts: handle bind-mounts correctly Message-ID: <20180313165133.GA17319@mailbox.org> References: <20180313121713.32551-1-christian.brauner@ubuntu.com> <87y3iw0vz7.fsf@xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87y3iw0vz7.fsf@xmission.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 13, 2018 at 11:41:00AM -0500, Eric W. Biederman wrote: > Christian Brauner writes: > > > Hey everyone, > > > > This is the fith iteration of this patch. Per-patch changes are > > summarized in the individual patches: > > Acked-by: "Eric W. Biederman" > > I guess we need to answer the question do I pick up this series or does > gregkh. This series would seem to fit in his tty tree. > > You haven't copied gregkh so you may need to resend and do that. I'll resend and CC grekh now. Christian > > Eric > > > > ChangeLog v4->v5: > > * added non-functional patch to document devpts_mntget(). > > Reason for putting this in a separate patch is that it allows you, > > Linus and Eric, to simply drop it if judged useless. > > * reverse error handling logic to further simplify > > * dput() dentry in the non-function patch. This was not really a problem > > since the following patch included a fix for it. But better to get it > > right in all individual patches. > > * I did another rewrite of the problem analysis for > > posterity in the patch "Subject: [PATCH 2/3 v3] devpts: resolve devpts > > bind-mounts" and in this cover letter. > > > > ChangeLog v3->v4: > > * small logical simplifications > > * add test that bind-mounts of /dev/pts/ptmx to locations that do not > > resolve to a valid slave pty path under the originating devpts mount > > fail > > > > ChangeLog v2->v3: > > * rewritten commit message to thoroughly analyse the problem for > > posterity in the patch "Subject: [PATCH 2/3 v3] devpts: resolve devpts > > bind-mounts" and in this cover letter. > > * extended selftests to test for correct handling of /dev/pts/ptmx > > bind-mounts to /dev/ptmx and non-standard devpts mounts such as > > mount -t devpts devpts /mnt > > > > ChangeLog v1->v2: > > * see individual patches > > ChangeLog v0->v1: > > * see individual patches > > > > Christian Brauner (4): > > devpts: hoist out check for DEVPTS_SUPER_MAGIC > > devpts: resolve devpts bind-mounts > > devpts: comment devpts_mntget() > > selftests: add devpts selftests > > > > fs/devpts/inode.c | 66 +++-- > > tools/testing/selftests/Makefile | 1 + > > tools/testing/selftests/filesystems/.gitignore | 1 + > > tools/testing/selftests/filesystems/Makefile | 2 +- > > tools/testing/selftests/filesystems/devpts_pts.c | 313 +++++++++++++++++++++++ > > 5 files changed, 363 insertions(+), 20 deletions(-) > > create mode 100644 tools/testing/selftests/filesystems/devpts_pts.c > _______________________________________________ > Containers mailing list > Containers@lists.linux-foundation.org > https://lists.linuxfoundation.org/mailman/listinfo/containers