Re: [PATCH 2/2] rust_binder: reject mremap()

From: Carlos Llamas

Date: Mon Aug 31 2026 - 22:37:51 EST


On Mon, Aug 31, 2026 at 10:41:43PM +0000, Carlos Llamas wrote:
> Binder does not support mremap() as it caches the mapping address in
> Inner::vma_addr. Moving the mapping breaks the IPC communication for the
> process and can temporarily leak pages during a shrinker reclaim.
>
> Fix this by explicitly rejecting the .mremap() operation.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: eafedbc7c050 ("rust_binder: add Rust Binder driver")
> Reported-by: Sashiko <sashiko-bot@xxxxxxxxxx>
> Closes: https://sashiko.dev/#/patchset/20260813193433.3318288-1-surenb%40google.com?part=2
> Signed-off-by: Carlos Llamas <cmllamas@xxxxxxxxxx>
> ---

Sashiko had a couple of good points that I'll be addressing in v2.
--
Carlos Llamas