Home
last modified time | relevance | path

Searched hist:bcc9201f3fbd4721532dcb4bb409c861d9128b5b (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/drivers/crypto/hisilicon/
H A Dhisi_qm.cbcc9201f3fbd4721532dcb4bb409c861d9128b5b Mon Jan 08 07:35:18 UTC 2024 Zexi Yu <yuzexi@hisilicon.com> driver: crypto: hisilicon: Fix temporary memory risk

When the mailbox operation times out, the software will
free the temporary memory. The hardware does not cancel
the mailbox operation and may continue to read and write
the free memory.
To solve the problem, we alloc buffer which has the same
lifecycle with qm.

Fixes: c7f9abcee87f ("drivers: implement HiSilicon Queue Management (QM) module")
Signed-off-by: Zexi Yu <yuzexi@hisilicon.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>