summaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorJames Morse2019-01-29 19:48:39 +0100
committerRafael J. Wysocki2019-02-07 23:10:44 +0100
commit0ac234be1a9497498e57d958f4251f5257b116b4 (patch)
tree87adcd1515c57060d131dd29d8cbccb55c386354 /include/acpi
parentACPI / APEI: Remove silent flag from ghes_read_estatus() (diff)
downloadkernel-qcow2-linux-0ac234be1a9497498e57d958f4251f5257b116b4.tar.gz
kernel-qcow2-linux-0ac234be1a9497498e57d958f4251f5257b116b4.tar.xz
kernel-qcow2-linux-0ac234be1a9497498e57d958f4251f5257b116b4.zip
ACPI / APEI: Switch estatus pool to use vmalloc memory
The ghes code is careful to parse and round firmware's advertised memory requirements for CPER records, up to a maximum of 64K. However when ghes_estatus_pool_expand() does its work, it splits the requested size into PAGE_SIZE granules. This means if firmware generates 5K of CPER records, and correctly describes this in the table, __process_error() will silently fail as it is unable to allocate more than PAGE_SIZE. Switch the estatus pool to vmalloc() memory. On x86 vmalloc() memory may fault and be fixed up by vmalloc_fault(). To prevent this call vmalloc_sync_all() before an NMI handler could discover the memory. Signed-off-by: James Morse <james.morse@arm.com> Reviewed-by: Borislav Petkov <bp@suse.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
0 files changed, 0 insertions, 0 deletions