Re: [PATCH v5 06/12] seq_buf: Add seq_buf_strlen()
From: Steven Rostedt
Date: Thu Oct 22 2026 - 16:28:15 EST
On Thu, 22 Oct 2026 22:11:27 +0200
Alejandro Colomar <alx+linux-hardening@xxxxxxxxxx> wrote:
> Agree.
>
> But still, a better design would do:
>
> static inline void
> seq_buf_set_overflow(struct seq_buf *s)
> {
> s->p = NULL;
> }
>
> This is way more robust, and also easier to understand. My head is
> boiling when trying to review this patch set for correctness. That's
> not a good sign.
But that loses all data. We still want access to what was written.
-- Steve