]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ACPI: APEI: EINJ: Check if user asked for EINJV2 injection
authorTony Luck <tony.luck@intel.com>
Thu, 14 Aug 2025 16:17:06 +0000 (09:17 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 18 Aug 2025 16:07:38 +0000 (18:07 +0200)
commit6c705851499172c0ce863e816946fb5a564ff69f
treeff5fb9089e5e2bcb66314cc99a9b9bb679fc2da7
parentc17b750b3ad9f45f2b6f7e6f7f4679844244f0b9
ACPI: APEI: EINJ: Check if user asked for EINJV2 injection

On an EINJV2 capable system, users may still use the old injection
interface but einj_get_parameter_address() takes the EINJV2 path to map
the parameter structure. This results in the address the user supplied
being stored to the wrong location and the BIOS injecting based on an
uninitialized field (0x0 in the reported case).

Check the version of the request when mapping the EINJ parameter
structure in BIOS reserved memory.

Fixes: 691a0f0a557b ("ACPI: APEI: EINJ: Discover EINJv2 parameters")
Reported-by: Lai, Yi1 <yi1.lai@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Zaid Alali <zaidal@os.amperecomputing.com>
Reviewed-by: Hanjun Guo <gouhanjun@huawei.com>
Link: https://patch.msgid.link/20250814161706.4489-1-tony.luck@intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/apei/einj-core.c