Re: [PATCH v4 0/5] Rate limited printing for Rust

From: Greg Kroah-Hartman

Date: Fri Jul 31 2026 - 05:13:13 EST


On Tue, Jul 28, 2026 at 09:32:50AM +0000, Alice Ryhl wrote:
> To avoid DoS on the kernel log, the Rust Binder driver is being switched
> to rate limited printing. But before we can do that, we must first
> implement rate limited printing for Rust. Thus, do that.
>
> However, it turns out that before we can implement rate limited
> printing, we must first implement the ability declare a raw_spinlock_t
> in a global variable. Thus, do that too.
>
> Based on top of char-misc-next plus this patch:
> https://lore.kernel.org/all/20260728061236.198267-1-aliceryhl@xxxxxxxxxx/

Doesn't apply on my branch anymore, perhaps due to the other binder
patches I just accepted?

Ideally the rate-limit stuff could go through the rust tree, but that
would delay this a release cycle, so I don't mind taking this through
char-misc, if someone wants to rebase it yet-again :)

thanks,

greg k-h