LWN: Comments on "Memory protection keys for the kernel" https://lwn.net/Articles/826554/ This is a special feed containing comments posted to the individual LWN article titled "Memory protection keys for the kernel". en-us Thu, 18 Sep 2025 17:42:12 +0000 Thu, 18 Sep 2025 17:42:12 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Memory protection keys for the kernel https://lwn.net/Articles/826966/ https://lwn.net/Articles/826966/ corbet The protection key is stored in the page-table entry (where the hardware can see it), not the <tt>page</tt> structure. Fri, 24 Jul 2020 13:36:04 +0000 Memory protection keys for the kernel https://lwn.net/Articles/826923/ https://lwn.net/Articles/826923/ dxin <div class="FormattedComment"> I thought this page structure is already running out of bits, so where is this new protector flag stored? It has to be per-page info, right?<br> </div> Fri, 24 Jul 2020 03:56:42 +0000 Memory protection keys for the kernel https://lwn.net/Articles/826724/ https://lwn.net/Articles/826724/ Cyberax <div class="FormattedComment"> The Gigabyte motherboard is actually reasonable. Hmm... I&#x27;m going to try and build something using it.<br> </div> Wed, 22 Jul 2020 16:21:11 +0000 Memory protection keys for the kernel https://lwn.net/Articles/826647/ https://lwn.net/Articles/826647/ farnz <p>Lenovo will sell you a system with Optane DC (price on application, though) - the ThinkSystem SR570 and SR650 (at least) support it as a chargeable extra. Dell claim it's an option on the PowerEdge R640, but only if you contact your Dell rep. It looks like Gigabyte's MD71, MU71, and MD61 series motherboards also support Optane DC when fitted with a compatible processor. Wed, 22 Jul 2020 12:29:43 +0000 Memory protection keys for the kernel https://lwn.net/Articles/826649/ https://lwn.net/Articles/826649/ hmh <div class="FormattedComment"> Hmm, it seems subpar that you&#x27;d have to trust all drivers to not get it wrong and leave the write protect disabled. Given what happens on driver land, that&#x27;s almost the same as not having the protection in the first place.<br> <p> Maybe It should grow a dev_protectmore() of some sort that moves the memory to another zone which is permanently protected (it is fine if it can be moved back to the normal dev zone with a dev_needsomewriting(), the point is that it won&#x27;t be left writeable because of issues in any other driver in the system ). <br> <p> Might even be what is normally used for memory the kernel should not write to, since it would cost the full TLB Flushing, etc. So it would not necessarily need to use a second protection key.<br> <p> Or is it working like that already?<br> </div> Wed, 22 Jul 2020 12:23:16 +0000 Memory protection keys for the kernel https://lwn.net/Articles/826633/ https://lwn.net/Articles/826633/ Fowl <div class="FormattedComment"> Kinda like a &quot;process lite&quot;, without overlapping address spaces. Reminds me vaguely of <a href="https://en.wikipedia.org/wiki/Mill_architecture">https://en.wikipedia.org/wiki/Mill_architecture</a><br> <p> So many of these security features - the memory access pipeline testing matrix must be a nightmare.<br> </div> Wed, 22 Jul 2020 01:33:40 +0000 Memory protection keys for the kernel https://lwn.net/Articles/826631/ https://lwn.net/Articles/826631/ Cyberax <div class="FormattedComment"> Nice!<br> <p> The price is a bit steep, true. What kind of system do you need to use it? I don&#x27;t mind building it myself.<br> </div> Wed, 22 Jul 2020 00:15:44 +0000 Memory protection keys for the kernel https://lwn.net/Articles/826630/ https://lwn.net/Articles/826630/ hansendc <div class="FormattedComment"> The marketing names tend not to line up all that well with the names we use in the kernel, which can make it hard to find. Here&#x27;s one place I found that appears to actually sell them:<br> <p> <a href="https://www.cdw.com/product/Intel-Optane-DC-Persistent-DDR-T-128-GB-DIMM-288-pin-4-Pack/5749247">https://www.cdw.com/product/Intel-Optane-DC-Persistent-DD...</a><br> <p> Please note, though, these can only go into very specific systems with very specific firmware and in very specific configurations. You can&#x27;t just buy one and throw it in a normal system. Disclaimer: I work at Intel. I have no connection to the vendor above, the link was just the first thing that popped up when I searched for the marketing name for the NVDIMMs.<br> </div> Wed, 22 Jul 2020 00:06:21 +0000 Memory protection keys for the kernel https://lwn.net/Articles/826629/ https://lwn.net/Articles/826629/ Cyberax <div class="FormattedComment"> About that fabled &quot;persistent memory&quot;... Any news on that front? I&#x27;m still waiting for a device that I can actually buy and that works like true persistent memory, not a PCIe device.<br> </div> Tue, 21 Jul 2020 22:54:57 +0000