Re: copy_page() on a kmalloc-ed page with DEBUG_SLAB enabled (was "zram: do not use copy_page with non-page alinged address")
From: Matthew Wilcox
Date: Tue Apr 18 2017 - 09:14:03 EST
On Mon, Apr 17, 2017 at 10:20:42AM -0500, Christoph Lameter wrote:
> Simple solution is to not allocate pages via the slab allocator but use
> the page allocator for this. The page allocator provides proper alignment.
>
> There is a reason it is called the page allocator because if you want a
> page you use the proper allocator for it.
Previous discussion on this topic:
https://lwn.net/Articles/669015/
https://lwn.net/Articles/669020/