Re: [PATCH] dm crypt: replace open-coded kmemdup_nul

2023-10-24 Thread Kees Cook
On Mon, 25 Sep 2023 06:35:54 +, 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: re

Re: [PATCH] dm crypt: replace open-coded kmemdup_nul

2023-09-25 Thread Kees Cook
On Mon, Sep 25, 2023 at 06:35:54AM +, 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]). > > Link: > https://www.kernel.org/doc/html/latest/proces