summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorHari Mishal <harimishal1@gmail.com>2026-07-09 14:30:32 +0200
committerKeith Busch <kbusch@kernel.org>2026-07-14 15:11:59 -0700
commit3c568b35a0d309acb40746552bec2af24cd550ef (patch)
tree0833a6ec480c28c23d14602762cfcd317d704829 /tools/perf/scripts/python/stackcollapse.py
parentcdf9a65e80ec874b630502946d269fac38dc5de8 (diff)
nvme: bound ns descriptor header and body to identify buffer
nvme_identify_ns_descs() allocates a buffer and gives it to the controller, which populates it and then iterates the buffer with variable byte increments that vary by type and body size. But, there is no bounds check inside the iteration itself except the loop bound itself. Fix this by checking and stopping iteration if the next header or its declared body would go past the buffer itself. Assisted-by: gkh_clanker_t1000 Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Hari Mishal <harimishal1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions