Re: [PATCH v5] tee: optee: prevent use-after-free when the client exits before the supplicant

Jens Wiklander <[email protected]>
Newsgroups org.trustedfirmware.lists.op-tee
Message-ID <CAHUa44EcHjWqJXNgKG=9Pb2yX9k11+8RkjJA=LE3GfqC=qkb-g@mail.gmail.com>
Hi,

On Wed, Feb 25, 2026 at 8:54 AM Yuanjia Yeh <[email protected]> wrote:
>
> Hi all,
>
> We can reproduce the reported use-after-free issue on our platform via an
> overnight reboot test
>
> The verifications are listed as the following
>
> - With v2 + Michael Wu's patch: Issue resolved.
> - With v4: Race condition observation and already report to Amir
> - With v5: Race fixed. Stable in our tests, including:
>       xtest + reboot loop (300 cycles)
>       continuous reboot test (1000 cycles)
>
>   No regressions observed with v5.
>
> If there are no other concerns, we recommend adopting v5.
>
> If needed, please add the following tag:
> Tested-by: Ox Yeh <[email protected]>
>
> Yuanjia Yeh

Thanks for testing. Sumit, with this Tested-by are, you OK with the
patch? I've tested it locally and it doesn't break anything for me.

Cheers,
Jens
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.