[PATCH] MAINTAINERS: add kernel hardening keyword __counted_by_ptr

Thorsten Blum posted 1 patch 2 months ago
MAINTAINERS | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] MAINTAINERS: add kernel hardening keyword __counted_by_ptr
Posted by Thorsten Blum 2 months ago
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@linux.dev>
---
 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@vger.kernel.org
Re: [PATCH] MAINTAINERS: add kernel hardening keyword __counted_by_ptr
Posted by Kees Cook 1 month ago
On Tue, 14 Apr 2026 15:09:28 +0200, Thorsten Blum wrote:
> In addition to __counted_by, __counted_by_le, and __counted_by_be, also
> match the keyword __counted_by_ptr.
> 
> 

Applied to for-next/hardening, thanks!

[1/1] MAINTAINERS: add kernel hardening keyword __counted_by_ptr
      https://git.kernel.org/kees/c/e0251b5e07f3

Take care,

-- 
Kees Cook
Re: [PATCH] MAINTAINERS: add kernel hardening keyword __counted_by_ptr
Posted by Thorsten Blum 1 month, 2 weeks ago
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@linux.dev>
> ---
>  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@vger.kernel.org

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

Thanks,
Thorsten