diff options
author | Aleksandr Miloserdov <a.miloserdov@yadro.com> | 2021-02-09 08:22:02 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-02-23 04:21:29 +0100 |
commit | 14d24e2cc77411301e906a8cf41884739de192de (patch) | |
tree | 32c9edc56511afe7d2135d9d4fe8dc67920b7582 /drivers/scsi/aic7xxx/aic79xx.h | |
parent | scsi: target: core: Add cmd length set before cmd complete (diff) | |
download | linux-14d24e2cc77411301e906a8cf41884739de192de.tar.xz linux-14d24e2cc77411301e906a8cf41884739de192de.zip |
scsi: target: core: Prevent underflow for service actions
TCM buffer length doesn't necessarily equal 8 + ADDITIONAL LENGTH which
might be considered an underflow in case of Data-In size being greater than
8 + ADDITIONAL LENGTH. So truncate buffer length to prevent underflow.
Link: https://lore.kernel.org/r/20210209072202.41154-3-a.miloserdov@yadro.com
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Bodo Stroesser <bostroesser@gmail.com>
Signed-off-by: Aleksandr Miloserdov <a.miloserdov@yadro.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/aic7xxx/aic79xx.h')
0 files changed, 0 insertions, 0 deletions