Re: [PATCH] MAINTAINERS: Fix Intel TDX kernel file patterns

From: Joe Perches

Date: Fri Oct 30 2026 - 13:22:47 EST


On Thu, 2026-10-29 at 19:33 -0700, Borislav Petkov wrote:
> ```
> From: "Borislav Petkov (AMD)" <[bp@xxxxxxxxx](mailto:bp@xxxxxxxxx)>
> Date: Thu, 29 Oct 2026 19:25:27 -0700
>
> A K: is a content regex file pattern which matches any text in a patch
> so if a commit message contains "TDx" as in
>
> the TDxE (Transmit Data Empty) flag
>
> for example, see
>
> [https://lore.kernel.org/r/20261026-g2ul_sci-v3-3-b3097163edd5@xxxxxxxxxxxxxx](https://lore.kernel.org/r/20261026-g2ul_sci-v3-3-b3097163edd5@xxxxxxxxxxxxxx)
>
> get_maintainer.pl erroneously adds the x86 gang to the Cc list for what
> obviously is a completely unrelated patch.
>
> The same happens when someone uses it to check
>
> drivers/power/reset/tdx-ec-poweroff.c
>
> patches.
>
> So switch the x86 TDX patterns to files and directories (N:) type
> patterns and group them by path, for less false positives.

It's probably better to use F: and not N:

> diff --git a/MAINTAINERS b/MAINTAINERS
> index 7a162e9bcab1..6aaeb7df83c8 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -30347,8 +30347,11 @@ L: [linux-coco@xxxxxxxxxxxxxxx](mailto:linux-coco@xxxxxxxxxxxxxxx)
> L: [kvm@xxxxxxxxxxxxxxx](mailto:kvm@xxxxxxxxxxxxxxx)
> S: Supported
> T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/tdx
> -N: tdx
> -K: \b(tdx)
> +N: arch/x86/.*tdx

F: arch/x86/**/*tdx*

> +N: Documentation/.*tdx

F: Documentation/**/*tdx*

> +N: drivers/virt/coco/.*tdx

F: drivers/virt/coco/tdx*/

> +N: include/uapi/linux/.*tdx

F: include/uapi/linux/tdx-guest.h

> +N: tools/testing/selftests/tdx

F: tools/testing/selftests/tdx/