The nvidia-kernel module uses PAGE_SHARED, but PAGE_SHARED is called PAGE_SHARED_EXEC and PAGE_SHARED_NOEXEC if CONFIG_GRSECURITY_PAX or CONFIG_GRSECURITY_PAX_RANDMMAP are defined (defined in /usr/src/linux/include/asm/pgtable.h). This results in a compile error. I created a patch that at least makes it compile, but have not tested if it really makes it work under PAX yet.
Created attachment 728 [details, diff] Make nvidia-kernel compile if PAX is turned on in the kernel config Not tested wether it really works yet, only compiled it.
*** This bug has been marked as a duplicate of 2133 ***