diff options
| author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-02-28 12:37:28 +0300 | 
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2025-03-04 06:11:47 +0300 | 
| commit | 0711f1966a523d77d4c5f00776a7bd073d56251a (patch) | |
| tree | 93c10eca27f2b538833f96c11fdfbf438dc7bdc8 /tools/perf/scripts/python/flamegraph.py | |
| parent | 8a9b76b7d9137e15e5036d082cb276c1e8a6e100 (diff) | |
| download | linux-0711f1966a523d77d4c5f00776a7bd073d56251a.tar.xz | |
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 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
