diff options
author | Kees Cook <keescook@chromium.org> | 2021-05-28 20:13:37 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-06-02 06:56:15 +0200 |
commit | 5250db63d14002efce40f4d4fbfee3b81c829d54 (patch) | |
tree | 67a189898f26aeeef68a02abd9e9e1712ff7dcee /drivers/scsi/scsi_error.c | |
parent | scsi: esas2r: Switch to flexible array member (diff) | |
download | linux-5250db63d14002efce40f4d4fbfee3b81c829d54.tar.xz linux-5250db63d14002efce40f4d4fbfee3b81c829d54.zip |
scsi: isci: Use correctly sized target buffer for memcpy()
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memcpy(), avoid intentionally writing across
neighboring array fields.
Switch from rsp_ui to resp_buf, since resp_ui isn't SSP_RESP_IU_MAX_SIZE
bytes in length. This avoids future compile-time warnings.
Link: https://lore.kernel.org/r/20210528181337.792268-4-keescook@chromium.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 'drivers/scsi/scsi_error.c')
0 files changed, 0 insertions, 0 deletions