Skip to content

Commit adca4ce

Browse files
committed
Merge tag 'acpi-5.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull ACPI fixes from Rafael Wysocki: "Fix possible use-after-free in the ACPI CPPC support code (John Garry) and prevent the ACPI HMAT parsing code from using possibly incorrect data coming from the platform firmware (Daniel Black)" * tag 'acpi-5.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPI: CPPC: Set pcc_data[pcc_ss_id] to NULL in acpi_cppc_processor_exit() ACPI: HMAT: ACPI_HMAT_MEMORY_PD_VALID is deprecated since ACPI-6.3
2 parents e59b76f + ffba17b commit adca4ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/acpi/cppc_acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,8 +905,8 @@ void acpi_cppc_processor_exit(struct acpi_processor *pr)
905905
pcc_data[pcc_ss_id]->refcount--;
906906
if (!pcc_data[pcc_ss_id]->refcount) {
907907
pcc_mbox_free_channel(pcc_data[pcc_ss_id]->pcc_channel);
908-
pcc_data[pcc_ss_id]->pcc_channel_acquired = 0;
909908
kfree(pcc_data[pcc_ss_id]);
909+
pcc_data[pcc_ss_id] = NULL;
910910
}
911911
}
912912
}

drivers/acpi/hmat/hmat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ static int __init hmat_parse_proximity_domain(union acpi_subtable_headers *heade
403403
pr_info("HMAT: Memory Flags:%04x Processor Domain:%d Memory Domain:%d\n",
404404
p->flags, p->processor_PD, p->memory_PD);
405405

406-
if (p->flags & ACPI_HMAT_MEMORY_PD_VALID) {
406+
if (p->flags & ACPI_HMAT_MEMORY_PD_VALID && hmat_revision == 1) {
407407
target = find_mem_target(p->memory_PD);
408408
if (!target) {
409409
pr_debug("HMAT: Memory Domain missing from SRAT\n");

0 commit comments

Comments
 (0)