Re: [PATCH] wifi: mac80211: Replace strncpy() with strscpy_pad() in drv_switch_vif_chanctx tracepoint
From: Johannes Berg
Date: Mon Mar 23 2026 - 13:42:50 EST
On Mon, 2026-03-23 at 10:20 -0700, Kees Cook wrote:
> ring buffer. Since ring buffer entries are not zeroed on allocation,
>
> No behavioral change: since interface names are always at most 15
> characters plus a NUL terminator, strscpy_pad() with size IFNAMSIZ (16)
> produces identical output to the original strncpy().
This doesn't add up - if it's not zero-filled on allocation, then it
*is* a (desired) behaviour change?
johannes