Re: [PATCH net-next] net: netlink: warn on overwriting extack message
From: Jakub Kicinski
Date: Thu May 14 2026 - 19:57:31 EST
On Wed, 13 May 2026 22:32:16 +0800 David Yang wrote:
> When NL_SET_ERR_MSG is called more than once on the same extack, the
> existing message is silently overwritten. This is hard to detect via
> static analysis. Emit a rate-limited warning so these cases become
> visible.
I don't think this is worth the bloat.
There's only so much we can do for poorly written code.
--
pw-bot: reject