LWN: Comments on "Write-protect for userfaultfd()" https://lwn.net/Articles/787308/ This is a special feed containing comments posted to the individual LWN article titled "Write-protect for userfaultfd()". en-us Thu, 02 Oct 2025 22:09:59 +0000 Thu, 02 Oct 2025 22:09:59 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Write-protect for userfaultfd() https://lwn.net/Articles/788728/ https://lwn.net/Articles/788728/ robert_s <div class="FormattedComment"> *Ahem* Software Transactional Memory<br> </div> Thu, 16 May 2019 23:33:00 +0000 Write-protect for userfaultfd() https://lwn.net/Articles/787660/ https://lwn.net/Articles/787660/ nix <div class="FormattedComment"> Quite. Getting this wrong leads to hilariously terrible disasters: <a href="https://web.archive.org/web/20180903022426/http://www.os2museum.com/wp/the-history-of-a-security-hole/">https://web.archive.org/web/20180903022426/http://www.os2...</a><br> </div> Mon, 06 May 2019 22:55:09 +0000 PTE bits https://lwn.net/Articles/787379/ https://lwn.net/Articles/787379/ corbet The PTE format is defined by the hardware (on many architectures, at least); it's not something that can be readily extended. Fri, 03 May 2019 11:01:23 +0000 Write-protect for userfaultfd() https://lwn.net/Articles/787377/ https://lwn.net/Articles/787377/ matthias <div class="FormattedComment"> Because the size (and structure) of page table entries is defined by the hardware. After all, the MMU has to be able to decode the entries when converting virtual to physical addresses. There are only a few bits that can be used by the operating system and that are ignored by the hardware.<br> </div> Fri, 03 May 2019 11:00:46 +0000 Write-protect for userfaultfd() https://lwn.net/Articles/787372/ https://lwn.net/Articles/787372/ Freeaqingme <div class="FormattedComment"> Why does it matter that the last available bit of the page table entry would be used? It's not something that needs to be backwards compatible, right? Besides a (very tiny?) bit of performance loss, what would be the argument against increasing it with a byte when the next feature comes around?<br> </div> Fri, 03 May 2019 07:14:08 +0000 Write-protect for userfaultfd() https://lwn.net/Articles/787361/ https://lwn.net/Articles/787361/ unixbhaskar <div class="FormattedComment"> :) :) Andrew!! " "Always" was the inevitable answer from memory-management subsystem maintainer Andrew Morton." ...aha!<br> </div> Thu, 02 May 2019 22:56:06 +0000