diff options
author | 2025-02-28 12:37:28 +0300 | |
---|---|---|
committer | 2025-03-03 22:11:47 -0500 | |
commit | 0711f1966a523d77d4c5f00776a7bd073d56251a (patch) | |
tree | 93c10eca27f2b538833f96c11fdfbf438dc7bdc8 /scripts/lib/kdoc/kdoc_parser.py | |
parent | scsi: lpfc: Fix spelling mistake 'Toplogy' -> 'Topology' (diff) | |
download | wireguard-linux-0711f1966a523d77d4c5f00776a7bd073d56251a.tar.xz wireguard-linux-0711f1966a523d77d4c5f00776a7bd073d56251a.zip |
scsi: mpt3sas: Fix buffer overflow in mpt3sas_send_mctp_passthru_req()
The "sz" argument in mpt3sas_check_cmd_timeout() is the number of u32, not
the number of bytes. We dump that many u32 values to dmesg. Passing the
number of bytes will lead to a read overflow. Divide by 4 to get the
correct value.
Fixes: c72be4b5bb7c ("scsi: mpt3sas: Add support for MCTP Passthrough commands")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/02b0d4ff-961c-49ae-921a-5cc469edf93c@stanley.mountain
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions