Re: [PATCH v5 03/10] ring-buffer: Make cpu_buffer::free_page a buffer_data_read_page

Steven Rostedt <[email protected]>
Newsgroups org.kernel.vger.linux-trace-kernel,dev.linux.lists.sashiko-reviews
Message-ID <[email protected]>
On Thu, 13 Aug 2026 13:56:13 +0000
[email protected] wrote:

> This returns -1, which tracing_buffers_read() treats as EOF. Subsequent
> reads see info->spare_size == page_size, reuse the bad page, and
> permanently return EOF.

If you are resizing the ring buffer at the same time as reading
trace_pipe_raw, yeah you may get garbage or an early EOF.

It's stupid to do.

-- Steve
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.