bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/6] Don't allow writing to acpi table in memory


From: Damien Zammit
Subject: [PATCH 3/6] Don't allow writing to acpi table in memory
Date: Sun, 28 Mar 2021 17:03:17 +1100

---
 i386/i386at/acpi_parse_apic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/i386/i386at/acpi_parse_apic.c b/i386/i386at/acpi_parse_apic.c
index 36e2805d..af70934d 100644
--- a/i386/i386at/acpi_parse_apic.c
+++ b/i386/i386at/acpi_parse_apic.c
@@ -280,7 +280,7 @@ acpi_get_apic(struct acpi_rsdt *rsdt, int acpi_rsdt_n)
     /* Search APIC entries in rsdt table. */
     for (int i = 0; i < acpi_rsdt_n; i++) {
         descr_header = (struct acpi_dhdr*) 
kmem_map_aligned_table(rsdt->entry[i], sizeof(struct acpi_dhdr),
-                                                                  VM_PROT_READ 
| VM_PROT_WRITE);
+                                                                  
VM_PROT_READ);
 
         /* Check if the entry contains an APIC. */
         check_signature = acpi_check_signature(descr_header->signature, 
ACPI_APIC_SIG, 4*sizeof(uint8_t));
-- 
2.30.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]