]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b244b52758cd6750b65c9c7cbf3379ee4c63911
treea8dda876419c7a5189c32ce64440075534869f2e
parente7591faeacef206be3c429dda3e25b09f805e2e4
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