On Wed, 26 Aug 2026 11:38:03 +0800, Jianping Li wrote:
> Allocating and freeing Audio PD memory from userspace is unsafe because
> the kernel cannot reliably determine when the DSP has finished using the
> memory. Userspace may free buffers while they are still in use by the DSP,
> and remote free requests cannot be safely trusted.
>
> Additionally, the current implementation allows userspace to repeatedly
> grow the Audio PD heap, but does not support shrinking it. This can lead
> to unbounded memory usage over time, effectively causing a memory leak.
>
> [...]
Applied, thanks!
[1/1] misc: fastrpc: Allocate entire reserved memory for Audio PD in probe
commit: 9981fbe599e80d0fa264b714ebf14d8d80d9790a
Best regards,
--
Srinivas Kandagatla <[email protected]>