diff options
author | Aleksandr Miloserdov <a.miloserdov@yadro.com> | 2021-02-09 10:22:02 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-02-22 22:21:29 -0500 |
commit | 14d24e2cc77411301e906a8cf41884739de192de (patch) | |
tree | 32c9edc56511afe7d2135d9d4fe8dc67920b7582 /security | |
parent | 1c73e0c5e54d5f7d77f422a10b03ebe61eaed5ad (diff) | |
download | linux-14d24e2cc77411301e906a8cf41884739de192de.tar.bz2 |
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 'security')
0 files changed, 0 insertions, 0 deletions