[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <169601624548.3016093.1290854393358505827.b4-ty@chromium.org>
Date: Fri, 29 Sep 2023 12:37:26 -0700
From: Kees Cook <keescook@...omium.org>
To: Karsten Keil <isdn@...ux-pingi.de>,
Justin Stitt <justinstitt@...gle.com>
Cc: Kees Cook <keescook@...omium.org>,
netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH] isdn: replace deprecated strncpy with strscpy
On Fri, 22 Sep 2023 11:58:06 +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.
>
> We expect `iclock->name` to be NUL-terminated based on its use within
> printk:
> | printk(KERN_DEBUG "%s: %s %d\n", __func__, iclock->name,
> | iclock->pri);
>
> [...]
Applied to for-next/hardening, thanks!
[1/1] isdn: replace deprecated strncpy with strscpy
https://git.kernel.org/kees/c/a9b065a6751b
Take care,
--
Kees Cook
Powered by blists - more mailing lists