Summary: | [bhyve] Increasing VM_MAXCPU to >= 26 will result in ACPI MADT table corruption | ||
---|---|---|---|
Product: | Base System | Reporter: | Peter Grehan <grehan> |
Component: | kern | Assignee: | Rodney W. Grimes <rgrimes> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | araujo, olevole, rgrimes, seanc, trentnthompson, virtualization |
Priority: | --- | Flags: | rgrimes:
mfc-stable12+
rgrimes: mfc-stable11+ |
Version: | CURRENT | ||
Hardware: | amd64 | ||
OS: | Any |
Description
Peter Grehan
2016-09-18 03:37:29 UTC
Return to the mailing list. I will take it. For reference, this ticket is being discussed on this review: https://reviews.freebsd.org/D18755 (In reply to Marcelo Araujo from comment #3) A proposed fix is now available in https://reviews.freebsd.org/D18815 A commit references this bug: Author: rgrimes Date: Thu Apr 25 22:52:44 UTC 2019 New revision: 346715 URL: https://svnweb.freebsd.org/changeset/base/346715 Log: Acpi MADT table correction for VM_MAXCPU > 21 The bhyve acpi MADT table was given a static space of 256 (0x100) bytes, this is enough space to allow VM_MAXCPU to be 21, this patch changes that so VM_MAXCPU can be of arbitrary value and not overflow the space by actually calculating the space needed for the table. PR: 212782 Reviewed by: Patrick Mooney <patrick.mooney@joyent.com> Approved by: bde (mentor), jhb (maintainer) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D18815 Changes: head/usr.sbin/bhyve/acpi.c A commit references this bug: Author: rgrimes Date: Sat May 4 13:43:49 UTC 2019 New revision: 347124 URL: https://svnweb.freebsd.org/changeset/base/347124 Log: MFC: r346715: Acpi MADT table correction for VM_MAXCPU > 21 The bhyve acpi MADT table was given a static space of 256 (0x100) bytes, this is enough space to allow VM_MAXCPU to be 21, this patch changes that so VM_MAXCPU can be of arbitrary value and not overflow the space by actually calculating the space needed for the table. PR: 212782 Reviewed by: Patrick Mooney <patrick.mooney@joyent.com> Approved by: bde (mentor, implicit), jhb (maintainer) Differential Revision: https://reviews.freebsd.org/D18815 Changes: _U stable/11/ stable/11/usr.sbin/bhyve/acpi.c _U stable/12/ stable/12/usr.sbin/bhyve/acpi.c |