Home
last modified time | relevance | path

Searched hist:"031 dca8eecde193e5b5e70eb0698fa1d27ce103a" (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/kernel/
H A Dldelf_loader.c031dca8eecde193e5b5e70eb0698fa1d27ce103a Wed Jul 12 12:30:44 UTC 2023 Jens Wiklander <jens.wiklander@linaro.org> core: fix reading result in ldelf_dlopen()

The commit 52e7b1a67f8f ("core: use user-access functions in ldelf
interaction") start to use a bounce buffer to initialize the argument
for LDELF_DL_ENTRY_DLSYM. However, it also reads the result of
LDELF_DL_ENTRY_DLSYM from the bounce buffer. This is an error since the
result of LDELF_DL_ENTRY_DLSYM still remains on the stack used by ldelf.
So fix this by reading the result from the ldelf stack.

Fixes: 52e7b1a67f8f ("core: use user-access functions in ldelf interaction")
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>