Re: [PATCH v1] remoteproc: qcom_q6v5_mss: Leak metadata buffer if reclaim fails
From: Bjorn Andersson
Date: Sun Nov 08 2026 - 15:12:56 EST
On Thu, 05 Nov 2026 12:32:24 -0500, Yuho Choi wrote:
> When the device tree describes no "metadata" memory region,
> q6v5_mpss_init_image() allocates the MPSS metadata buffer with
> dma_alloc_attrs(), assigns it to the modem and asks the MBA to
> authenticate it. It then calls q6v5_xfer_mem_ownership() again to
> assign the buffer back to HLOS.
>
> If that second call fails, the buffer is still assigned to the modem,
> but the function only warns and then returns the buffer to the DMA
> allocator. The pages can then be reused by another part of the kernel
> while the modem can still access them.
>
> [...]
Applied, thanks!
[1/1] remoteproc: qcom_q6v5_mss: Leak metadata buffer if reclaim fails
commit: 3f4f7571c001b04622be50c288c73ec8f320beca
Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>