Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751343AbbLUWMr (ORCPT ); Mon, 21 Dec 2015 17:12:47 -0500 Received: from out03.mta.xmission.com ([166.70.13.233]:45241 "EHLO out03.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751201AbbLUWMq (ORCPT ); Mon, 21 Dec 2015 17:12:46 -0500 From: ebiederm@xmission.com (Eric W. Biederman) To: "H. Peter Anvin" Cc: Peter Hurley , Greg KH , Jiri Slaby , Linus Torvalds , Aurelien Jarno , Andy Lutomirski , Florian Weimer , Al Viro , Serge Hallyn , Jann Horn , "security\@kernel.org" , "security\@ubuntu.com \>\> security" , security@debian.org, Willy Tarreau , linux-kernel@vger.kernel.org References: <43AD2BA7-B594-4299-95F3-D86FD38AF21B@zytor.com> <87egexpf4o.fsf@x220.int.ebiederm.org> <1CB621EF-1647-463B-A144-D611DB150E15@zytor.com> <20151208223135.GA8352@kroah.com> <87oae0h2bo.fsf@x220.int.ebiederm.org> <56677DE3.5040705@zytor.com> <20151209012311.GA11794@kroah.com> <84B136DF-55E4-476A-9CB2-062B15677EE5@zytor.com> <20151209013859.GA12442@kroah.com> <20151209083225.GA30452@1wt.eu> <87wpskyds7.fsf_-_@x220.int.ebiederm.org> <566F1CD7.20502@hurleysoftware.com> <87y4cq6t1j.fsf@x220.int.ebiederm.org> <87a8p54v3t.fsf@x220.int.ebiederm.org> <5AFEA8FF-BDEA-40AF-8C45-19F3E9CC36D3@zytor.com> <87r3ih1mnp.fsf@x220.int.ebiederm.org> Date: Mon, 21 Dec 2015 16:03:42 -0600 In-Reply-To: <87r3ih1mnp.fsf@x220.int.ebiederm.org> (Eric W. Biederman's message of "Sun, 20 Dec 2015 03:42:34 -0600") Message-ID: <87zix3xxvl.fsf@x220.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-AID: U2FsdGVkX196nfPyTltymUBiQECMt0JHbqLkYvkpgZA= X-SA-Exim-Connect-IP: 97.121.81.63 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 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 * [sa04 1397; Body=1 Fuz1=1 Fuz2=1] X-Spam-DCC: XMission; sa04 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;"H. Peter Anvin" X-Spam-Relay-Country: X-Spam-Timing: total 824 ms - load_scoreonly_sql: 0.04 (0.0%), signal_user_changed: 2.9 (0.3%), b_tie_ro: 2.1 (0.3%), parse: 0.62 (0.1%), extract_message_metadata: 15 (1.8%), get_uri_detail_list: 0.93 (0.1%), tests_pri_-1000: 7 (0.8%), tests_pri_-950: 1.13 (0.1%), tests_pri_-900: 0.99 (0.1%), tests_pri_-400: 25 (3.0%), check_bayes: 24 (2.9%), b_tokenize: 6 (0.7%), b_tok_get_all: 8 (1.0%), b_comp_prob: 1.78 (0.2%), b_tok_touch_all: 4.9 (0.6%), b_finish: 2.3 (0.3%), tests_pri_0: 764 (92.8%), check_dkim_signature: 0.49 (0.1%), check_dkim_adsp: 2.8 (0.3%), tests_pri_500: 5 (0.6%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH] devpts: Sensible /dev/ptmx & force newinstance X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Wed, 24 Sep 2014 11:00:52 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1158 Lines: 31 ebiederm@xmission.com (Eric W. Biederman) writes: > "H. Peter Anvin" writes: > >> Does it matter if it mounts devpts twice? It seems like a waste of a >> minuscule amount of memory, and nothing else. > It breaks system("mknod /tmp/ptmx c 5 2"); open("/tmp/ptmx"); Correction. It does break the above but that isn't the real reason we need to support that. We only have evidence of pople doing: "mkdir -p dev/pts; mknod c dev/ptmx 5 2; mount -t devpts dev/pts/" Where the relatives paths would work. What actually breaks is "echo NNN > /proc/sys/kernel/pty/reserve" Which allows the primary instance of devpts to have access to more ptys than any other instance. Ultimately if we are going to be backwards compatible we need to preserve as much of the current behavior as possible so we don't forget something in the analysis and break something we don't intend to break by accident. Eric -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/