Get the latest tech news
Microsoft Makes An Interesting Improvement To Kernel Modules With Linux 6.13
Sent out on Tuesday was the modules pull request for Linux 6.13 that have some low-level improvements but it noted that the biggest kernel modules highlight wasn't in that pull request itself but had been added by way of the memory management pull
One option is to use text patching, but this would make module loading extremely slow and will expose executable code that is not finally formed. A better way is to have memory allocated with ROX permissions contain invalid instructions and keep a writable, but not executable copy of the module text. The patch to add support for caching of large ROX pages is where things get more enticing for reducing TLB instruction pressure and improving performance:"Using large pages to map text areas reduces iTLB pressure and improves performance."
Or read this on Phoronix