Re: [PATCH] MAINTAINERS: add kernel hardening keyword __counted_by_ptr

From: Thorsten Blum

Date: Thu Apr 30 2026 - 10:45:17 EST


On Tue, Apr 14, 2026 at 03:09:28PM +0200, Thorsten Blum wrote:
> In addition to __counted_by, __counted_by_le, and __counted_by_be, also
> match the keyword __counted_by_ptr.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> MAINTAINERS | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 1126fdd639ad..969460c85ad6 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -13889,7 +13889,7 @@ F: scripts/Makefile.randstruct
> F: security/Kconfig.hardening
> K: \b(add|choose)_random_kstack_offset\b
> K: \b__check_(object_size|heap_object)\b
> -K: \b__counted_by(_le|_be)?\b
> +K: \b__counted_by(_le|_be|_ptr)?\b
>
> KERNEL JANITORS
> L: kernel-janitors@xxxxxxxxxxxxxxx

Could you give this another look so that __counted_by_ptr() patches are
also sent to linux-hardening@xxxxxxxxxxxxxxx?

Thanks,
Thorsten