Re: [PATCH] mm: kfence: fix handling discontiguous page

From: Andrew Morton
Date: Thu Mar 23 2023 - 18:18:56 EST


On Thu, 23 Mar 2023 10:50:03 +0800 Muchun Song <songmuchun@xxxxxxxxxxxxx> wrote:

> The struct pages could be discontiguous when the kfence pool is allocated
> via alloc_contig_pages() with CONFIG_SPARSEMEM and !CONFIG_SPARSEMEM_VMEMMAP.
> So, the iteration should use nth_page().

What are the user-visible runtime effects of this flaw?

Thanks.