[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202310241434.54EF4068@keescook>
Date: Tue, 24 Oct 2023 14:35:04 -0700
From: Kees Cook <keescook@...omium.org>
To: Mike Snitzer <snitzer@...nel.org>
Cc: Alasdair Kergon <agk@...hat.com>, dm-devel@...ts.linux.dev,
Justin Stitt <justinstitt@...gle.com>,
linux-hardening@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: dm crypt: replace open-coded kmemdup_nul
On Tue, Oct 24, 2023 at 05:33:12PM -0400, Mike Snitzer wrote:
> On Tue, Oct 24 2023 at 5:18P -0400,
> Kees Cook <keescook@...omium.org> wrote:
>
> > On Mon, 25 Sep 2023 06:35:54 +0000, Justin Stitt wrote:
> > > kzalloc() followed by strncpy() on an expected NUL-terminated string is
> > > just kmemdup_nul(). Let's simplify this code (while also dropping a
> > > deprecated strncpy() call [1]).
> > >
> > >
> >
> > Applied to for-next/hardening, thanks!
> >
> > [1/1] dm crypt: replace open-coded kmemdup_nul
> > https://git.kernel.org/kees/c/17348b0a6a6d
> >
> > Take care,
> >
> > --
> > Kees Cook
> >
>
> I had picked up this patch and the 3 others in my local tree
> yesterday, was going to push shortly... do you still want them to go
> through your hardening tree?
Oh! Great; thank you! I'll drop them from my tree. :)
-Kees
--
Kees Cook
Powered by blists - more mailing lists