diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2025-02-27 20:35:11 +0300 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2025-03-13 13:52:05 +0300 |
commit | 74d613e046e418ed512b265aa2ef8a27a761fb4d (patch) | |
tree | bc1a02f4864f39f57b93fbe43cedabfd854722d6 /rust/helpers/helpers.c | |
parent | ac2efaa8455021ce1e6216457684d60a9e2c77fd (diff) | |
download | linux-74d613e046e418ed512b265aa2ef8a27a761fb4d.tar.xz |
efi/libstub: Avoid CopyMem/SetMem EFI services after ExitBootServices
Given that memset/memcpy are intrinsics, the compiler might insert calls
to these routines unexpectedly, including in code that executes after
ExitBootServices(). In this case, the respective boot services are no
longer accessible, and calling them will cause a crash.
So fall back to a bytewise copy/store if this happens to occur, even
though no such occurrences are known to exist in the kernel currently.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions