]> 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)
commitb03e3337bdc06646b8442fbcdf3b963da6038c1a
treea8dda876419c7a5189c32ce64440075534869f2e
parent224f2731093a5bc58d1cfdcde46ac52e4075449c
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