Module compilation check on a grsec kernel
Posted: Sat Jul 06, 2013 9:12 am
I'm currently adapting a kernel module for my own usage (https://github.com/Feandil/netlog/tree/devel/src).
As I am using a kernel patched with grsecurity (Gentoo Harndened 3.9.5), I want to compile it against such a kernel.
On a vanilla kernel, this module compile without any warning, even if I enable the 'sparse' checks (make C=2).
However, on the patched kernel, I have a lot of warnings/errors that are, I think, partially due to the grsecurity patch.
The full compilation log is here: http://dpaste.com/1290896/
So here are my questions:
- Is sparse supported for grsec kernels ?
- Where do those "attribute '${*}': unknown attribute" come from ?
- Is there a documentation on the real meaning of "${file}:${ligne}:${?} note: Function ${fun_name} is missing from the size_overflow hash table +${fun_name}+${?}+${?}+". I guess it means that there is a potential overflow in this function, am I right ?
- Why do I only have 'Section mismatch in reference from the variable' on the grsec kernel and can I fix it ?
Thanks in advance.
As I am using a kernel patched with grsecurity (Gentoo Harndened 3.9.5), I want to compile it against such a kernel.
On a vanilla kernel, this module compile without any warning, even if I enable the 'sparse' checks (make C=2).
However, on the patched kernel, I have a lot of warnings/errors that are, I think, partially due to the grsecurity patch.
The full compilation log is here: http://dpaste.com/1290896/
So here are my questions:
- Is sparse supported for grsec kernels ?
- Where do those "attribute '${*}': unknown attribute" come from ?
- Is there a documentation on the real meaning of "${file}:${ligne}:${?} note: Function ${fun_name} is missing from the size_overflow hash table +${fun_name}+${?}+${?}+". I guess it means that there is a potential overflow in this function, am I right ?
- Why do I only have 'Section mismatch in reference from the variable' on the grsec kernel and can I fix it ?
Thanks in advance.