diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2025-05-13 14:04:11 +0800 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-06-13 17:26:15 +0800 |
| commit | 8c8f269a58f8aa245c39e732a35560b5884c3461 (patch) | |
| tree | 518529d335c5ba32bcd2a728ff14dccc07c7aed5 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 0602f0ef9308fe8a27c2e3325f8281432a5e0a71 (diff) | |
crypto: aspeed/hash - Fix potential overflow in dma_prepare_sg
The mapped SG lists are written to hash_engine->ahash_src_addr which
has the size ASPEED_HASH_SRC_DMA_BUF_LEN. Since scatterlists are
not bound in size, make sure that size is not exceeded.
If the mapped SG list is larger than the buffer, simply iterate
over it as is done in the dma_prepare case.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
