LWN: Comments on "Tracking pages from get_user_pages()" https://lwn.net/Articles/786172/ This is a special feed containing comments posted to the individual LWN article titled "Tracking pages from get_user_pages()". en-us Wed, 17 Sep 2025 02:26:54 +0000 Wed, 17 Sep 2025 02:26:54 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Tracking pages from get_user_pages() https://lwn.net/Articles/786340/ https://lwn.net/Articles/786340/ corbet That is done now, but the mappings in question aren't affected by it. Devices don't care about protections in page-table entries. Sat, 20 Apr 2019 03:35:11 +0000 Tracking pages from get_user_pages() https://lwn.net/Articles/786339/ https://lwn.net/Articles/786339/ quotemstr <div class="FormattedComment"> Can't we clear PROT_WRITE from user pages with in-flight disk writes? rmap would let us find all the PTEs that point to such a page.<br> </div> Sat, 20 Apr 2019 02:50:01 +0000 Tracking pages from get_user_pages() https://lwn.net/Articles/786266/ https://lwn.net/Articles/786266/ rweikusat2 <div class="FormattedComment"> uintptr_t is just an integer as well. If it exists, it's a typedef name for an unsigned integer type which is large enough to store a pointer value. As page frame numbers are smaller than pointers due to coarser granularity, that's obviously not a property which would be needed here but it wouldn't do any harm, either.<br> <p> </div> Thu, 18 Apr 2019 19:35:16 +0000 Tracking pages from get_user_pages() https://lwn.net/Articles/786263/ https://lwn.net/Articles/786263/ willy <div class="FormattedComment"> PFNs are most definitely not uintptr_t. For example, on a 32-bit platform with PAE, PFNs can use up to 28 bits, letting us support up to 1TB of memory with a 4kB page size. They really are just an integer.<br> </div> Thu, 18 Apr 2019 18:28:20 +0000 Fixed https://lwn.net/Articles/786260/ https://lwn.net/Articles/786260/ corbet Yes, that was a mistake; fixed now. Thu, 18 Apr 2019 17:17:22 +0000 Tracking pages from get_user_pages() https://lwn.net/Articles/786259/ https://lwn.net/Articles/786259/ stevie-oh <div class="FormattedComment"> I'm assuming that instead of "unsigned long *bv_pfn" the article should read "unsigned long bv_pfn" (which I personally believe ought to be uintptr_t, but that's another story.)<br> </div> Thu, 18 Apr 2019 17:13:55 +0000