Re: [RFC PATCH v2 1/2] printk-rb: add a new printk ringbuffer implementation

From: Sergey Senozhatsky
Date: Wed Jun 26 2019 - 03:59:17 EST


On (06/26/19 09:47), Petr Mladek wrote:
[..]
> If the data might change under the hood then we have bigger
> problems. For example, there might be a race when the trailing
> "\0" has not been written yet.

Current printk would not handle such cases. I'm only talking about
transition from one consistent state to another, when
sprintf(NULL, ptr) == A && sprintf(buf, ptr) != A
Wether it's a corner case or not is entirely unclear to me but I
probably would not call it "an impossible scenario".

-ss