Re: [PATCH v7 2/2] ring-buffer: Skip invalid sub-buffers when validating persistent ring buffer
From: Steven Rostedt
Date: Sun Mar 08 2026 - 22:19:31 EST
On Mon, 9 Mar 2026 09:53:07 +0900
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx> wrote:
> > >
> > > I just realized that the origin didn't have correct grammar. But we
> > > still check the subbufs, why remove that comment?
> > >
> > > The original should have said:
> > >
> > > /* Do the meta buffers and subbufs have correct data? */
> >
> > I just removed the data check from this loop, so I think this should
> > focus on checking metadata itself. The data is checked later.
>
> Other checks in the loop are;
>
> - the entries in meta::buffers[] are inside correct range.
> - the duplicated entries in the meta::buffers[].
>
> So this only checks the meta::buffers[] (index array) now.
>
> /*
> * Ensure the meta::buffers have correct data. The data in each subbufs are
> * checked later in rb_meta_validate_events().
> */
>
> This will be more clear.
Sure.
-- Steve