Back to Home

Enable NX-bit in 32-bit core on 64-bit CPU

linux kernel · nx · 32bit · 64bit · x86

Enable NX-bit in 32-bit core on 64-bit CPU

    After reading en.wikipedia.org/wiki/NX_bit#Linux, I learned that Linux has long (since 2.6.8) supported NX-bits for 64-bit CPUs, even if the kernel is 32-bit.
    In the list of changes I found a link to instructions for its inclusion. You just need to rebuild the kernel by enabling the option CONFIG_HIGHMEM64G.

    After rebuilding the kernel, modules, and rebooting the system.
    # dmesg | grep NX

    It should be shown: I
    NX (Execute Disable) protection: active

    didn’t notice a decrease in performance, and, theoretically, the security improved.

    The transition to the 64-bit kernel is prevented by a couple of proprietary packages that do not have 64-bit assemblies. And I don’t want to install multilib (additionally 32-bit libraries).

    Read Next