Glibc Rolls Out Support For Memory Protection Keys
Written by Michael Larabel in Intel on 5 December 2017 at 11:04 AM EST. Add A Comment
While kernel side there's been Memory Protection Keys support since Linux 4.9 and work has already landed in GCC and Clang, the glibc GNU C Library is finally adding support for MPK.

Memory Protection Keys premiered with Intel Xeon Scalable CPUs and will be coming to desktop Intel CPUs in the future. This feature allow for enforcing page-based memory protections via the RDPKRU/WRPKRU instructions.

Thanks to work by Red Hat's Florian Weimer, the memory protection keys interfaces have been added to Glibc for pkey_alloc/pkey_free/pkey_mprotect.

Details in this commit. This functionality will be found in the eventual glibc 2.27 release.

About The Author
Author picture

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter or contacted via

Related Intel News
Popular News This Week