ACPI, APEI, EINJ: Refuse to inject into the zero page
authorTony Luck <tony.luck@intel.com>
Tue, 19 Apr 2022 21:19:21 +0000 (14:19 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 22 Apr 2022 14:52:27 +0000 (16:52 +0200)
commitab59c89396c007c360b1a4d762732d1621ff5456
treea8dda876419c7a5189c32ce64440075534869f2e
parenta090931524d03a4975c84b89a32210420d852313
ACPI, APEI, EINJ: Refuse to inject into the zero page

Some validation tests dynamically inject errors into memory used by
applications to check that the system can recover from a variety of
poison consumption sceenarios.

But sometimes the virtual address picked by these tests is mapped to
the zero page.

This causes additional unexpected machine checks as other processes that
map the zero page also consume the poison.

Disallow injection to the zero page.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/apei/einj.c