[PATCH v7 1/7] optee: ffa: Add NULL check in optee_ffa_lend_protmem
Sebastian Ene
sebastianene at google.com
Tue Jun 30 03:13:33 PDT 2026
On Mon, Jun 29, 2026 at 10:53:33AM +0200, Jens Wiklander wrote:
> Hi,
>
> On Wed, Jun 17, 2026 at 4:51 PM Sebastian Ene <sebastianene at google.com> wrote:
> >
> > From: Mostafa Saleh <smostafa at google.com>
> >
> > From: Mostafa Saleh <smostafa at google.com>
> >
> > 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 <smostafa at google.com>
> > Signed-off-by: Sebastian Ene <sebastianene at google.com>
> > Reviewed-by: Sumit Garg <sumit.garg at oss.qualcomm.com>
> > ---
> > drivers/tee/optee/ffa_abi.c | 3 +++
> > 1 file changed, 3 insertions(+)
>
> I'm picking up this isolated patch from the patchset.
Thanks for letting me know, I will spin a v8 but not include this patch
anymore since you picked it.
>
> Cheers,
> Jens
Sebastian
More information about the linux-arm-kernel
mailing list