Re: [PATCH net-next] devlink: Replace strlcat() with seq_buf
Jakub Kicinski <[email protected]> Mon, 20 Jul 2026 16:47:42 -0700
| Newsgroups | org.kernel.vger.linux-hardening,org.kernel.vger.linux-kernel,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 3 Jul 2026 22:49:08 -0500 Ian Bridges wrote: > In preparation for removing the strlcat() API[1], replace its uses in > __devlink_compat_running_version(). > > The function accumulates a variable number of version strings into a > fixed buffer, which is what seq_buf is for. The seq_buf is anchored at > the end of any existing string in the buffer and each version string > is appended with a single seq_buf_printf(). The output is unchanged, > including under truncation. > > Link: https://github.com/KSPP/linux/issues/370 [1] It's fine.