diff options
author | Dou Liyang <[email protected]> | 2018-04-12 09:40:52 +0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2018-04-17 11:56:31 +0200 |
commit | 10daf10ab154e31237a8c07242be3063fb6a9bf4 (patch) | |
tree | 4c5611431bdd5a149590557c505a02132e8b0ac7 /lib/memory-notifier-error-inject.c | |
parent | d3878e164dcd3925a237a20e879432400e369172 (diff) |
x86/acpi: Prevent X2APIC id 0xffffffff from being accounted
RongQing reported that there are some X2APIC id 0xffffffff in his machine's
ACPI MADT table, which makes the number of possible CPU inaccurate.
The reason is that the ACPI X2APIC parser has no sanity check for APIC ID
0xffffffff, which is an invalid id in all APIC types. See "IntelĀ® 64
Architecture x2APIC Specification", Chapter 2.4.1.
Add a sanity check to acpi_parse_x2apic() which ignores the invalid id.
Reported-by: Li RongQing <[email protected]>
Signed-off-by: Dou Liyang <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions