Skip to content

ide/hw/core: fix bug# 1777315, crash on short PRDs

Amol Surati qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ide/hw/core: fix crash on processing a partial-sector-size DMA xferhw/ide/core.c+4 -12 replies
2/2tests/ide-test: test case for crash when processing short PRDstests/ide-test.c+28 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] ide/hw/core: fix bug# 1777315, crash on short PRDs

The fix utilizes the existing policy QEMU has about short PRDs, and considers the transfers that cause the crash as generated through short PRDS.

It
- continues to allow QEMU to support multiple calls to prepare_buf/ide_dma_cb,
- so, continues to keep QEMU free from needing the entire sglist in one go;
- avoids the crash;
- but, treats the affected transfers as short, instead of allowing them to continue.

Amol Surati (1):
ide/hw/core: fix crash on processing a partial-sector-size DMA xfer

John Snow (1):
tests/ide-test: test case for crash when processing short PRDs

 hw/ide/core.c    |  5 ++++-
 tests/ide-test.c | 28 ++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletion(-)
Signature · 1 line
2.17.1