On Wed, Jul 9, 2025 at 12:08 AM Vlastimil Babka <vbabka@xxxxxxx> wrote: > > On 7/8/25 14:41, Masahiro Yamada wrote: > > 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. > > Hmm I'm not familiar with this, but for such cases to be legitimate we can > assume the external module has to be derived from the internal one and not > something completely unrelated impersonating the internal one? So in that > case just patch 2 alone would be sufficient and not break any legitimate use > cases? > IIRC, nvdimm uses this feature for testing. In-tree drivers: drivers/nvdimm/Makefile Out-of-tree drivers: tools/testing/nvdimm/Makefile tools/testing/nvdimm/Kbuild -- Best Regards Masahiro Yamada