On 2025-07-02, Petr Mladek <pmla...@suse.com> wrote:
> The KUnit test ignores prb_reserve() failures on purpose. It tries
> to push the ringbuffer beyond limits.
>
> Note that it is a know problem that writes might fail in this situation.
> printk() tries to prevent this problem by:
>
>   + allocating big enough data buffer, see log_buf_add_cpu().
>
>   + allocating enough descriptors by using small enough average
>     record, see PRB_AVGBITS.
>
>   + storing the record with disabled interrupts, see vprintk_store().
>
> Also the amount of printk() messages is always somehow bound in
> practice. And they are serialized when they are printed from
> many CPUs on purpose, for example, when printing backtraces.
>
> Signed-off-by: Petr Mladek <pmla...@suse.com>

Reviewed-by: John Ogness <john.ogn...@linutronix.de>

Reply via email to