aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sccnxp.c
diff options
context:
space:
mode:
authorArd Biesheuvel <[email protected]>2025-02-27 17:35:11 +0000
committerArd Biesheuvel <[email protected]>2025-03-13 10:52:05 +0000
commit74d613e046e418ed512b265aa2ef8a27a761fb4d (patch)
treebc1a02f4864f39f57b93fbe43cedabfd854722d6 /drivers/tty/serial/sccnxp.c
parentefi: efibc: change kmalloc(size * count, ...) to kmalloc_array() (diff)
downloadkernel-74d613e046e418ed512b265aa2ef8a27a761fb4d.tar.gz
kernel-74d613e046e418ed512b265aa2ef8a27a761fb4d.zip
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 <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions