qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] esp.c: fix esp_cdb_ready() FIFO wraparound limit calculation
@ 2025-09-25 12:28 Mark Cave-Ayland
  2025-09-25 12:28 ` [PATCH 1/2] " Mark Cave-Ayland
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mark Cave-Ayland @ 2025-09-25 12:28 UTC (permalink / raw)
  To: pbonzini, fam, farosas, lvivier, qemu-devel

This small series fixes a bug in the ESP cmdfifo FIFO wraparound limit
calculation as reported at https://gitlab.com/qemu-project/qemu/-/issues/3082, as
well as adding the reported test case to qtest.

In normal usage the cmdfifo does not overflow, however the test case reported by
the fuzzer was enough to show that the FIFO overflow check in esp_cdb_ready()
was not working correctly.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>


Mark Cave-Ayland (2):
  esp.c: fix esp_cdb_ready() FIFO wraparound limit calculation
  qtest/am53c974-test: add additional test for cmdfifo overflow

 hw/scsi/esp.c               |  6 ++++--
 tests/qtest/am53c974-test.c | 40 +++++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+), 2 deletions(-)

-- 
2.39.5



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-10-22 17:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-25 12:28 [PATCH 0/2] esp.c: fix esp_cdb_ready() FIFO wraparound limit calculation Mark Cave-Ayland
2025-09-25 12:28 ` [PATCH 1/2] " Mark Cave-Ayland
2025-09-25 13:33   ` Philippe Mathieu-Daudé
2025-09-25 19:54     ` Mark Cave-Ayland
2025-09-25 12:28 ` [PATCH 2/2] qtest/am53c974-test: add additional test for cmdfifo overflow Mark Cave-Ayland
2025-09-25 13:33   ` Philippe Mathieu-Daudé
2025-10-22 17:36 ` [PATCH 0/2] esp.c: fix esp_cdb_ready() FIFO wraparound limit calculation Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).