Attention is currently required from: Patrick Rudolph, Angel Pons, Arthur Heymans.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/49093 )
Change subject: cpu/intel/model_206ax: Replace `generate_cstate_entries`
......................................................................
Patch Set 2:
(2 comments)
Patchset:
PS2:
Sorry, I thought it would be good to review and say something
here, but I might have made it worse...
File src/cpu/intel/model_206ax/acpi.c:
https://review.coreboot.org/c/coreboot/+/49093/comment/747f2725_8da28bf6
PS2, Line 54: acpi_cstates
yes, if acpi_cX >= ARRAY_SIZE(cpu->cstates)
Let's call it an out-of-bounds read. You can just add it to the condition
if (acpi_cstates[i] > 0 && acpi_cstates[i] < cpu_cstate_count)
We need to count first, though. `cpu->cstates` is 0 terminated. (Ugh, I don't
understand this indirection. It's a static array, why is it not declared
here?)(Also, why are those acpi_cstates `int` and not `unsigned`?)
--
To view, visit
https://review.coreboot.org/c/coreboot/+/49093
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Icec5431987d91242930efcea0c8ea4e3df3182fd
Gerrit-Change-Number: 49093
Gerrit-PatchSet: 2
Gerrit-Owner: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: Arthur Heymans
arthur@aheymans.xyz
Gerrit-Reviewer: Nico Huber
nico.h@gmx.de
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Attention: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Attention: Angel Pons
th3fanbus@gmail.com
Gerrit-Attention: Arthur Heymans
arthur@aheymans.xyz
Gerrit-Attention: Patrick Rudolph
siro@das-labor.org
Gerrit-Comment-Date: Mon, 18 Jan 2021 23:18:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Patrick Rudolph
patrick.rudolph@9elements.com
Comment-In-Reply-To: Angel Pons
th3fanbus@gmail.com
Comment-In-Reply-To: Patrick Rudolph
siro@das-labor.org
Gerrit-MessageType: comment