File 0390-libqos-pci-pc-use-32-bit-write-for-.patch of Package qemu.19799
From: Jose R Ziviani <jose.ziviani@suse.com>
Date: Tue, 11 May 2021 07:55:42 -0600
Subject: libqos: pci-pc: use 32-bit write for EJ register
Git-commit: 4b7c06837ae0b1ff56473202a42e7e386f53d6db
References: bsc#1172382 CVE-2020-13754
The memory region ops have min_access_size == 4 so obey it.
Tested-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jose R Ziviani <jose.ziviani@suse.com>
---
tests/libqos/pci-pc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/libqos/pci-pc.c b/tests/libqos/pci-pc.c
index 77f15e5a0e74ebdf45df8e7e60ba..d4a5d74d0c259d88f3974de88072 100644
--- a/tests/libqos/pci-pc.c
+++ b/tests/libqos/pci-pc.c
@@ -293,7 +293,7 @@ void qpci_unplug_acpi_device_test(const char *id, uint8_t slot)
g_assert(!qdict_haskey(response, "error"));
QDECREF(response);
- outb(ACPI_PCIHP_ADDR + PCI_EJ_BASE, 1 << slot);
+ outl(ACPI_PCIHP_ADDR + PCI_EJ_BASE, 1 << slot);
response = qmp("");
g_assert(response);