[PATCH 00/10] scsi: Replace {v}snprintf() variants with safer alternatives

From: Lee Jones
Date: Thu Feb 08 2024 - 03:47:25 EST


Note: We're also taking the time to obay our new .editorconfig overlord!

For a far better description of the problem than I could author, see
Jon's write-up on LWN [1] and/or Alex's on the Kernel Self Protection
Project [1].

[0] https://lwn.net/Articles/69419/
[1] https://github.com/KSPP/linux/issues/105

Lee Jones (10):
scsi: 3w-xxxx: Trivial: Remove trailing whitespace
scsi: 53c700: Trivial: Remove trailing whitespace
scsi: NCR5380: Replace snprintf() with the safer scnprintf() variant
scsi: aacraid: linit: Remove snprintf() from sysfs call-backs and
replace with sysfs_emit()
scsi: aacraid: linit: Replace snprintf() with the safer scnprintf()
variant
scsi: aha1542: Replace snprintf() with the safer scnprintf() variant
scsi: aic7xxx: aicasm: Trivial: Remove trailing whitespace
scsi: aic7xxx: aicasm: Replace snprintf() with the safer scnprintf()
variant
scsi: aic94xx: Remove snprintf() from sysfs call-backs and replace
with sysfs_emit()
scsi: arcmsr: Remove snprintf() from sysfs call-backs and replace with
sysfs_emit()

drivers/scsi/3w-xxxx.c | 2 +-
drivers/scsi/53c700.c | 102 +++++++++++++--------------
drivers/scsi/NCR5380.c | 16 ++---
drivers/scsi/aacraid/linit.c | 40 +++++------
drivers/scsi/aha1542.c | 2 +-
drivers/scsi/aic7xxx/aicasm/aicasm.c | 16 ++---
drivers/scsi/aic94xx/aic94xx_init.c | 11 ++-
drivers/scsi/arcmsr/arcmsr_attr.c | 40 +++--------
8 files changed, 101 insertions(+), 128 deletions(-)

Cc: Adam Radford <aradford@xxxxxxxxx>
Cc: Adaptec OEM Raid Solutions <aacraid@xxxxxxxxxxxxx>
Cc: Andre Hedrick <andre@xxxxxxxx>
Cc: de Melo <acme@xxxxxxxxxxxxxxxx>
Cc: drew@xxxxxxxxxxxx
Cc: Finn Thain <fthain@xxxxxxxxxxxxxx>
Cc: Hannes Reinecke <hare@xxxxxxxx>
Cc: "James E.J. Bottomley" <jejb@xxxxxxxxxxxxx>
Cc: Joel Jacobson <linux@xxxxxxxxx>
Cc: John Garry <john.g.garry@xxxxxxxxxx>
Cc: Lee Jones <lee@xxxxxxxxxx>
Cc: linux-scsi@xxxxxxxxxxxxxxx
Cc: Luben Tuikov <luben_tuikov@xxxxxxxxxxx>
Cc: "Martin K. Petersen" <martin.petersen@xxxxxxxxxx>
Cc: Michael Schmitz <schmitzmic@xxxxxxxxx>
Cc: "PMC-Sierra, Inc" <aacraid@xxxxxxxxxxxxxx>
Cc: Richard Hirst <rhirst@xxxxxxxxxxxxx>
Cc: support@xxxxxxxxxxxx
Cc: Tnx to <Thomas_Roesch@xxxxxxxxxx>
--
2.43.0.594.gd9cf4e227d-goog