Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1271288ima; Wed, 24 Oct 2018 18:11:52 -0700 (PDT) X-Google-Smtp-Source: AJdET5e1lxRfg5Wq6eS6sBaKyd2HSYPs3f6Ue/FStPDP8XQRE3HJC+D2Cgn5hxo9fl8sSoMTX3EF X-Received: by 2002:a63:50b:: with SMTP id 11mr4531726pgf.411.1540429912377; Wed, 24 Oct 2018 18:11:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540429912; cv=none; d=google.com; s=arc-20160816; b=Cn8VkYaA/tmVQqGbChUJHY2pxPYa3/1QW68hUuxIPgt03LfEQMW498SGOLSZsSedmH fSjUl6097m2tf1LZFKSruwA5oLSLrLpPD7OOcP8UyCUIVZ89qU/ytDOI0NlpBK91OyIt pQ/n5A6kjqoYy4qoxgaS/XvhYTl6rRhdtZ7FrVmQmaQyE05g87muZimBDFblm04A98eJ ra+A9sXV5lK7peF5mMLUs7XOR9WbuGzGUOKuJys6a0bPZdy3QpWX0KNhWIDt9xNWkDJT 4wL87M2QTaNdfu/Ie3/bAT2wYkIYgykH4OopWSnnls8S2zsVVEvNWGYwDdKXDweNe86z gR3A== 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=ArpRl3gZBRK+bMVDlTI0O1232O/qv3zzn8dqUVGbyFs=; b=lfGHhag3+Q9hOXu97tMe17EVyT1v2XKcGARKtMxRcjLp7skjGQ5IckAPhRu/vm43Sw tFMkz2I4u4rCPJ89gIsKBzgSsMk1YNZ4fVKSRFoDEyePlHkqeUL72WgngNZVtQubVnKY tDWz6usZ2PM5yUd2rGHw4zw/d1mzYZNLNaL+tQDxROt1PO3t0x3d7VUCCfmVdBEjOaIn c9SCIEs+zZ81l8E364QHIa/LmM/REm9RxDoK/QZ+qnuegx19YRUneOyxayUaBnXRSJ6V 08D7or5TEOI9U+4KssyA0vxc8pMnv21Uu7+TJliRwoV33/7sv0KY5tI6BTKJFtTC7G0m bENw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25-v6si1375321pgd.357.2018.10.24.18.11.36; Wed, 24 Oct 2018 18:11:52 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727147AbeJYJlk (ORCPT + 99 others); Thu, 25 Oct 2018 05:41:40 -0400 Received: from mga02.intel.com ([134.134.136.20]:31643 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726365AbeJYJlk (ORCPT ); Thu, 25 Oct 2018 05:41:40 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Oct 2018 18:11:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,422,1534834800"; d="scan'208";a="94801520" Received: from rwang-mobl4.amr.corp.intel.com (HELO wfg-t570.sh.intel.com) ([10.254.211.80]) by orsmga003.jf.intel.com with ESMTP; 24 Oct 2018 18:11:11 -0700 Received: from wfg by wfg-t570.sh.intel.com with local (Exim 4.89) (envelope-from ) id 1gFUB5-0002xg-Jg; Thu, 25 Oct 2018 09:11:11 +0800 Date: Thu, 25 Oct 2018 09:11:11 +0800 From: Fengguang Wu To: Joe Perches Cc: Willy Tarreau , David Miller , wanghaifine@gmail.com, netdev@vger.kernel.org, LKML , LKP , Philip Li Subject: Re: [PATCH] Change judgment len position Message-ID: <20181025011111.bhbstq5wtrwk26b5@wfg-t540p.sh.intel.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <49ec92564284b5beb0a151bce1d537b51340d0a8.camel@perches.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CC Philip and LKP team. On Wed, Oct 24, 2018 at 04:46:18PM -0700, Joe Perches wrote: >(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. 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 Thanks, Fengguang