Re: [PATCH v3] misc: fastrpc: Fix double free and races in fastrpc_req_mmap() error path
From: Julius Bairaktaris
Date: Wed Nov 11 2026 - 03:33:45 EST
On Wed, 30 Sep 2026 07:13:40 +0000, Yao Yiqi wrote:
> Fix this by adding the buffer to fl->mmaps only after copy_to_user() has
> succeeded, so the buffer is not visible to a concurrent unmap while the
> response is still being copied.
The double free is still in mainline at 067c5c24cef2 and in
char-misc-next at 37a87cdaa3e2, and v3 no longer applies to either:
9e47ad9c562e ("misc: fastrpc: Allocate entire reserved memory for Audio
PD in probe") removed the remote heap block above the first hunk.
Could you rebase it onto char-misc-next and send a v4?
Reviewed-by: Julius Bairaktaris <julius@xxxxxxxxxxxxxx>