ACPICA: Do not touch VGA memory when EBDA < 1ki_b
authorVit Kabele <vit@kabele.me>
Thu, 27 Oct 2022 17:50:59 +0000 (19:50 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 28 Oct 2022 15:28:22 +0000 (17:28 +0200)
commit8ff2906513f5ad2f6665b94d1763a26e30bfa47b
tree6f9a96da2a40a1148337bef3bdbf3eb119f59591
parent4fe54f509304ea6cc80a40620cac860c57edf7f3
ACPICA: Do not touch VGA memory when EBDA < 1ki_b

ACPICA commit a36eda9631e84f271319c41288889dd5b1329369

The ACPICA code assumes that EBDA region must be at least 1ki_b in size.
Because this is not guaranteed, it might happen that while scanning the
memory for RSDP pointer, the kernel touches memory above 640ki_b.

This is unwanted as the VGA memory range may not be decoded or
even present when running under virtualization.

Link: https://github.com/acpica/acpica/commit/a36eda96
Signed-off-by: Vit Kabele <vit@kabele.me>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/tbxfroot.c