diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2023-08-14 19:12:47 +0300 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2023-09-19 16:11:36 +0000 |
commit | 8dbe33956d96c9d066ef15ca933ede30748198b2 (patch) | |
tree | 4326eefb240bc1483b1fb700e3257106d5916f89 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 79b83606abc778aa3cbee535b362ce905d0b9448 (diff) |
efi/unaccepted: Make sure unaccepted table is mapped
Unaccepted table is now allocated from EFI_ACPI_RECLAIM_MEMORY. It
translates into E820_TYPE_ACPI, which is not added to memblock and
therefore not mapped in the direct mapping.
This causes a crash on the first touch of the table.
Use memblock_add() to make sure that the table is mapped in direct
mapping.
Align the range to the nearest page borders. Ranges smaller than page
size are not mapped.
Fixes: e7761d827e99 ("efi/unaccepted: Use ACPI reclaim memory for unaccepted memory table")
Reported-by: Hongyu Ning <hongyu.ning@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions