Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753627AbdHXTYC (ORCPT ); Thu, 24 Aug 2017 15:24:02 -0400 Received: from out01.mta.xmission.com ([166.70.13.231]:54741 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753136AbdHXTYA (ORCPT ); Thu, 24 Aug 2017 15:24:00 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: Linus Torvalds Cc: Stefan Lippers-Hollmann , Christian Brauner , Christian Brauner , Linux Kernel Mailing List , "Serge E. Hallyn" , Al Viro , Thorsten Leemhuis References: <20170816171211.4021-1-christian.brauner@ubuntu.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> <87y3q8ermg.fsf@xmission.com> Date: Thu, 24 Aug 2017 14:23:31 -0500 In-Reply-To: (Linus Torvalds's message of "Thu, 24 Aug 2017 11:51:05 -0700") Message-ID: <87k21sepn0.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=1dkxjM-0007K8-TM;;;mid=<87k21sepn0.fsf@xmission.com>;;;hst=in02.mta.xmission.com;;;ip=67.3.200.44;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX19C6tWJIfEklMpxInXQDmdOA7sFH3Oqq74= X-SA-Exim-Connect-IP: 67.3.200.44 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 1.5 XMNoVowels Alpha-numberic number with no vowels * 0.7 XMSubLong Long Subject * 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 * [sa07 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject * 0.0 T_TooManySym_02 5+ unique symbols in subject * 0.0 T_TooManySym_03 6+ unique symbols in subject X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: **;Linus Torvalds X-Spam-Relay-Country: X-Spam-Timing: total 5683 ms - load_scoreonly_sql: 0.06 (0.0%), signal_user_changed: 2.9 (0.1%), b_tie_ro: 1.91 (0.0%), parse: 0.99 (0.0%), extract_message_metadata: 15 (0.3%), get_uri_detail_list: 1.12 (0.0%), tests_pri_-1000: 9 (0.2%), tests_pri_-950: 1.36 (0.0%), tests_pri_-900: 1.02 (0.0%), tests_pri_-400: 22 (0.4%), check_bayes: 21 (0.4%), b_tokenize: 6 (0.1%), b_tok_get_all: 8 (0.1%), b_comp_prob: 1.95 (0.0%), b_tok_touch_all: 3.0 (0.1%), b_finish: 0.67 (0.0%), tests_pri_0: 127 (2.2%), check_dkim_signature: 0.59 (0.0%), check_dkim_adsp: 3.1 (0.1%), tests_pri_500: 5501 (96.8%), poll_dns_idle: 5495 (96.7%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH 0/1] devpts: use dynamic_dname() to generate proc name 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1114 Lines: 33 Linus Torvalds writes: > On Thu, Aug 24, 2017 at 11:40 AM, Eric W. Biederman > wrote: >> >> Here is my tested version of the patch. > > Can you please take my cleanups to devpts_ptmx_path() too? Let met take a look. > Those 'goto err' statements are disgusting, when a plain 'return > -ERRNO' works cleaner. Yes those look like good cleanups. I had tried to preserve the original logic in devpts_ptmx_path from devpts_acquire to make it easier to see if I had goofed. But that out and out failed so cleanups so the code is easier to read look like a very good thing. > And that "struct file *filp = NULL;" is bogus - you added the NULL > initialization because you mis-used "filp" early, and with that fixed > it's just garbage. Actually the NULL initialization is a hold over from the original version of that function. But I agree without it gcc could have caught my use of the wrong variable, so removing it looks like a good idea. > Other than that, it looks fine to me. Thanks. I will respin and retest and see where things are at. Eric