Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1031904imm; Fri, 5 Oct 2018 16:52:02 -0700 (PDT) X-Google-Smtp-Source: ACcGV63gUVzf4aaRoF92IqpZEs1BzHMulXuQ++caIu0GV6wC9/IRMOnfXYBGuuhf37FiHt1kDrtP X-Received: by 2002:a63:5816:: with SMTP id m22-v6mr11964304pgb.332.1538783522184; Fri, 05 Oct 2018 16:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538783522; cv=none; d=google.com; s=arc-20160816; b=aHWTb0R/+566ypAicVIU8CrRVK3C7+fCwkqIrh4B02bLWy/LsajiRMe1oHb3GPiGF5 G2AMUMBz7HkOF8iDb+vQwFGVhMRHoGZZC/pYD9g5LWch9LF5RqBQAJc55J6WASSlW08B D2/wUr9J39oawjqnbx0ERQRG+GZFiRm9CUDtef3VB0pr/kWRTia+w/HEGGyZMsXpHIYL gXvSeBbdmPXNu8oMSScLTvH1jZUwTWdswy9v8K4LrKTg+UIED/lsWMIfdrgHu0tsYjZN N+ne68SE8QhXhEhd4EQNUL0rUYnBCBqw4YBpl5cKEqO779KJ/zVB6ilPB0zekPqI9j3/ eLNg== 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=wuD+NWfcycr/l4lNsOMCzQ6C6mw21eoA4DiDAW0hlCg=; b=AJ/8WkgzfsoUfPs2YMF6BpaNavPUxmHxwisy6ZaWyUCkzHxooC5LkAGeX6cYeexJhf 7mINNpczEg+Qa0jT71RgUgxtshs33CUzknPHrCcTNF+xY69Oyb1qe3KSLfJyu79K0t6O eZ94IdJaAgk5OhKu3jr/1D3V5o4GCxcxxa7rQDqi3e3AeflwlTaHdNKhQPY/N8TCjCeS Wnmga5is/2nlG5HW0UoR7KB1MrbdWYt5G+ORZA6ljNxXfRnTUVxY+zM9mHkRrnCTRR2U rcEVNUUx5HBJ3ubuziKEnqGdtREGPrnaORpmG2iF9BaPn3E02+eWfKl52/HFM62AAZ7G /n2Q== 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 w3-v6si9269591pgl.159.2018.10.05.16.51.45; Fri, 05 Oct 2018 16:52:02 -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 S1729377AbeJFGwl (ORCPT + 99 others); Sat, 6 Oct 2018 02:52:41 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59160 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726737AbeJFGwl (ORCPT ); Sat, 6 Oct 2018 02:52:41 -0400 Received: from localhost (unknown [104.153.224.168]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id F03B0681A; Fri, 5 Oct 2018 23:51:38 +0000 (UTC) Date: Fri, 5 Oct 2018 16:51:31 -0700 From: Greg KH To: Kees Cook Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH v4.19-rc7] treewide: Replace more open-coded allocation size multiplications Message-ID: <20181005235131.GA27193@kroah.com> References: <20181005233559.GA37919@beast> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181005233559.GA37919@beast> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 05, 2018 at 04:35:59PM -0700, Kees Cook wrote: > As done treewide earlier, this catches several more open-coded > allocation size calculations that were added to the kernel during the > merge window. This performs the following mechanical transformations > using Coccinelle: > > kvmalloc(a * b, ...) -> kvmalloc_array(a, b, ...) > kvzalloc(a * b, ...) -> kvcalloc(a, b, ...) > devm_kzalloc(..., a * b, ...) -> devm_kcalloc(..., a, b, ...) > > Signed-off-by: Kees Cook Has this had any testing in linux-next? And when was "earlier"? thanks, greg k-h