Re: [PATCH v7 1/7] optee: ffa: Add NULL check in optee_ffa_lend_protmem

Jens Wiklander <[email protected]> Mon, 29 Jun 2026 10:53:33 +0200
Newsgroups org.trustedfirmware.lists.op-tee,dev.linux.lists.kvmarm,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel
Message-ID <CAHUa44GST=efeDepEHWs_=ehr7JVnkg+y0ZLebcLAGZXxpNegA@mail.gmail.com>
Hi,

On Wed, Jun 17, 2026 at 4:51=E2=80=AFPM Sebastian Ene <sebastianene@google.=
com> wrote:
>
> From: Mostafa Saleh <[email protected]>
>
> From: Mostafa Saleh <[email protected]>
>
> 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: 2b78d79cdf96 ("optee: FF-A: dynamic protected memory allocation")
> Signed-off-by: Mostafa Saleh <[email protected]>
> Signed-off-by: Sebastian Ene <[email protected]>
> Reviewed-by: Sumit Garg <[email protected]>
> ---
>  drivers/tee/optee/ffa_abi.c | 3 +++
>  1 file changed, 3 insertions(+)

I'm picking up this isolated patch from the patchset.

Cheers,
Jens