Patrick Rudolph has posted comments on this change by Patrick Rudolph. ( https://review.coreboot.org/c/coreboot/+/84833?usp=email )
Change subject: arch/x86: Add breakpoint to stack canary
......................................................................
Patch Set 20:
(1 comment)
Patchset:
PS20:
Without further details I cannot fix this. […]
The first problem
```
[NOTE ] coreboot-coreboot-unknown.9999.06d5019 Fri Dec 13 06:11:04 UTC 2024 x86_64 verstage starting (log level: 8)...
[ERROR] Failed to create address zero instruction fetch breakpoint
[ERROR] Failed to create stack canary breakpoint
```
is due to `CONFIG_VBOOT_SEPARATE_VERSTAGE=n`.
The verstage code is compiled into romstage, but it doesn't clear BSS when jumping to verstage. Thus there are not enough free breakpoint slots when it tries to init breakpoints for instruction and NULL deref.
Previously it worked as there were enough free slots by coincidence.
The other problem is more interesting:
```
[NOTE ] coreboot-coreboot-unknown.9999.06d5019 Fri Dec 13 06:11:04 UTC 2024 x86_64 romstage starting (log level: 8)...
[ERROR] Stack corruption detected at rip: 0xf983007a
[ERROR] Stack corruption detected at rip: 0xf983007a
```
Is this with https://review.coreboot.org/c/coreboot/+/85568 applied?
I build google/fatcat and the shown address 0xf983007a seems to outside of the BIOS region and outside of CAR.
Are you sure that the generic breakpoint code works on x86_64?
It seems to work fine on x86_32.
Do the other platforms show the same address (`0xf983007a`) ?
--
To view, visit
https://review.coreboot.org/c/coreboot/+/84833?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I8adf07a8425856795a4a71da5c41bec2244b02a8
Gerrit-Change-Number: 84833
Gerrit-PatchSet: 20
Gerrit-Owner: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Reviewer: Alicja Michalska
ahplka19@gmail.com
Gerrit-Reviewer: Andrey Petrov
andrey.petrov@gmail.com
Gerrit-Reviewer: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: Benjamin Doron
benjamin.doron00@gmail.com
Gerrit-Reviewer: Jeremy Compostella
jeremy.compostella@gmail.com
Gerrit-Reviewer: Jérémy Compostella
jeremy.compostella@intel.com
Gerrit-Reviewer: Lean Sheng Tan
sheng.tan@9elements.com
Gerrit-Reviewer: Ronak Kanabar
ronak.kanabar@intel.com
Gerrit-Reviewer: Shuo Liu
shuo.liu@intel.com
Gerrit-Reviewer: Subrata Banik
subratabanik@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: 9elements QA
hardwaretestrobot@gmail.com
Gerrit-CC: Felix Held
felix-coreboot@felixheld.de
Gerrit-CC: Jincheng Li
jincheng.li@intel.com
Gerrit-CC: Matt DeVillier
matt.devillier@gmail.com
Gerrit-CC: Maximilian Brune
maximilian.brune@9elements.com
Gerrit-CC: Uwe Poeche
uwe.poeche@siemens.com
Gerrit-CC: yuchi.chen@intel.com
Gerrit-Comment-Date: Sat, 14 Dec 2024 07:58:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Subrata Banik
subratabanik@google.com
Comment-In-Reply-To: Patrick Rudolph
patrick.rudolph@9elements.com