linux/drivers/tee/optee
Mostafa Saleh 650c88738a optee: ffa: Add NULL check in optee_ffa_lend_protmem
Sashiko (locally) reports a possible null dereference under memory
pressure due to the lack of validation of the allocated pointer.

Fix that by adding the missing check.

Fixes: 2b78d79cdf ("optee: FF-A: dynamic protected memory allocation")
Signed-off-by: Mostafa Saleh <smostafa@google.com>
Signed-off-by: Sebastian Ene <sebastianene@google.com>
Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Reviewed-by: Sebastian Ene <sebastianene@google.com>
Signed-off-by: Jens Wiklander <jenswi@kernel.org>
2026-06-29 08:04:45 +02:00
..
call.c tee: optee: Allow MT_NORMAL_TAGGED shared memory 2026-04-27 14:13:14 +02:00
core.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
device.c optee: simplify OP-TEE context match 2026-03-04 08:33:31 +01:00
ffa_abi.c optee: ffa: Add NULL check in optee_ffa_lend_protmem 2026-06-29 08:04:45 +02:00
Kconfig optee: support protected memory allocation 2025-09-11 11:22:36 +02:00
Makefile optee: FF-A: dynamic protected memory allocation 2025-09-11 11:22:40 +02:00
notif.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
optee_ffa.h optee: sync secure world ABI headers 2025-09-11 11:22:12 +02:00
optee_msg.h tee: optee: fix kernel-doc warnings 2026-04-27 14:13:14 +02:00
optee_private.h tee: optee: fix kernel-doc warnings 2026-04-27 14:13:14 +02:00
optee_rpc_cmd.h optee: probe RPMB device using RPMB subsystem 2024-08-26 13:16:20 +02:00
optee_smc.h optee: sync secure world ABI headers 2025-09-11 11:22:12 +02:00
optee_trace.h tee: optee: add invoke_fn tracepoints 2021-03-15 12:04:01 +01:00
protmem.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
rpc.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
smc_abi.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
supp.c tee: optee: prevent use-after-free when the client exits before the supplicant 2026-03-02 14:36:50 +01:00