Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp341064ybj; Mon, 4 May 2020 22:58:55 -0700 (PDT) X-Google-Smtp-Source: APiQypLnr/hGkY23vEeJ4zxiRVfrONplCkhybnoiXuupYsJZTzKP3TvPVEHMEGQnRsx2bYqNPhnd X-Received: by 2002:a17:906:a441:: with SMTP id cb1mr1262157ejb.242.1588658335017; Mon, 04 May 2020 22:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588658335; cv=none; d=google.com; s=arc-20160816; b=1Lfj58yjI/h9ugYHN8K4ki0M3ikpygWJnty+kxIHcTPGYI6P3QMtMO3SUvgsCm2S1e 77Gemx9uC8bQZzurTLOCBAky/MPyXaHtEr6QIMXcM9E7gk7Agh58t++q4HMksF54zK0p 8yRdKmtIAXqz6tY+MZmKLLz7zfqoBMTRLuDGZYFcxOmGUuwzqn/+gkCMWE5Th4TgjaZ/ NceF09s1n1ktHJRCMiwxUmge2tSSA8k+3vl7CTFEfklFN3fwnx5NlaO9mEF+kuGl9OcI E3/1dPrGh5wJaP0/MV0y7D+FUJ12U8sdeIj7u9MtWuunLl33DgSx00v68AqRncCA8qvg 9g/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=W+T2GYSBWrrZrMMSRIH7d+RjHw5C0I55cvkeSWAL0gE=; b=uS3BffyuJNSdbWhatciwDKn8j+wmTUU4szdfUqADEibsde9coA9mpPTgmNkSF9cnYR lUgCgvcSOKSSt0xUgxrkfSPD6ADQhc+3ctSZYNrwlmZNoqi2wW2jFvO1iaCtGU6cAer3 TpASQxhV7J0v7aA4HsJCZ+X70UNDn+yd4j8N8cvCo3LKlmvyeE7d1uxJIhNfdnCQUEwq qYyOm+453dbQjasaPxSj/6L+dlv5usdn/ZoL0CKfbi0uNS4Z1J7qGUYhwCpbdQ/ZwciE q2CK0nr64HCpflIdyAplJzgX/DnyZh+0Px8fD4+PvwdgGUXVDwvnxEAGDxwYNPTiMLJN wUPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p3si689526edi.38.2020.05.04.22.58.31; Mon, 04 May 2020 22:58:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727978AbgEEF5H (ORCPT + 99 others); Tue, 5 May 2020 01:57:07 -0400 Received: from verein.lst.de ([213.95.11.211]:33401 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725320AbgEEF5H (ORCPT ); Tue, 5 May 2020 01:57:07 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 430EE68BEB; Tue, 5 May 2020 07:57:04 +0200 (CEST) Date: Tue, 5 May 2020 07:57:04 +0200 From: Christoph Hellwig To: Kees Cook Cc: Christoph Hellwig , Iurii Zaikin , Alexei Starovoitov , Daniel Borkmann , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Andrey Ignatov Subject: Re: [PATCH 5/5] sysctl: pass kernel pointers to ->proc_handler Message-ID: <20200505055704.GA3552@lst.de> References: <20200424064338.538313-1-hch@lst.de> <20200424064338.538313-6-hch@lst.de> <202005041154.CC19F03@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202005041154.CC19F03@keescook> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 04, 2020 at 12:01:11PM -0700, Kees Cook wrote: > > if (error) > > - goto out; > > + goto out_free_buf; > > > > /* careful: calling conventions are nasty here */ > > Is this comment still valid after doing these cleanups? The comment is pretty old so I decided to keep it. That being said I'm not sure it really is very helpful.