Skip to content

Fix integer handling issues in k230_gsdma and k230_decomp_gzip

Tao Ding qemu-devel qemu-riscv 3 versions – Applied

Status from this message: Applied to riscv-to-apply.next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 2 repliesApplied
  2. v25 patches 8 repliesSuperseded
  3. v13 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- Separate global and channel register handling to prevent unsigned address underflow when calculating GSDMA channel offsets.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/5hw/misc: fix calculating output address overflow in k230_decomp_gziphw/misc/k230_decomp_gzip.c+1 -10 replies
2/5hw/misc: fix calculating input address overflow in k230_decomp_gziphw/misc/k230_decomp_gzip.c+1 -10 replies
3/5hw/misc: use hwaddr for the k230_decomp_gzip input addresshw/misc/k230_decomp_gzip.c+1 -10 replies
4/5qtest: fix k230_decomp_gzip test integer handling issuestests/qtest/k230-decomp-gzip-test.c+1 -10 replies
5/5hw/dma: fix k230_gsdma integer handling issueshw/dma/k230_gsdma.c+42 -421 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchAlistair Francis
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/5] Fix integer handling issues in k230_gsdma and k230_decomp_gzip

Hi, all

This series fixes integer overflow, truncation, and underflow issues reported by Coverity in the K230 GZIP decompressor, its qtest, and GSDMA.
https://lore.kernel.org/qemu-devel/[email protected]/

Thanks.

The patchv1 series is posted in:
https://lore.kernel.org/qemu-devel/[email protected]/

Changes in v2->v3:
- Separate global and channel register handling to prevent unsigned address underflow when calculating GSDMA channel offsets.

Tao Ding (5):
hw/misc: fix calculating output address overflow in k230_decomp_gzip hw/misc: fix calculating input address overflow in k230_decomp_gzip hw/misc: use hwaddr for the k230_decomp_gzip input address
qtest: fix k230_decomp_gzip test integer handling issues hw/dma: fix k230_gsdma integer handling issues

 hw/dma/k230_gsdma.c                 | 84 ++++++++++++++---------------
 hw/misc/k230_decomp_gzip.c          |  6 +--
 tests/qtest/k230-decomp-gzip-test.c |  2 +-
 3 files changed, 46 insertions(+), 46 deletions(-)

base-commit: 0a1ebd448b38afaa118597cbb633dbec24ef74d3

Signature · 1 line
2.43.0