summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2025-02-28 12:37:28 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2025-03-04 06:11:47 +0300
commit0711f1966a523d77d4c5f00776a7bd073d56251a (patch)
tree93c10eca27f2b538833f96c11fdfbf438dc7bdc8 /tools/perf/scripts/python/exported-sql-viewer.py
parent8a9b76b7d9137e15e5036d082cb276c1e8a6e100 (diff)
downloadlinux-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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions