This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Does AM335x Linux Kernel support "Execute-Never" (NX) bit?

Hi,

I would assume it is common across ARMv7 cores and those Linux kernel, but I just want to double check whether the current TI PSP for AM335x support the NX bit?

Regards,

Chan-Taek Park

  • Park,

    I'm not sure about the kernel support for NX bit. This can be figured out from the kernel code for ARMv7

    But you can test this at user level by writing an application, which copies the text section or a function from text section to the data section. Then you can jump to a function inside the data section and see whether the first instruction gets executed or not. If it results in a segmentation fault, you can assume that NX is supported.