Re: [PATCH] fuse: avoid 32-bit prune notification count wrap
From: Miklos Szeredi
Date: Tue Jun 09 2026 - 11:02:25 EST
On Tue, 9 Jun 2026 at 02:45, Samuel Moelius <sam.moelius@xxxxxxxxxxxxxxx> wrote:
> Validate the already-subtracted payload length with division and modulo
> instead. That accepts exactly the same valid messages, but avoids
> wrapping arithmetic before the copy loop consumes the count.
Thanks for the patch. I suggest using the more idiomatic array_size() macro.
>
> Assisted-by: Codex:gpt-5.5-cyber-preview
> Signed-off-by: Samuel Moelius <sam.moelius@xxxxxxxxxxxxxxx>
Also please add Fixes: and Cc: stable@... tags.
Thanks,
Miklos