Question-
Is there a command on Linux systems to see if execution from the stack is allowed?
Background-
Doing a homework assignment that requires a buffer overflow, injecting code into the stack, and overwriting a return address that will set the instruction pointer to the injected code. Everything looks good when stepping though with GDB, but segfaults when trying to execute the first line from the stack. The instruction pointer changes to the correct location, and the instruction is a NOP for testing purposes. I'm wondering if the system is preventing execution from the stack.
Thank you.