[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <169818232967.2100071.14037828991402814804.b4-ty@chromium.org>
Date: Tue, 24 Oct 2023 14:18:53 -0700
From: Kees Cook <keescook@...omium.org>
To: Jean Delvare <jdelvare@...e.com>,
Guenter Roeck <linux@...ck-us.net>,
Justin Stitt <justinstitt@...gle.com>
Cc: Kees Cook <keescook@...omium.org>, linux-hwmon@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org
Subject: Re: [PATCH v5] hwmon: (acpi_power_meter) replace open-coded kmemdup_nul
On Tue, 26 Sep 2023 06:59:15 +0000, Justin Stitt wrote:
> `strncpy` is deprecated for use on NUL-terminated destination strings [1].
>
> Let's refactor this kcalloc() + strncpy() into a kmemdup_nul() which has
> more obvious behavior and is less error prone.
>
>
Applied to for-next/hardening, thanks!
[1/1] hwmon: (acpi_power_meter) replace open-coded kmemdup_nul
https://git.kernel.org/kees/c/9cca73d7b4bf
Take care,
--
Kees Cook
Powered by blists - more mailing lists