Section mismatches after applying GrSecurity patch

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

Section mismatches after applying GrSecurity patch

Postby johnspaul92 » Mon Jun 24, 2013 7:56 am

I patched linux kernel 3.2(using the stable patch for 3.2) and kernel 3.8(using the test version of the patch for 3.8) but in both the cases when i compiled the kernel there were over 5000 section mismatches (mostly caused by __init). In most of the places a function is declared as __init but the structure used inside the function doesn't have a __initdata in its definition (i think these might not cause any run time issue but if there are cases where the structure is _init and the funtion is not __init then it will cause a problem right??). So has anyone checked if any of these section mismatches create any problem during runtime??????
johnspaul92
 
Posts: 6
Joined: Mon May 27, 2013 4:17 am

Re: Section mismatches after applying GrSecurity patch

Postby PaX Team » Tue Jun 25, 2013 12:26 pm

the extra section mismatches (on top of the vanilla linux count, that is) are due to PaX detecting writable function pointers as well, not related to __init. if you want to get back the original counts, just revert the hunks applied to scripts/mod/modpost.c.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm


Return to grsecurity support