]> www.infradead.org Git - users/willy/pagecache.git/commit
usercopy: Remove folio references from check_heap_object()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 28 Aug 2025 19:20:12 +0000 (15:20 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 9 Sep 2025 18:39:07 +0000 (14:39 -0400)
commit2a7c42446b61f2431ca6eacd6ab5b4d6567e310d
treeef210bd6ffc3aed19c9e610f1da9301f95b17d87
parent17073f27422462cdd3a5e4d18001b7764d23aea7
usercopy: Remove folio references from check_heap_object()

Because the pointer being checked may not lie within the first PAGE_SIZE
bytes of the object, we have to mark all pages as being LargeKmalloc.
We could use virt_to_head_page() instead, but that would pessimize
slab objects.  Once we move to memdescs properly, we'll tag each page
as being LargeKmalloc anyway, so this is more in keeping with how code
will be written in the future.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
mm/slub.c
mm/usercopy.c