Re: [PATCH -v4 2/2] printk: Add kernel parameter to control writes to /dev/kmsg

From: Dave Young
Date: Fri Jul 15 2016 - 02:21:28 EST


On 07/08/16 at 11:18am, Borislav Petkov wrote:
> From: Borislav Petkov <bp@xxxxxxx>
>
> Add a "printk.devkmsg" kernel command line parameter which controls how
> userspace writes into /dev/kmsg. It has three options:
>
> * ratelimit - ratelimit logging from userspace.
> * on - unlimited logging from userspace
> * off - logging from userspace gets ignored
>
> The default setting is to ratelimit the messages written to it.

Sorry for jumping in late. But I just see this today and I really like the
idea to add a switch to turn off the kmsg writing from userspace because
I suffer from it also.

I may missed the background, what is the reason for "ratelimit"? It sounds
a little odd. I think use default "on" should be safe to keep same behavior
as before.

Thanks
Dave