The stack smashing attack injects an attack code in the stack, which is executed when the function returns. One of the core features of the Solar Designer's Linux kernel patch [17] is to make the stack segment non-executable. This patch does not impose any performance penalty nor does it require program recompilation (except for the operating system kernel).