On 8/8/25 4:17 PM, David Hildenbrand wrote: > On 08.08.25 15:28, Vlastimil Babka wrote: >> Christoph suggested that the explicit _GPL_ can be dropped from the >> module namespace export macro, as it's intended for in-tree modules >> only. It would be possible to restrict it technically, but it was >> pointed out [2] that some cases of using an out-of-tree build of an >> in-tree module with the same name are legitimate. > > I'm wondering if we could revisit that idea later, and have a config > option that enables that. The use cases so far were mostly around > testing IIRC, where people already run their own debug kernel or sth. > like that. I don't know. It made sense to do this in-tree restriction when it looked like it could be done unconditionally. But if it would need to be opt-in config, I think there's little gain. As noted in the lwn coverage, the metadata can be easily faked anyway. AFAIK the only serious module loading restriction is then the module signing, so this would be just a mostly pointless config option?