Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1320896ima; Wed, 24 Oct 2018 19:21:18 -0700 (PDT) X-Google-Smtp-Source: AJdET5eSJ0S1Wz9HEHGm01mGfNPL+JMr4+E0sIAnmzM532x+mvinSyDVuuvqo+AjKlhwR9h1PcAj X-Received: by 2002:a17:902:8d88:: with SMTP id v8-v6mr4741593plo.21.1540434078720; Wed, 24 Oct 2018 19:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540434078; cv=none; d=google.com; s=arc-20160816; b=H+uhSM7yBCKsDNo4qjys97Nmu/wwqylbF7G8Mjw+RjmywopQ8Nu+DY0zf0Ik37fZwW 4YF9f40Hb4pASuBU9mI7WgY3step+kjOZq4oeSLNYFdasPm1n08mZdfo0/gjSM8ZmnUi dJCL07zEv+XsaZ6mU5Q4xdCqqfGVs4XWvsYzOcSQk53RpRSyRK9YE5GDXQWIn0EArR35 iWiwVE7BnR49kmzYuo+Iwj0/3/BBBto5hgyQOkcEu5W4p5VvtlsMQf5kAz1S9kMRL1cc 1gdDR0IupFL+2wvqq3o/4cM+4dPk1w4qVphdqZi+PDEXCfMb0mhw4AmfdbL8Pp4bvj5g pIcQ== 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/FXvNz3nTiswTzTlWTNlkfIyugzyIGWGiODB9g0LP4=; b=jn17M5sKCHTV1GAkFE+2h5s+9DWwe+uDP5rTbhBdRqnHkxsp1seOzEUobfYG/LjPFA LZS+9EPJ4Myb7jMbUXF20BTF2QWNY3OmobYl8W5vs2c6VORPlfhR+1AT3bfNcYulrH35 Pj8914vuaMMLUN9CDXxlON4IRFUOHmRvvZJYeGPGSxidq57v9v8Z6W9bW9G5qJW6/Sj1 UF0meqVdi6BWNaAd3D2x80dgzyRnr4ilxHnt9uUADoiOmztKBlkaMdqbu3RB8+w7UHSY HF4maNx9Ab0NPq7qWWWtSrQUr1fusyTmSnQQumJuoeDjRC8IvI2nx6G1pHpI5YwYCNjq pIWQ== 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 r3-v6si6637954pga.321.2018.10.24.19.21.02; Wed, 24 Oct 2018 19:21:18 -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 S1727284AbeJYKvR (ORCPT + 99 others); Thu, 25 Oct 2018 06:51:17 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:37700 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbeJYKvR (ORCPT ); Thu, 25 Oct 2018 06:51:17 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gFVG7-0000YM-VH; Thu, 25 Oct 2018 02:20:28 +0000 Date: Thu, 25 Oct 2018 03:20:27 +0100 From: Al Viro To: Joe Perches Cc: Fengguang Wu , Willy Tarreau , David Miller , wanghaifine@gmail.com, netdev@vger.kernel.org, LKML , LKP , Philip Li Subject: Re: [PATCH] Change judgment len position Message-ID: <20181025022027.GG32577@ZenIV.linux.org.uk> References: <20181024154729.5312-1-wanghaifine@gmail.com> <20181024.101028.1211941922121897721.davem@davemloft.net> <61d94f2a5563db4d6580c8385c3b93c8eeb3669a.camel@perches.com> <20181024204852.GA25509@1wt.eu> <49ec92564284b5beb0a151bce1d537b51340d0a8.camel@perches.com> <20181025011111.bhbstq5wtrwk26b5@wfg-t540p.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 24, 2018 at 06:16:31PM -0700, Joe Perches wrote: > On Thu, 2018-10-25 at 09:11 +0800, Fengguang Wu wrote: > > CC Philip and LKP team. > > > Please try to make your first patch in drivers/staging > > > to get familiar with submitting patches to the kernel. > > > https://kernelnewbies.org/FirstKernelPatch > > > > > > Maybe there's utility in creating a filtering and auto-reply > > > tool for first time patch submitters for all the vger mailing > > > lists using some combination of previously known submitters > > > and the 0-day robot to point those first time submitters of > > > defective patches to kernelnewbies and staging. > > > > Yeah good idea. That feature can be broken into 2 parts: > > > > - an email script, which could be added to Linux scripts/ dir > > - maintain records for telling whether someone is first-time patch submitters > > Maybe run checkpatch on those first-time submitter patches too. OK, now I'm certain that you are trolling... Joe, what really pisses me off is that it's actually at the expense of original poster (who had nothing to do with the CoCup) *and* an invitation for a certain variety of kooks. In probably vain hope of heading that off, here's the summary of what happened _before_ Joe started to stir the shit: * code in question is, indeed, (slightly) bogus in mainline. It reads as "reject negative values for length, truncate positive ones to 4", but in reality it's "treat everything outside of 0..4 as 4". It's not broken per se, but it's certainly misleading. * one possible fix would be to drop the "reject negative values" completely, another - to move checking for negatives before the truncation. Patch tried to do the latter. * the author of the patch has moved the check *too* early - before the value being tested is even obtained. It's obviously wrong - kernel newbie or not. * I sincerely doubt that it was an attempt to introduce a backdoor, albeit one would've been created if that patch went in as-is. Genuine braino is much more likely, and we'd all done such. * such brainos can be surprisingly hard to spot in one's code. It's too obviously wrong, in a sense - you know what you've meant to write and you keep seeing that instead of what you've actually written. If you are really unlucky, that might end up with a few days worth of debugging, with eventual embarrassed "how the fuck have I managed not to notice that previous twenty times I went over this function today?" Been there, done that, and so has everyone who'd actually written anything (other than the worthless screeds, that is). * one thing the author of that patch could be blamed for (and most of us have fucked up that way at one point or another) is not testing the effect of the damn thing. Modification is local, the change of behaviour - simple and triggering that code is also trivial. Checking that the patch has done what you expect it to do would be simple and would've caught the problem. ` Code of Conduct is garbage, but neither Dave nor the author of this patch had anything to do with that mess. If you want to make a point, do so without shit splatter hitting innocent bystanders - people tend to get very annoyed by that kind of thing, and with a damn good reason. Sheesh...