Re: [PATCH v2 0/7] rust_binder : Implement dynamic debug logging mask
From: Greg Kroah-Hartman
Date: Fri Jul 10 2026 - 11:01:52 EST
On Fri, Jul 10, 2026 at 02:32:51PM +0000, Jahnavi MN via B4 Relay wrote:
> When a user-space application sends malformed data or makes a
> lifecycle mistake, the driver rejects it with a generic error code
> (like -EINVAL). Without internal logs, the driver acts as a
> "black box," forcing developers to guess which check failed.
>
> In the legacy C Binder driver, this issue is solved using a dynamic
> debug_mask module parameter that toggles verbose logs for specific
> subsystems. This series brings the same critical capability to the
> Rust Binder driver to provide developers with clear, real-time
> feedback.
>
> Instead of rebuilds, reboots, or guessing:
> - Developers can enable logs instantly on a running device by writing to
> `/sys/module/rust_binder/parameters/debug_mask`.
> - It prints the exact reason for failures (such as alignment errors,
> mismatched call stacks, or invalid handle references) directly into
> `dmesg`, reducing debugging time from hours to seconds.
> - It protects system logs by keeping logging off by default and only
> enabling it when developers are actively troubleshooting.
>
> Based on top of:
> https://lore.kernel.org/rust-for-linux/20260707-upgrade-poll-v6-0-4b8fae7bf1d9@xxxxxxxxxx/
>
> Signed-off-by: Jahnavi MN <jahnavimn@xxxxxxxxxx>
Patches 5 and 7 did not apply to my tree, can you rebase against the
char-misc-testing branch and send just those? Other ones are now all
queued up, nice work!
thanks,
greg k-h