compile error undefined module_alloc_exec

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

compile error undefined module_alloc_exec

Postby yao.zhao » Mon Dec 10, 2012 1:32 pm

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
yao.zhao
 
Posts: 6
Joined: Mon Oct 29, 2012 4:22 pm

Re: compile error undefined module_alloc_exec

Postby PaX Team » Mon Dec 10, 2012 3:17 pm

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 ;).
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: compile error undefined module_alloc_exec

Postby yao.zhao » Mon Dec 10, 2012 4:03 pm

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
yao.zhao
 
Posts: 6
Joined: Mon Oct 29, 2012 4:22 pm


Return to grsecurity support