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

Lee Jones
2024-01-11T13:17:43Z

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 (5):
scsi: 3w-9xxx: Remove snprintf() from sysfs call-backs and replace
with sysfs_emit()
scsi: 3w-sas: Remove snprintf() from sysfs call-backs and replace with
sysfs_emit()
scsi: 3w-xxxx: Remove snprintf() from sysfs call-backs and replace
with sysfs_emit()
scsi: 53c700: Remove snprintf() from sysfs call-backs and replace with
sysfs_emit()
scsi: aacraid: aachba: Replace snprintf() with the safer scnprintf()
variant

drivers/scsi/3w-9xxx.c | 44 +++++++-------
drivers/scsi/3w-sas.c | 36 ++++++------
drivers/scsi/3w-xxxx.c | 46 +++++++--------
drivers/scsi/53c700.c | 104 +++++++++++++++++-----------------
drivers/scsi/aacraid/aachba.c | 6 +-
5 files changed, 118 insertions(+), 118 deletions(-)

Cc: Adam Radford <aradford@gmail.com>
Cc: Adaptec OEM Raid Solutions <aacraid@microsemi.com>
Cc: Andre Hedrick <andre@suse.com>
Cc: de Melo <acme@conectiva.com.br>
Cc: Joel Jacobson <linux@3ware.com>
Cc: "PMC-Sierra, Inc" <aacraid@pmc-sierra.com>
Cc: Richard Hirst <rhirst@linuxcare.com>
--
2.43.0.275.g3460e3d667-goog