* Re: [PATCH] drbd: Replace deprecated strcpy with strscpy
[not found] <20260112170412.741013-2-thorsten.blum@linux.dev>
@ 2026-02-19 14:32 ` Christoph Böhmwalder
2026-02-19 15:22 ` Jens Axboe
1 sibling, 0 replies; 2+ messages in thread
From: Christoph Böhmwalder @ 2026-02-19 14:32 UTC (permalink / raw)
To: Thorsten Blum, Philipp Reisner, Lars Ellenberg, Jens Axboe
Cc: linux-block, linux-kernel, drbd-dev
On 1/12/26 18:04, Thorsten Blum wrote:
> strcpy() has been deprecated [1] because it performs no bounds checking
> on the destination buffer, which can lead to buffer overflows. Replace
> it with the safer strscpy(). No functional changes.
>
> Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy [1]
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
> ---
> drivers/block/drbd/drbd_main.c | 14 +++++++++-----
> drivers/block/drbd/drbd_receiver.c | 4 ++--
> 2 files changed, 11 insertions(+), 7 deletions(-)
Looks good, thanks.
Reviewed-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] drbd: Replace deprecated strcpy with strscpy
[not found] <20260112170412.741013-2-thorsten.blum@linux.dev>
2026-02-19 14:32 ` [PATCH] drbd: Replace deprecated strcpy with strscpy Christoph Böhmwalder
@ 2026-02-19 15:22 ` Jens Axboe
1 sibling, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2026-02-19 15:22 UTC (permalink / raw)
To: Philipp Reisner, Lars Ellenberg, Christoph Böhmwalder,
Thorsten Blum
Cc: linux-block, linux-kernel, drbd-dev
On Mon, 12 Jan 2026 18:04:12 +0100, Thorsten Blum wrote:
> strcpy() has been deprecated [1] because it performs no bounds checking
> on the destination buffer, which can lead to buffer overflows. Replace
> it with the safer strscpy(). No functional changes.
>
>
Applied, thanks!
[1/1] drbd: Replace deprecated strcpy with strscpy
commit: 81b1f046ff8a5ad5da2c970cff354b61dfa1d6b1
Best regards,
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-02-19 15:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260112170412.741013-2-thorsten.blum@linux.dev>
2026-02-19 14:32 ` [PATCH] drbd: Replace deprecated strcpy with strscpy Christoph Böhmwalder
2026-02-19 15:22 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox