On Mon, 25 Sep 2023 06:13:12 +0000, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous string > interfaces. > > It seems `cmd->policy_name` is intended to be NUL-terminated based on a > now changed line of code from Commit (c6b4fcbad044e6ff "dm: add cache > target"): > | if (strcmp(cmd->policy_name, policy_name)) { // ... > > [...] Applied to for-next/hardening, thanks! [1/1] dm cache metadata: replace deprecated strncpy with strscpy https://git.kernel.org/kees/c/5d9bc443188f Take care, -- Kees Cook