mbox series

[RFC,0/3] hw/audio/intel-hda: Restrict DMA engine to memories (non-MMIO devices)

Message ID 20211218160912.1591633-1-philmd@redhat.com (mailing list archive)
Headers show
Series hw/audio/intel-hda: Restrict DMA engine to memories (non-MMIO devices) | expand

Message

Philippe Mathieu-Daudé Dec. 18, 2021, 4:09 p.m. UTC
An attempt to fix the Intel HDA DMA reentrancy problem by
restricting the DMA engine to memories, and reporting invalid
I/O region accesses as overruns.

Based-on: <20211218151053.1545962-1-philmd@redhat.com>
"hw: Have DMA API take MemTxAttrs arg & propagate MemTxResult (part 4)"
https://lore.kernel.org/qemu-devel/20211218151053.1545962-1-philmd@redhat.com/

Philippe Mathieu-Daudé (3):
  hw/audio/intel-hda: Do not ignore DMA overrun errors
  hw/audio/intel-hda: Restrict DMA engine to memories (not MMIO devices)
  tests/qtest/intel-hda-test: Add reproducer for issue #542

 hw/audio/intel-hda.c         | 11 ++++++++---
 tests/qtest/intel-hda-test.c | 34 ++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 3 deletions(-)

Comments

Philippe Mathieu-Daudé Dec. 18, 2021, 4:14 p.m. UTC | #1
On 12/18/21 17:09, Philippe Mathieu-Daudé wrote:
> An attempt to fix the Intel HDA DMA reentrancy problem by
> restricting the DMA engine to memories, and reporting invalid
> I/O region accesses as overruns.

Eh reading again the gitlab issue I realized CVE-2021-3611 has
been assigned for this.