netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/7] scsi: replace deprecated strncpy
@ 2024-03-05 23:34 Justin Stitt
  2024-03-05 23:34 ` [PATCH v3 1/7] scsi: mpi3mr: replace deprecated strncpy with assignments Justin Stitt
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Justin Stitt @ 2024-03-05 23:34 UTC (permalink / raw)
  To: Sathya Prakash Veerichetty, Kashyap Desai, Sumit Saxena,
	Sreekanth Reddy, James E.J. Bottomley, Martin K. Petersen,
	Suganath Prabu Subramani, Ariel Elior, Manish Chopra,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Saurav Kashyap, Javed Hasan, GR-QLogic-Storage-Upstream,
	Nilesh Javali, Manish Rangankar, Don Brace
  Cc: mpi3mr-linuxdrv.pdl, linux-scsi, linux-hardening, linux-kernel,
	Kees Cook, MPT-FusionLinux.pdl, netdev, storagedev, Justin Stitt

This series contains multiple replacements of strncpy throughout the
scsi subsystem.

strncpy() is deprecated for use on NUL-terminated destination strings
[1] and as such we should prefer more robust and less ambiguous string
interfaces. The details of each replacement will be in their respective
patch.

---
Changes in v3:
- update trailers (thanks Kees)
- Link to v2: https://lore.kernel.org/r/20240228-strncpy-drivers-scsi-mpi3mr-mpi3mr_fw-c-v2-0-dacebd3fcfa0@google.com

Changes in v2:
- for (1/7): change strscpy to simple const char* assignments
- Link to v1: https://lore.kernel.org/r/20240223-strncpy-drivers-scsi-mpi3mr-mpi3mr_fw-c-v1-0-9cd3882f0700@google.com

---
Justin Stitt (7):
      scsi: mpi3mr: replace deprecated strncpy with assignments
      scsi: mpt3sas: replace deprecated strncpy with strscpy
      scsi: qedf: replace deprecated strncpy with strscpy
      scsi: qla4xxx: replace deprecated strncpy with strscpy
      scsi: devinfo: replace strncpy and manual pad
      scsi: smartpqi: replace deprecated strncpy with strscpy
      scsi: wd33c93: replace deprecated strncpy with strscpy

 drivers/net/ethernet/qlogic/qed/qed_main.c |  2 +-
 drivers/scsi/mpi3mr/mpi3mr_fw.c            | 10 +++++-----
 drivers/scsi/mpt3sas/mpt3sas_base.c        |  2 +-
 drivers/scsi/mpt3sas/mpt3sas_transport.c   | 18 +++++++++---------
 drivers/scsi/qedf/qedf_main.c              |  2 +-
 drivers/scsi/qla4xxx/ql4_mbx.c             | 17 ++++++++++++-----
 drivers/scsi/qla4xxx/ql4_os.c              | 14 +++++++-------
 drivers/scsi/scsi_devinfo.c                | 18 ++++++++++--------
 drivers/scsi/smartpqi/smartpqi_init.c      |  5 ++---
 drivers/scsi/wd33c93.c                     |  4 +---
 10 files changed, 49 insertions(+), 43 deletions(-)
---
base-commit: 39133352cbed6626956d38ed72012f49b0421e7b
change-id: 20240222-strncpy-drivers-scsi-mpi3mr-mpi3mr_fw-c-1b130d51bdcc

Best regards,
--
Justin Stitt <justinstitt@google.com>


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

end of thread, other threads:[~2024-03-10 22:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-05 23:34 [PATCH v3 0/7] scsi: replace deprecated strncpy Justin Stitt
2024-03-05 23:34 ` [PATCH v3 1/7] scsi: mpi3mr: replace deprecated strncpy with assignments Justin Stitt
2024-03-05 23:34 ` [PATCH v3 2/7] scsi: mpt3sas: replace deprecated strncpy with strscpy Justin Stitt
2024-03-05 23:34 ` [PATCH v3 3/7] scsi: qedf: " Justin Stitt
2024-03-05 23:34 ` [PATCH v3 4/7] scsi: qla4xxx: " Justin Stitt
2024-03-05 23:34 ` [PATCH v3 5/7] scsi: devinfo: replace strncpy and manual pad Justin Stitt
2024-03-05 23:34 ` [PATCH v3 6/7] scsi: smartpqi: replace deprecated strncpy with strscpy Justin Stitt
2024-03-05 23:34 ` [PATCH v3 7/7] scsi: wd33c93: " Justin Stitt
2024-03-10 22:39 ` [PATCH v3 0/7] scsi: replace deprecated strncpy Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).