Skip to content

Replace one-element array with flexible-array member

Gustavo A. R. Silva linux-hardening linux-scsi lkml 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2scsi: hptiop: Replace one-element array with flexible-array memberdrivers/scsi/hptiop.c drivers/scsi/hptiop.h+2 -31 reply
2/2scsi: hptiop: Use struct_size() helper in code related to struct hpt_iop_request_scsi_commanddrivers/scsi/hptiop.c+3 -51 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKees Cook
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2][next] Replace one-element array with flexible-array member

Hi!

This series aims to replace one-element arrays with flexible-array members in drivers/scsi/hptiop.h

This helps with the ongoing efforts to tighten the FORTIFY_SOURCE routines on memcpy() and help us make progress towards globally enabling -fstrict-flex-arrays=3 [1].

Gustavo A. R. Silva (2):
scsi: hptiop: Replace one-element array with flexible-array member
scsi: hptiop: Use struct_size() helper in code related to struct
hpt_iop_request_scsi_command

 drivers/scsi/hptiop.c | 9 +++------
 drivers/scsi/hptiop.h | 2 +-
 2 files changed, 4 insertions(+), 7 deletions(-)
Signature · 1 line
2.34.1