Messages in this thread | | | From | Rusty Russell <> | Subject | Re: [PATCH] NoMoreModuleVmalloc - Try alloc_pages_exact before vmalloc, if fails do vmalloc | Date | Tue, 15 Jul 2014 21:04:17 +0930 |
| |
Lucas Tanure <tanure@linux.com> writes: > Hi Russell, > > I found that project > http://kernelnewbies.org/KernelProjects/NoMoreModuleVmalloc. > So I thought that doing first a alloc_pages_exact would be the goal. > The kernel/module.c doesn't need this task any more, or I just did in > the wrong way ?
Hmm, that's hardly a newbie project!
arch/x86/kernel/module.c contains the module_alloc() code for x86. You'd need to repalce that, and set module_free() too.
And it's not entirely clear that replacing it with kmalloc is actually useful, since it will break CONFIG_DEBUG_SET_MODULE_RONX=y.
Cheers, Rusty.
| |