login
Header Space

 
 

Linux 2.6 Stack Protection

October 12, 2005 - 4:07am
Submitted by xwings on October 12, 2005 - 4:07am.

Title : Linux 2.6 Stack Protection
O/S : Linux
Distro : ALL (Tested on Slackware and Kubuntu)

Since Kernel 2.6.12 onwards, Linux kernel add in stack protection by default.

The stack is randomized within an 8Mb range and applies to ELF binaries.
The patch intedned to be an addition to the NX support that was added to the 2.6 kernel earlier as well.
This paper however addressed it as solo.

To disable va_space :

echo "kernel.randomize_va_space = 0" >> /etc/sysctl.conf
/sbin/sysctl -p /etc/sysctl.conf

speck-geostationary