diff options
author | 2022-09-01 13:57:29 -0700 | |
---|---|---|
committer | 2022-09-06 22:24:37 -0400 | |
commit | 1ce871de4f86432be4b40b7a19bd205aedc654bf (patch) | |
tree | b9d0d484064b346a683d6291f8af2a9cd2f0ed3a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | scsi: 3w-9xxx: Avoid disabling device if failing to enable it (diff) | |
download | linux-dev-1ce871de4f86432be4b40b7a19bd205aedc654bf.tar.xz linux-dev-1ce871de4f86432be4b40b7a19bd205aedc654bf.zip |
scsi: esas2r: Use flex array destination for memcpy()
In preparation for FORTIFY_SOURCE performing run-time destination buffer
bounds checking for memcpy(), specify the destination output buffer
explicitly, instead of asking memcpy() to write past the end of what looked
like a fixed-size object. Silences future run-time warning:
memcpy: detected field-spanning write (size 80) of single field "trc + 1" (size 64)
There is no binary code output differences from this change.
Link: https://lore.kernel.org/r/20220901205729.2260982-1-keescook@chromium.org
Cc: Bradley Grove <linuxdrivers@attotech.com>
Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions