public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Kees Cook <keescook@chromium.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4.19-rc7] treewide: Replace more open-coded allocation size multiplications
Date: Fri, 5 Oct 2018 16:51:31 -0700	[thread overview]
Message-ID: <20181005235131.GA27193@kroah.com> (raw)
In-Reply-To: <20181005233559.GA37919@beast>

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 <keescook@chromium.org>

Has this had any testing in linux-next?

And when was "earlier"?

thanks,

greg k-h

  reply	other threads:[~2018-10-05 23:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-05 23:35 [PATCH v4.19-rc7] treewide: Replace more open-coded allocation size multiplications Kees Cook
2018-10-05 23:51 ` Greg KH [this message]
2018-10-06  0:04   ` Kees Cook
2018-10-06  0:22     ` Greg KH
2018-10-06  3:14       ` Joel Fernandes
2018-10-06  8:49         ` Fengguang Wu
2018-10-06 15:51           ` Kees Cook
2018-10-07  1:27             ` Fengguang Wu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181005235131.GA27193@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox