Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/41086 )
Change subject: SMM: Validate more user-provided pointers
......................................................................
Patch Set 17:
(3 comments)
https://review.coreboot.org/c/coreboot/+/41086/17/src/mainboard/lenovo/t60/s...
File src/mainboard/lenovo/t60/smihandler.c:
https://review.coreboot.org/c/coreboot/+/41086/17/src/mainboard/lenovo/t60/s...
PS17, Line 27: *(bar+LVTMA_BL_MOD_LEVEL)
This should really be using read8/write8 functions
https://review.coreboot.org/c/coreboot/+/41086/17/src/soc/intel/common/block...
File src/soc/intel/common/block/smm/smihandler.c:
https://review.coreboot.org/c/coreboot/+/41086/17/src/soc/intel/common/block...
PS17, Line 7: #include <commonlib/region.h>
I don't see any new calls to any region or rdev functions...
https://review.coreboot.org/c/coreboot/+/41086/17/src/southbridge/intel/bd82...
File src/southbridge/intel/bd82x6x/smihandler.c:
https://review.coreboot.org/c/coreboot/+/41086/17/src/southbridge/intel/bd82...
PS17, Line 107: if (!smm_points_to_smram((void *)(uintptr_t)xhci_bar,
: 0x4F0 + sizeof(uint32_t))) {
: /* FIXME: This looks broken */
: if ((xhci_bar + 0x4C0) & 1)
: pch_iobp_update(0xEC000082, ~0UL, (3 << 2));
: if ((xhci_bar + 0x4D0) & 1)
: pch_iobp_update(0xEC000182, ~0UL, (3 << 2));
: if ((xhci_bar + 0x4E0) & 1)
: pch_iobp_update(0xEC000282, ~0UL, (3 << 2));
: if ((xhci_bar + 0x4F0) & 1)
: pch_iobp_update(0xEC000382, ~0UL, (3 << 2));
: }
Would prefer if this just return'ed instead of conditionally executing these. […]
I'd just drop this, it's broken
--
To view, visit
https://review.coreboot.org/c/coreboot/+/41086
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I8a347ccdd20816924bf1bceb3b24bf7b22309312
Gerrit-Change-Number: 41086
Gerrit-PatchSet: 17
Gerrit-Owner: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Reviewer: Aaron Durbin
adurbin@chromium.org
Gerrit-Reviewer: Alexander Couzens
lynxis@fe80.eu
Gerrit-Reviewer: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: Arthur Heymans
arthur@aheymans.xyz
Gerrit-Reviewer: Christian Walter
christian.walter@9elements.com
Gerrit-Reviewer: Duncan Laurie
dlaurie@chromium.org
Gerrit-Reviewer: Frans Hendriks
fhendriks@eltan.com
Gerrit-Reviewer: Furquan Shaikh
furquan.m.shaikh@gmail.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-Reviewer: Michał Żygowski
michal.zygowski@3mdeb.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Philipp Deppenwiese
zaolin.daisuki@gmail.com
Gerrit-Reviewer: Piotr Kleinschmidt
piotr.kleinschmidt@3mdeb.com
Gerrit-Reviewer: Stefan Reinauer
reinauer@chromium.org
Gerrit-Reviewer: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Reviewer: Wim Vervoorn
wvervoorn@eltan.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Patrick Georgi
pgeorgi@google.com
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Tue, 14 Jul 2020 22:42:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-MessageType: comment