rust_binder: align scatter-gather buffers to u64

Currently, claim_next() aligns scatter-gather buffer lengths using
ptr_align(), which is 4 bytes on 32-bit systems. However, when userspace
computes the buffers_size, it assumes the kernel will always use 8-byte
alignment. Thus, to align with userspace and C Binder on 32-bit
platforms, update this code to use 64-bit alignment always.

Cc: stable@vger.kernel.org
Fixes: eafedbc7c050 ("rust_binder: add Rust Binder driver")
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20261126-binder-32bit-fixes-v1-4-22fc21baf6f8@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 files changed