Latest patch did not compile

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

Latest patch did not compile

Postby Quix0r » Mon Oct 30, 2006 4:34 pm

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.
Quix0r
 
Posts: 2
Joined: Mon Oct 30, 2006 4:30 pm

Re: Latest patch did not compile

Postby PaX Team » Thu Nov 02, 2006 4:16 am

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

Postby Quix0r » Thu Nov 02, 2006 7:06 am

Ah, okay. :)

I will download and test this patch this evening... ;)
Quix0r
 
Posts: 2
Joined: Mon Oct 30, 2006 4:30 pm

Postby spender » Fri Nov 10, 2006 11:10 am

The fix from the PaX team has been included in the latest 2.6.18.2 patch on the website.

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm


Return to grsecurity support

cron