Re: [PATCH] rust: fix typo in bindings
From: Miguel Ojeda
Date: Wed Sep 30 2026 - 08:45:41 EST
On Tue, Jan 13, 2026 at 8:30 PM Lorenzo Stoakes
<lorenzo.stoakes@xxxxxxxxxx> wrote:
>
> Commit 2b6a3f061f11 ("mm: declare VMA flags by bit") added a number of
> overrides to the rust bindings helper as the change performed in the commit
> caused the rust binder to not be able to automatically determine values of
> VMA flags.
>
> However a typo was introduced leaving VM_MAYSHARE to be incorrectly
> interpreted as VM_MAYEXEC in rust code. This patch fixes the typo.
>
> Fixes: 2b6a3f061f11 ("mm: declare VMA flags by bit")
> Reported-by: Chris Mason <clm@xxxxxxxx>
> Closes: https://lore.kernel.org/all/20260113185142.254821-1-clm@xxxxxxxx/
> Cc: <stable@xxxxxxxxxxxxxxx>
> Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>
Applied to `rust-next` since it doesn't seem urgent, thanks.
[ Reworded to improve title and to fix typo. - Miguel ]
We also have a similar typo in the `bindgen` flags -- just sent a
patch to go on top of this one:
https://lore.kernel.org/rust-for-linux/20260930123645.302318-1-ojeda@xxxxxxxxxx/
Cheers,
Miguel