aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2023-01-05 21:32:00 -0800
committerMartin K. Petersen <[email protected]>2023-01-18 18:22:22 -0500
commita9a3629592ab7442a2e9d40281420b51c453ea9b (patch)
tree7805f83717a066ffd395e0fa7f4efc5d263b22d6 /tools/perf/scripts/python/syscall-counts-by-pid.py
parent0c0d806908bd1a230fe3d6faef898e84a616c17c (diff)
scsi: megaraid_sas: Add flexible array member for SGLs
struct MPI2_RAID_SCSI_IO_REQUEST ends with a single SGL, but expects to copy multiple. Add a flexible array member so the compiler can reason about the size of the memcpy(). This will avoid the run-time false positive warning: memcpy: detected field-spanning write (size 128) of single field "&r1_cmd->io_request->SGL" at drivers/scsi/megaraid/megaraid_sas_fusion.c:3326 (size 16) This change results in no binary output differences. Reported-by: Holger Kiehl <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Cc: Kashyap Desai <[email protected]> Cc: Sumit Saxena <[email protected]> Cc: Shivasharan S <[email protected]> Cc: "James E.J. Bottomley" <[email protected]> Cc: "Martin K. Petersen" <[email protected]> Cc: [email protected] Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]> Tested-by: Holger Kiehl <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions