Re: [PATCH v2 0/6] crypto: use 2-arg strscpy where destination size is known

From: Herbert Xu

Date: Sun Jul 05 2026 - 01:32:10 EST


On Sat, Jun 06, 2026 at 01:10:57AM +0200, Thorsten Blum wrote:
> To simplify the code, drop explicit and hard-coded size arguments from
> strscpy() where the destination buffer has a fixed size and strscpy()
> can automatically determine it using sizeof().
>
> Changes in v2:
> - Rebase and split up
> - v1: https://lore.kernel.org/r/20260525103038.825690-4-thorsten.blum@xxxxxxxxx/
>
> Thorsten Blum (6):
> crypto: use 2-arg strscpy where destination size is known
> crypto: cavium - use 2-arg strscpy where destination size is known
> crypto: ccp - use 2-arg strscpy where destination size is known
> crypto: hisilicon - use 2-arg strscpy where destination size is known
> crypto: qat - use 2-arg strscpy where destination size is known
> crypto: octeontx - use 2-arg strscpy where destination size is known
>
> crypto/api.c | 2 +-
> crypto/crypto_user.c | 9 ++++-----
> crypto/hctr2.c | 3 +--
> crypto/lrw.c | 2 +-
> crypto/lskcipher.c | 3 +--
> crypto/xts.c | 3 ++-
> drivers/crypto/cavium/nitrox/nitrox_hal.c | 3 ++-
> drivers/crypto/ccp/ccp-crypto-sha.c | 2 +-
> drivers/crypto/hisilicon/qm.c | 5 +----
> drivers/crypto/intel/qat/qat_common/adf_cfg.c | 7 ++++---
> drivers/crypto/intel/qat/qat_common/adf_cfg_services.c | 2 +-
> drivers/crypto/intel/qat/qat_common/adf_mstate_mgr.c | 3 ++-
> .../crypto/intel/qat/qat_common/adf_transport_debug.c | 3 ++-
> drivers/crypto/intel/qat/qat_common/qat_compression.c | 3 ++-
> drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c | 4 ++--
> drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c | 4 ++--
> 16 files changed, 29 insertions(+), 29 deletions(-)
>
>
> base-commit: 5624ea54f3ba5c83d2e5503411a31a8be0278c1e

All applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt