I am having trouble getting PAX to work on kernel 2.6.2. I have the new stable kernel release, the original from the kernel.org sources. I grabbed the PAX patch for 2.6.2 and applied it. My system is an Athlon with standard PC components, IDE drives, NVidia graphics, etc. Here are the relevant PAX options I enabled in the kernel config:
#
# PaX
#
CONFIG_PAX=y
#
# PaX Control
#
# CONFIG_PAX_SOFTMODE is not set
# CONFIG_PAX_EI_PAX is not set
CONFIG_PAX_PT_PAX_FLAGS=y
CONFIG_PAX_NO_ACL_FLAGS=y
# CONFIG_PAX_HAVE_ACL_FLAGS is not set
# CONFIG_PAX_HOOK_ACL_FLAGS is not set
#
# Non-executable pages
#
CONFIG_PAX_NOEXEC=y
# CONFIG_PAX_PAGEEXEC is not set
CONFIG_PAX_SEGMEXEC=y
# CONFIG_PAX_EMUTRAMP is not set
CONFIG_PAX_MPROTECT=y
CONFIG_PAX_NOELFRELOCS=y
#
# Address Space Layout Randomization
#
CONFIG_PAX_ASLR=y
# CONFIG_PAX_RANDKSTACK is not set
CONFIG_PAX_RANDUSTACK=y
CONFIG_PAX_RANDMMAP=y
# CONFIG_PAX_RANDEXEC is not set
I'm not really sure what I've missed, everything built cleanly and the new kernel runs just fine. But none of the PAX functions seem to work. When I ran paxtest 0.9.5, it came back and reported everything as vulnerable and no randomization.
Any ideas what I've done wrong? Any suggestions (even pointing me to the doc I should have read but missed)? Thanks!