Re: [PATCH 1/2] module: Restrict module namespace access to in-tree modules
From: Masahiro Yamada
Date: Tue Jul 08 2025 - 08:42:10 EST
On Tue, Jul 8, 2025 at 4:29 PM Vlastimil Babka <vbabka@xxxxxxx> wrote:
>
> The module namespace support has been introduced to allow restricting
> exports to specific modules only, and intended for in-tree modules such
> as kvm. Make this intention explicit by disallowing out of tree modules
> both for the module loader and modpost.
>
> Signed-off-by: Vlastimil Babka <vbabka@xxxxxxx>
In my understanding, an external module with the same name
can override the internal one.
This change disallows such a use-case.
--
Best Regards
Masahiro Yamada