Skip to content

crypto: use 2-arg strscpy where destination size is known

Thorsten Blum linux-crypto lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 1 replyIn review
  2. v11 patch 7 repliesSuperseded

Changes in v2 from the cover letter

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6crypto: use 2-arg strscpy where destination size is knowncrypto/api.c crypto/crypto_user.c crypto/hctr2.c +3 more+10 -120 replies
2/6crypto: cavium - use 2-arg strscpy where destination size is knowndrivers/crypto/cavium/nitrox/nitrox_hal.c+2 -10 replies
3/6crypto: ccp - use 2-arg strscpy where destination size is knowndrivers/crypto/ccp/ccp-crypto-sha.c+1 -10 replies
4/6crypto: hisilicon - use 2-arg strscpy where destination size is knowndrivers/crypto/hisilicon/qm.c+1 -40 replies
5/6crypto: qat - use 2-arg strscpy where destination size is knowndrivers/crypto/intel/qat/qat_common/adf_cfg.c drivers/crypto/intel/qat/qat_common/adf_cfg_services.c drivers/crypto/intel/qat/qat_common/adf_mstate_mgr.c +2 more+11 -70 replies
6/6crypto: octeontx - use 2-arg strscpy where destination size is knowndrivers/crypto/marvell/octeontx/otx_cptpf_ucode.c drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c+4 -40 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchTom LendackyLongfang LiuGiovanni Cabiddu
1/6
2/6
3/6R-b
4/6R-b
5/6A-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

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

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/[email protected]/

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