[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202507142211.F1E0730A@keescook>
Date: Mon, 14 Jul 2025 22:19:39 -0700
From: Kees Cook <kees@...nel.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: David Laight <david.laight.linux@...il.com>,
Martin Uecker <ma.uecker@...il.com>,
Alejandro Colomar <alx@...nel.org>, linux-mm@...ck.org,
linux-hardening@...r.kernel.org,
Christopher Bazley <chris.bazley.wg14@...il.com>,
shadow <~hallyn/shadow@...ts.sr.ht>, linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
kasan-dev@...glegroups.com, Dmitry Vyukov <dvyukov@...gle.com>,
Alexander Potapenko <glider@...gle.com>,
Marco Elver <elver@...gle.com>, Christoph Lameter <cl@...ux.com>,
David Rientjes <rientjes@...gle.com>,
Vlastimil Babka <vbabka@...e.cz>,
Roman Gushchin <roman.gushchin@...ux.dev>,
Harry Yoo <harry.yoo@...cle.com>,
Andrew Clayton <andrew@...ital-domain.net>,
Rasmus Villemoes <linux@...musvillemoes.dk>,
Michal Hocko <mhocko@...e.com>, Al Viro <viro@...iv.linux.org.uk>,
Sam James <sam@...too.org>, Andrew Pinski <pinskia@...il.com>
Subject: Re: [RFC v5 6/7] sprintf: Add [v]sprintf_array()
On Fri, Jul 11, 2025 at 10:58:56AM -0700, Linus Torvalds wrote:
> struct seq_buf s;
> seq_buf_init(&s, buf, szie);
And because some folks didn't like this "declaration that requires a
function call", we even added:
DECLARE_SEQ_BUF(s, 32);
to do it in 1 line. :P
I would love to see more string handling replaced with seq_buf.
--
Kees Cook
Powered by blists - more mailing lists