#2422·waydroid

[BUG] rust_binder ENOSPC for large transactions on linux-zen 7.2.2 (CONFIG_ANDROID_BINDER_IPC_RUST=y)

Author: intricos777-dotCreated Sep 18, 2026Updated Sep 24, 2026

Describe the bug

On linux-zen 7.2.2-zen1-1-zen with CONFIG_ANDROID_BINDER_IPC_RUST=y, Waydroid encounters ENOSPC failures for large binder transactions. The rust_binder kernel driver fails to allocate buffers for transactions over ~1 MB, causing HAL services to abort, the container to crash, and surfaceflinger to coredump.

Waydroid version

1.6.3-1

Device

Linux Desktop (Garuda Linux / Arch-based)

Operating System

Garuda Linux

Kernel version

linux-zen 7.2.2-zen1-1-zen

Kernel config

CONFIG_ANDROID_BINDER_IPC_RUST=y
# CONFIG_ANDROID_BINDER_IPC is not set

Logs

[ 3909.318192] rust_binder: Failed to allocate buffer. len:1056768, is_oneway:false
[ 3909.318200] rust_binder: Failure in copy_transaction_data: ENOSPC
[ 3909.318203] rust_binder: 236122:236482 transaction to 235681 failed: ENOSPC

Comparison to working baseline

On linux-zen ≤6.17.x (using classic C binder, CONFIG_ANDROID_BINDER_IPC=y), Waydroid sessions start and the container remains stable. The Rust binder driver enabled in Arch kernels ≥6.18 introduced this regression for large oneway buffers.

Previous related issues

  • Waydroid issue #2157 (closed): audio broken due to binder spin_lock issue — different root cause, fix landed in 6.18.6
  • Arch GitLab #173 (closed): 6.18.x rust_binder affecting Waydroid — same general area, marked completed

This is a distinct issue from the above: the previous fix addressed a spin_lock deadlock; this issue is about buffer allocation ENOSPC for large transactions.

Suggested fix direction

Upstream fix: Darksonn/linux commit 8e28c67 — properly handles large binder transactions in copy_transaction_data so buffer allocation doesn't fail spuriously with ENOSPC when large oneway buffers are requested. Backporting or cherry-picking this commit into linux-zen resolves the regression for Waydroid.

Workarounds

Method Details Caveat
Downgrade kernel Switch to linux-lts or 6.17.x with classic C binder (CONFIG_ANDROID_BINDER_IPC=y) Restores C binder; avoids Rust driver
Disable rust_binder at build Set CONFIG_ANDROID_BINDER_IPC_RUST=n, enable CONFIG_ANDROID_BINDER_IPC=y Requires rebuilding kernel package

No runtime workaround exists.