Linux cryptographic layer development
 help / color / mirror / Atom feed
* [PATCH v2 0/6] crypto: use 2-arg strscpy where destination size is known
@ 2026-06-05 23:10 Thorsten Blum
  2026-06-05 23:10 ` [PATCH v2 1/6] " Thorsten Blum
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Thorsten Blum @ 2026-06-05 23:10 UTC (permalink / raw)
  To: Herbert Xu, David S. Miller, Tom Lendacky, John Allen, Weili Qian,
	Zhou Wang, Giovanni Cabiddu, Srujana Challa, Bharat Bhushan
  Cc: linux-crypto, linux-kernel, qat-linux, Thorsten Blum

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@linux.dev/

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-06-05 23:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-05 23:10 [PATCH v2 0/6] crypto: use 2-arg strscpy where destination size is known Thorsten Blum
2026-06-05 23:10 ` [PATCH v2 1/6] " Thorsten Blum
2026-06-05 23:10 ` [PATCH v2 2/6] crypto: cavium - " Thorsten Blum
2026-06-05 23:11 ` [PATCH v2 3/6] crypto: ccp " Thorsten Blum
2026-06-05 23:11 ` [PATCH v2 4/6] crypto: hisilicon " Thorsten Blum
2026-06-05 23:11 ` [PATCH v2 5/6] crypto: qat " Thorsten Blum
2026-06-05 23:11 ` [PATCH v2 6/6] crypto: octeontx " Thorsten Blum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox