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

Yuanjia Yeh <[email protected]>
Newsgroups org.trustedfirmware.lists.op-tee
Message-ID <CABcfEOfmr+xL_uOmmXfQkvZiME0-Mk3-KK1xSS5kCW-ervTTHQ@mail.gmail.com>
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
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.