Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1209789ima; Wed, 24 Oct 2018 16:47:45 -0700 (PDT) X-Google-Smtp-Source: AJdET5cDoQwXqJc+MxusP3iUDfRMZ2qTdpofuJe8+q0TiHrek1l6ZyY2qFP/2DSOz2R4752bpRZP X-Received: by 2002:a63:314c:: with SMTP id x73mr4457050pgx.323.1540424865636; Wed, 24 Oct 2018 16:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540424865; cv=none; d=google.com; s=arc-20160816; b=IRPx5ch4Xl53JNoIxMpgUKL65NSusyyCYuDEdzZqMgPAV5DELVZJz1QKYkzuWEXgXV Bxop9lkmBPWxT+L4rNC42zT/2JER2t9X6G5CJgs9y3vCvvkNBhOQ58yvRf/JUTDXyRHw v4LrR/+ll6wrrY0LnI53vI1SPmikFU15nQxBPALzuGUqWjqluLnGzrqFURZBuTwadytP p/juKWyKD0bZQx3hxt5x+m9Rr5jXuUVVyYX8FZVPoTWS0vVVLIBOjm/d2Yn987wUofYC OCcjy7zXGDwho7+LTh3a0wFmNpUYyDSFkJM5o1z7vWZk9GCvngUtBMIXXbgaBzdGnTFv HQow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=uNfLAlgRPGffR2FGksyYOhZcKY+KSkXWXWycKNHyLUw=; b=cHpvljtMP7wBvT9nBR2VNtD4BlwE+ab97rrGftnT4AjmVkaL9Pk5WdGmAOGfUv73Lv +5OIwrAeWPvtd+xqDno36FfgqpSyB8rB+mNjEv63xOrBmYL0aqyioey+1C43PoQDBo/K iuIw6Qa3S/IIsoraT9+Anfl6DHZkj6/AHEYUiCS2+/J6vKIe+gqgjQB+OcTIxO1JWto/ DyIPsW0AOX32KL1YFnvaBoRr1v8xjaokbKPqErN7t9gVxWnPfw/iiS69Dr9NeZ5H+HeX KNn2GArbRv3RyGB+lK+5BU6r9DVcGPze4GO7EP4c0h+REoL0PzBsdbW2TATREdx0POyB 32Uw== 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 q13-v6si1313932pgm.239.2018.10.24.16.47.30; Wed, 24 Oct 2018 16:47:45 -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 S1726804AbeJYIQ3 (ORCPT + 99 others); Thu, 25 Oct 2018 04:16:29 -0400 Received: from smtprelay0165.hostedemail.com ([216.40.44.165]:43793 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726236AbeJYIQ3 (ORCPT ); Thu, 25 Oct 2018 04:16:29 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 25B706D95; Wed, 24 Oct 2018 23:46:21 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:599:967:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2110:2393:2525:2559:2563:2682:2685:2693:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3353:3865:3866:3867:3868:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:6119:6248:7903:7974:8660:8957:8985:9025:9707:10004:10400:10848:11232:11658:11854:11914:12043:12050:12740:12760:12895:13069:13095:13148:13172:13229:13230:13311:13357:13439:14096:14097:14659:14721:14777:21080:21433:21451:21627:21740:30012:30054:30070:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: can63_7177fc23fc320 X-Filterd-Recvd-Size: 2768 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf19.hostedemail.com (Postfix) with ESMTPA; Wed, 24 Oct 2018 23:46:19 +0000 (UTC) Message-ID: <49ec92564284b5beb0a151bce1d537b51340d0a8.camel@perches.com> Subject: Re: [PATCH] Change judgment len position From: Joe Perches To: Willy Tarreau Cc: David Miller , wanghaifine@gmail.com, netdev@vger.kernel.org, LKML , Fengguang Wu , lkp Date: Wed, 24 Oct 2018 16:46:18 -0700 In-Reply-To: <20181024204852.GA25509@1wt.eu> References: <20181024154729.5312-1-wanghaifine@gmail.com> <20181024.101028.1211941922121897721.davem@davemloft.net> <61d94f2a5563db4d6580c8385c3b93c8eeb3669a.camel@perches.com> <20181024204852.GA25509@1wt.eu> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (adding Fengguang Wu and lkp) On Wed, 2018-10-24 at 22:48 +0200, Willy Tarreau wrote: > When you read this patch from an apparent first-time contributor (no > trace in either LKML, netdev or even google), the level of assurance > in the commit message is pretty good, showing that he's not at all a > beginner, which doesn't match at all the type of error seen in the > code, which doesn't even need to be compiled to see that it will emit > a warning and not work as advertised. Which to me is more of an indication of beginner-ness. > When you factor in the fact that the code opens a big but very discrete > vulnerability, I tend to think that in fact we're not facing a newbie > at all but someone deliberately trying to inject a subtle backdoor into > the kernel and disguise it as a vague bug fix, That seems unlikely as it introduces a compilation warning. A real intentional backdoor from a nefarious source would likely be completely correct about compilation and use the typical commit subject style. Anyway, who know for certain right now. I would have suggested David reply with only his second sentence and maybe a pointer to kernelnewbies or staging. Just something like: nack: 'len' has no value before the get_user() call. 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. cheers, Joe