Page 1 of 1

compile error undefined module_alloc_exec

PostPosted: Mon Dec 10, 2012 1:32 pm
by yao.zhao
Hi,

I am compiling grsecurity enabled kernel but getting this error:
In function `module_alloc_update_bounds_rx'
linux/kernel/module.c:1851: undefined reference to `module_free_exec'
In function `module_deallocate'
linux/kernel/module.c:2965: undefined reference to `module_free_exec'

...

in module.h it has the declaration, but it is defined only for x86 platform.

is ppc supported for PAX_KERNEXEC?

thanks,
yao

Re: compile error undefined module_alloc_exec

PostPosted: Mon Dec 10, 2012 3:17 pm
by PaX Team
yao.zhao wrote:is ppc supported for PAX_KERNEXEC?
it isn't, the Kconfig should not allow it on ppc, i'll fix it in the next patch. on the other hand if you feel like working on ppc support, you're welcome ;).

Re: compile error undefined module_alloc_exec

PostPosted: Mon Dec 10, 2012 4:03 pm
by yao.zhao
Thanks Pax Team.

I defined it to module_alloc or module_free for ppc to pass the ppc build, it does boot. Although there are some problems but I am not quite familiar with these code, will dig a little bit when got time.

But good to know it doesn't support ppc for now.

yao