]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mca: Handle inconsistent CMCI capability reporting
authorMark Johnston <markj@FreeBSD.org>
Mon, 8 Feb 2021 19:42:54 +0000 (14:42 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 15 Feb 2021 19:47:04 +0000 (14:47 -0500)
commitdadf603f0f7b54c65fa5f16f552ae6da12f8210b
treeb037acc5d0bf2a4a4745295cef70869f1775f267
parentcedb8de26ccc46a9b8215dad58f411b93d101db5
mca: Handle inconsistent CMCI capability reporting

A BIOS bug may apparently cause the BSP to report that it does not
implement CMCI, with some APs reporting that they do.  In this scenario,
avoid a NULL pointer dereference that occurs in cmci_monitor() because
cmc_state was not allocated by the BSP.

PR: 253272
Reported by: asomers, mmacy
Reviewed by: kib (previous version)

(cherry picked from commit b5770470276268acef21368b3e77a325df883500)
sys/x86/x86/mca.c