Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/34774 )
Change subject: lib: ramdetect: Register exception handlers for ARMv8
......................................................................
Patch Set 8: Code-Review+2
(1 comment)
https://review.coreboot.org/c/coreboot/+/34774/5/src/lib/ramdetect.c
File src/lib/ramdetect.c:
https://review.coreboot.org/c/coreboot/+/34774/5/src/lib/ramdetect.c@60
PS5, Line 60: exception_handler_unregister(EXC_VID_CUR_SP_EL0_SYNC, &sync_el0);
Sorry, do you mean that unregistering a handler might affect other parts?
No, I mean the implementation of exception_handler_unregister() has a bug. If you look at it, it walks a list but never updates the 'prev' pointer, so when it unlinks a handler it will unintentionally unlink every handler before that as well.
I doubt that anyone ever tested that function with more than one handler registered...
--
To view, visit
https://review.coreboot.org/c/coreboot/+/34774
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I09a306ca307ba4027d9758c3debc2e7c844c66b8
Gerrit-Change-Number: 34774
Gerrit-PatchSet: 8
Gerrit-Owner: Asami Doi
d0iasm.pub@gmail.com
Gerrit-Reviewer: Asami Doi
d0iasm.pub@gmail.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Raul Rangel
rrangel@chromium.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Comment-Date: Thu, 22 Aug 2019 03:00:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Asami Doi
d0iasm.pub@gmail.com
Comment-In-Reply-To: Julius Werner
jwerner@chromium.org
Gerrit-MessageType: comment