|
|
Subscribe / Log in / New account

Designing ELF modules

Designing ELF modules

Posted Mar 14, 2018 15:10 UTC (Wed) by mwsealey (subscriber, #71282)
Parent article: Designing ELF modules

> The downside of these approaches is that they load the module code into kernel memory, which is not pageable.

Why doesn't someone work to fix that desperately 1990's behavior? Other modern OSs can page kernel memory, and they're based on code from the 1970's :]

It's not a requirement to be able to swap out ANY kernel memory location (i.e. not the kernel text or static data sections), just stuff allocated through a particular API, perhaps. In later years we might be able to back vmalloc() as pageable memory and kmalloc() too with a flag - with the march towards HSA any device that needs a swapped-out page would go through the same process of causing an exception/interrupt via an IOMMU so it can be brought back in. Someone would just have to figure out the security implications of putting data in swappable memory - I think this would be classed as more a defensive programming technique than a kernel feature, though.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds