aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/task-analyzer-report
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2022-12-27 15:27:39 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2023-01-06 17:15:46 +0800
commit7361d1bc307b926cbca214ab67b641123c2d6357 (patch)
tree50edbe327f6014e560ff3e888778f5fe2806c8e6 /tools/perf/scripts/python/bin/task-analyzer-report
parentcrypto: lib/blake2s - Split up test function to halve stack usage (diff)
downloadlinux-7361d1bc307b926cbca214ab67b641123c2d6357.tar.gz
linux-7361d1bc307b926cbca214ab67b641123c2d6357.zip
lib/mpi: Fix buffer overrun when SG is too long
The helper mpi_read_raw_from_sgl sets the number of entries in the SG list according to nbytes. However, if the last entry in the SG list contains more data than nbytes, then it may overrun the buffer because it only allocates enough memory for nbytes. Fixes: 2d4d1eea540b ("lib/mpi: Add mpi sgl helpers") Reported-by: Roberto Sassu <roberto.sassu@huaweicloud.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Reviewed-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python/bin/task-analyzer-report')
0 files changed, 0 insertions, 0 deletions