Page 1 of 1

Latest patch did not compile

PostPosted: Mon Oct 30, 2006 4:34 pm
by Quix0r
I use latest patch (grsecurity-2.1.9-2.6.18.1-200610281533.patch) with vanilla 2.6.18.1 kernel and I get these error messages:

kernel/module.c:1142: error: structure has no member named `module_core'
kernel/module.c:1142: error: structure has no member named `core_size'


The fix is simple: Your patch removed the declaration in module.h so it failes here. ;)

Just in case...

Quix0r

Edit:

Add this code in somewhere around line 295 (include/linux/module.h)

Code: Select all
void *module_core;
unsigned long init_size, core_size;


This may fix it again.

Re: Latest patch did not compile

PostPosted: Thu Nov 02, 2006 4:16 am
by PaX Team
Quix0r wrote:kernel/module.c:1142: error: structure has no member named `module_core'
kernel/module.c:1142: error: structure has no member named `core_size'
thanks for the report, the proper fix is in the latest PaX test patch.
The fix is simple: Your patch removed the declaration in module.h so it failes here. ;)
the fields are not removed, rather they're split up into two fields (to separate executable/non-executable module segments, necessary for KERNEXEC/modul support) and i didn't see that Ingo's lockdep changes in .18 also touched this code, should be good now.

PostPosted: Thu Nov 02, 2006 7:06 am
by Quix0r
Ah, okay. :)

I will download and test this patch this evening... ;)

PostPosted: Fri Nov 10, 2006 11:10 am
by spender
The fix from the PaX team has been included in the latest 2.6.18.2 patch on the website.

-Brad