Re: [PATCH net-next v3 2/2] KEYS: annotate struct user_key_payload with __counted_by
"Gustavo A. R. Silva" <[email protected]> Sun, 10 May 2026 14:32:40 -0600
| Newsgroups | org.kernel.vger.keyrings,org.kernel.vger.linux-hardening |
|---|---|
| Message-ID | <[email protected]> |
On 5/10/26 04:47, Thorsten Blum wrote: > On Sat, May 09, 2026 at 02:24:01PM +0300, Jarkko Sakkinen wrote: >> On Mon, Apr 27, 2026 at 01:44:24PM +0200, Thorsten Blum wrote: >>> Add the __counted_by() compiler attribute to the flexible array member >>> 'data' to improve bounds checking via CONFIG_UBSAN_BOUNDS and >>> CONFIG_FORTIFY_SOURCE. >>> >>> Signed-off-by: Thorsten Blum <[email protected]> >> >> This is again a crippled commit message. >> >> I.e. this requires either knowing, remembering and/or cross-referencing >> "bunch of" unrelated to keyring. > > I kept the commit message short because it follows the same pattern as > many other __counted_by() patches that have been accepted across several > subsystems. That's clearly not a good example of how to document changes, so I wouldn't use it as a reference. -Gustavo