summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorChandrakanth Patil <chandrakanth.patil@broadcom.com>2026-08-26 02:34:07 +0530
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-09-09 22:08:16 -0400
commit203b3072e7aa10d98b3f2b766693ea925cfc571d (patch)
treed7ad38de6772a705d5fbbe696f7ebf49402ba204 /tools/perf/scripts/python/stackcollapse.py
parentf67caaa2521a3c8f931d1e679d831ba5ca654794 (diff)
downloadlinux-next-203b3072e7aa10d98b3f2b766693ea925cfc571d.tar.gz
linux-next-203b3072e7aa10d98b3f2b766693ea925cfc571d.zip
scsi: mpi3mr: Fix buffer overflow in the BSG target device map
The size of the target device map buffer is held in a u16 while the number of devices it is derived from is not bounded to fit. With enough devices the size wraps, a short buffer is allocated, and the loop that fills it writes past the end. Do the calculation in size_t. Fixes: fb428a2005fc ("scsi: mpi3mr: Fix issues in mpi3mr_get_all_tgt_info()") Signed-off-by: Chandrakanth Patil <chandrakanth.patil@broadcom.com> Link: https://patch.msgid.link/20260825210411.301535-14-chandrakanth.patil@broadcom.com Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions