Patch: grsecurity-2.9.1-3.9.7-201306231443
ARCH=arm
CONFIG_CPU_USE_DOMAINS=y
CONFIG_PAX_MEMORY_UDEREF=y
will result in:
linux-3.9/arch/arm/include/asm/uaccess.h:69:3 error: 'DOMAIN_UDEREF' undeclared (first use in this function)
seems the #ifdef fences of defining DOMAIN_UDEREF in arch/arm/include/asm/domain.h are:
#ifdef CONFIG_CPU_USE_DOMAINS
..
#else
#ifdef CONFIG_PAX_MEMORY_UDEREF
#define DOMAIN_UDEREF ...
#endif
#endif
But uaccess.h uses it after checking for only CONFIG_PAX_MEMORY_UDEREF causing the compile failure.