Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE-12:Update
qemu-linux-user.7445
0271-scsi-esp-respect-FIFO-invariant-aft.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0271-scsi-esp-respect-FIFO-invariant-aft.patch of Package qemu-linux-user.7445
From 545c680eff9e6537c0f46f484708c50cca7cb81f Mon Sep 17 00:00:00 2001 From: Paolo Bonzini <pbonzini@redhat.com> Date: Tue, 14 Jun 2016 15:10:24 +0200 Subject: [PATCH] scsi: esp: respect FIFO invariant after message phase The FIFO contains two bytes; hence the write ptr should be two bytes ahead of the read pointer. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> (cherry picked from commit d020aa504cec8f525b55ba2ef982c09dc847c72e) [BR: CVE-2016-5238 BSC#982959] Signed-off-by: Bruce Rogers <brogers@suse.com> --- hw/scsi/esp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c index 3ed5015ac1..20f4823cdd 100644 --- a/hw/scsi/esp.c +++ b/hw/scsi/esp.c @@ -217,7 +217,7 @@ static void write_response(ESPState *s) } else { s->ti_size = 2; s->ti_rptr = 0; - s->ti_wptr = 0; + s->ti_wptr = 2; s->rregs[ESP_RFLAGS] = 2; } esp_raise_irq(s);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor