Skip to content

scsi: Replace {v}snprintf() variants with safer alternatives

Lee Jones linux-scsi lkml 1 version Applied

Status from this message: Applied to 6.9/scsi-staging, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5scsi: 3w-9xxx: Remove snprintf() from sysfs call-backs and replace with sysfs_emit()drivers/scsi/3w-9xxx.c+22 -220 replies
2/5scsi: 3w-sas: Remove snprintf() from sysfs call-backs and replace with sysfs_emit()drivers/scsi/3w-sas.c+18 -180 replies
3/5scsi: 3w-xxxx: Remove snprintf() from sysfs call-backs and replace with sysfs_emit()drivers/scsi/3w-xxxx.c+23 -230 replies
4/5scsi: 53c700: Remove snprintf() from sysfs call-backs and replace with sysfs_emit()drivers/scsi/53c700.c+52 -520 replies
5/5scsi: aacraid: aachba: Replace snprintf() with the safer scnprintf() variantdrivers/scsi/aacraid/aachba.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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 <[email protected]>
Cc Adaptec OEM Raid Solutions <[email protected]>
Cc Andre Hedrick <[email protected]>
Cc de Melo <[email protected]>
Cc Joel Jacobson <[email protected]>
Cc "PMC-Sierra, Inc" <[email protected]>
Cc Richard Hirst <[email protected]>
Signature · 1 line
2.43.0.275.g3460e3d667-goog