Searched hist:"415 e25bb6212b20394f6aa4ee233554a9fe50d86" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/kernel/ |
| H A D | ldelf_loader.c | 415e25bb6212b20394f6aa4ee233554a9fe50d86 Sun Jul 09 05:58:03 UTC 2023 Alvin Chang <alvinga@andestech.com> core: fix ldelf invalid access to user stack with CFG_PAN=y
When CFG_PAN is enabled, OP-TEE kernel can not directly access the user memory, otherwise an exception occurs. To fix it, we apply user-access functions when ldelf gets the parameters from the user stack "arg".
Fixes: 52e7b1a67f8f ("core: use user-access functions in ldelf interaction") Signed-off-by: Alvin Chang <alvinga@andestech.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
|