Page 1 of 1

Section mismatches after applying GrSecurity patch

PostPosted: Mon Jun 24, 2013 7:56 am
by johnspaul92
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??????

Re: Section mismatches after applying GrSecurity patch

PostPosted: Tue Jun 25, 2013 12:26 pm
by PaX Team
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.