Received: by 10.213.65.68 with SMTP id h4csp459041imn; Tue, 13 Mar 2018 09:43:16 -0700 (PDT) X-Google-Smtp-Source: AG47ELvdZoCNbwN+VieBomzaZK5Edfgws1gl3NqRNTM8EoAU2xUUhN7J4Q3JyVuson/vkb/gshSh X-Received: by 2002:a17:902:848e:: with SMTP id c14-v6mr1141986plo.139.1520959396796; Tue, 13 Mar 2018 09:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520959396; cv=none; d=google.com; s=arc-20160816; b=KYCXQO5x3zMCPUHZCjCuomwNjFSywitGKX74kwVQnLHPzZRS76P7eXzproyIgXUY6U Ay+5155KyLWWAL3bEo4dB6clw/WOFtHEogRcwW4j4lNwTwmjPgNONZnVv9vdLEWkubaM 4PWy4p8aS65wE1cjdDRi1NNr1BjKI3DLYxvlbPjiPwlrPuL1wAAoPtU4jNcfHzUiaxHa 2Prj9fliySyTs8wpjvaKN5mep4g5uw/5uP8iiMYWh/hieGMfM2Juxak4tQlHBWG7p84D ejeAc7/dzdEiyifTzLCM8SGXjHQnmzDiJTwy4Jo2jZiJhVkZGaCKjozrciiHlEh1J0kR qZ3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version:user-agent :message-id:in-reply-to:date:references:cc:to:from :arc-authentication-results; bh=YCYlMSkgjpOo3IhaOjbwdfvZToS67vK5fXvU3y3wEGc=; b=JzBt6o6Os5g80UWZn5jbvyCjHpDHvPCV6+M7MRrbRVukCznQE31wZVkDyW2wJAXmAy aK8lcLlHU0/3bbLpFBww3fVlEe84eDPoeOR0qchrKZAj+Ab1NPojrr2QqTMllJypW/yI vob/PhT014RSwo5bLezk6NXMvIMoMFFk5ickTE/DBkSSYCF2KzItx3heSl3oQjY1Qj7B BgtXMKDKUyVadBwSwMoX+QDsBtvHTtFB20XWoGhHe6uk2mvRZ7f4Os2X46HldxXak22a bmIaPAhDrn47t3tszYt2OEQ6TrGtAfwEAef4wcJBs20j+5ATobt7nf7zJXUDUgh7hzBk wsRg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x61-v6si283593plb.741.2018.03.13.09.43.02; Tue, 13 Mar 2018 09:43:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933348AbeCMQlv (ORCPT + 99 others); Tue, 13 Mar 2018 12:41:51 -0400 Received: from out03.mta.xmission.com ([166.70.13.233]:40720 "EHLO out03.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932752AbeCMQlr (ORCPT ); Tue, 13 Mar 2018 12:41:47 -0400 Received: from in02.mta.xmission.com ([166.70.13.52]) by out03.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1evmzj-0004pT-0c; Tue, 13 Mar 2018 10:41:47 -0600 Received: from 174-19-85-160.omah.qwest.net ([174.19.85.160] helo=x220.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1evmzi-000392-CZ; Tue, 13 Mar 2018 10:41:46 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Christian Brauner Cc: viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, containers@lists.linux-foundation.org References: <20180313121713.32551-1-christian.brauner@ubuntu.com> Date: Tue, 13 Mar 2018 11:41:00 -0500 In-Reply-To: <20180313121713.32551-1-christian.brauner@ubuntu.com> (Christian Brauner's message of "Tue, 13 Mar 2018 13:17:09 +0100") Message-ID: <87y3iw0vz7.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1evmzi-000392-CZ;;;mid=<87y3iw0vz7.fsf@xmission.com>;;;hst=in02.mta.xmission.com;;;ip=174.19.85.160;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX18/5+vnbrVbB2YfVrjTl464xb8XRukKi9s= X-SA-Exim-Connect-IP: 174.19.85.160 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa06.xmission.com X-Spam-Level: * X-Spam-Status: No, score=1.3 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,TVD_RCVD_IP,T_TM2_M_HEADER_IN_MSG,T_TooManySym_01, XMNoVowels autolearn=disabled version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 1.5 XMNoVowels Alpha-numberic number with no vowels * 0.0 TVD_RCVD_IP Message was received from an IP address * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa06 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa06 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: *;Christian Brauner X-Spam-Relay-Country: X-Spam-Timing: total 232 ms - load_scoreonly_sql: 0.03 (0.0%), signal_user_changed: 2.5 (1.1%), b_tie_ro: 1.65 (0.7%), parse: 0.93 (0.4%), extract_message_metadata: 16 (6.9%), get_uri_detail_list: 1.91 (0.8%), tests_pri_-1000: 12 (5.2%), tests_pri_-950: 1.73 (0.7%), tests_pri_-900: 1.42 (0.6%), tests_pri_-400: 26 (11.1%), check_bayes: 25 (10.6%), b_tokenize: 6 (2.8%), b_tok_get_all: 9 (3.9%), b_comp_prob: 2.1 (0.9%), b_tok_touch_all: 5 (2.2%), b_finish: 0.65 (0.3%), tests_pri_0: 162 (69.9%), check_dkim_signature: 0.64 (0.3%), check_dkim_adsp: 2.5 (1.1%), tests_pri_500: 6 (2.5%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH 0/4 v5] devpts: handle bind-mounts correctly X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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