Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2086094imm; Sat, 6 Oct 2018 18:29:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV61kGsAYDYVcdrKv/HfO3pbD2T+gcgFkZcWaFGXZ5WR/Ipl7EZxrzoKVL4XQVSdKGLg72rhN X-Received: by 2002:a63:584f:: with SMTP id i15-v6mr16026793pgm.178.1538875777386; Sat, 06 Oct 2018 18:29:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538875777; cv=none; d=google.com; s=arc-20160816; b=wrMfxRgUi3YWfIFp63LV9pb36/CT3JqfYU7WIUlxV6+zbbBVIV+s/5Dkc6OGIZPdgN DfbijF5uxqj7KZQRkvqWuuD7qTjPGmcsS+EZ6X5i2688+9BtuwL26eLxk6CRKvH+gVTc s0EKym/qqTTz0fBUahfVSZRnIjEUycvM7CI25Y9QKovralTABHkxjR9yiiMS6rA+1HbR t4G2Wv88EEY1E5venTiCZ/SaDPUkj146HceAobsw1Orbiks2tjUt8lMVWfTkX4anWrqO VuGbPH8qhbWK5AXsGYkvm1upYe0uaRirHOveQrs30I4cKbwUopExZFjC3rQFaQQV3QPo EjuA== 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=2PywcEA9IdcKDbFDNPCQZDOi7JwM1b+7UDh4JEwnz8c=; b=OuagW/ehCiO+d81f3fRb1n/9GHdb/SHf0+lujouqsYBON8ApslDjFE2zDznUIdokbs sm2wZeZaRyChBwx5muzEqE5YaoszxccNWSQbPrRLBcPUy5CcJDFP0+30vBECEa/rhXHp AJ6vafgOy83mOlpF14z5teNCMDPoDKPDwg5tqdgfRLLaWyJrQwEithpt25mkwrSUuE3n FQa+t2IwFqvPiD1gISi9UcemWqOpz30F7s74DxkTn1PDpASLM5u0n9gjGLVIyjT9WV+9 igaOi0YLNf0ft9USebs1WAp5yg0Tplq2YSDb7ZKh/Pf8t4BHZ/KBu2p1ZyavP3JIXx9d JMMA== 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 x186-v6si14293323pfx.19.2018.10.06.18.28.51; Sat, 06 Oct 2018 18:29:37 -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 S1726291AbeJGIdj (ORCPT + 99 others); Sun, 7 Oct 2018 04:33:39 -0400 Received: from mga09.intel.com ([134.134.136.24]:9922 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725877AbeJGIdi (ORCPT ); Sun, 7 Oct 2018 04:33:38 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Oct 2018 18:28:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,350,1534834800"; d="scan'208";a="86320273" Received: from lensonx-mobl3.ccr.corp.intel.com (HELO wfg-t570.sh.intel.com) ([10.254.208.115]) by FMSMGA003.fm.intel.com with ESMTP; 06 Oct 2018 18:27:40 -0700 Received: from wfg by wfg-t570.sh.intel.com with local (Exim 4.89) (envelope-from ) id 1g8xrA-0000xl-2d; Sun, 07 Oct 2018 09:27:40 +0800 Date: Sun, 7 Oct 2018 09:27:40 +0800 From: Fengguang Wu To: Kees Cook Cc: Joel Fernandes , Greg KH , LKML , LKP Subject: Re: [PATCH v4.19-rc7] treewide: Replace more open-coded allocation size multiplications Message-ID: <20181007012740.uv6tujq7ii5iaczc@wfg-t540p.sh.intel.com> References: <20181005233559.GA37919@beast> <20181005235131.GA27193@kroah.com> <20181006002235.GA18415@kroah.com> <20181006031434.GA224454@joelaf.mtv.corp.google.com> <20181006084922.xq5bxpghyvbq4tao@wfg-t540p.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: 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 On Sat, Oct 06, 2018 at 08:51:16AM -0700, Kees Cook wrote: >On Sat, Oct 6, 2018 at 1:49 AM, Fengguang Wu wrote: >> On Fri, Oct 05, 2018 at 08:14:34PM -0700, Joel Fernandes wrote: >>> >>> On Fri, Oct 05, 2018 at 05:22:35PM -0700, Greg KH wrote: >>>> And do we have a way to add a rule to 0-day to catch these so that they >>>> get a warning when they are added again? >>> >>> >>> They could just be added to scripts/coccinelle and 0-day will report them? >>> >>> For example, 0-day ran scripts/coccinelle/api/platform_no_drv_owner.cocci >>> on >>> a recently submitted patch and reported it here: >>> >>> https://lore.kernel.org/lkml/201808301856.vMNJerSs%25fengguang.wu@intel.com/ >>> >>> But I'm not sure if 0-day runs make coccicheck on specific semantic >>> patches, >>> or runs all of them (CC'd Fengguang). >> >> 0-day runs all coccinelle scripts. However only auto report out >> warnings that are known to have low false positives. >> >> So if you add new coccinelle scripts that emit accurate enough >> warnings, it'd be good to inform the LKP team to add the new >> warnings to our auto-report-out white list. > >It runs with MODE=report by default, yes? I'd need to expand the cases >to cover that (it is patch-only currently) so that would be a roughly >10,000 line Coccinelle script. :) It first runs with "-D report", then with "-D patch" to create possible patches. Thanks, Fengguang