Re: [PATCH] mm/page_alloc: check high-order pages for corruption during PCP operations

From: David Rientjes
Date: Sun Mar 13 2022 - 16:09:50 EST


On Thu, 10 Mar 2022, Mel Gorman wrote:

> Eric Dumazet pointed out that commit 44042b449872 ("mm/page_alloc: allow
> high-order pages to be stored on the per-cpu lists") only checks the head
> page during PCP refill and allocation operations. This was an oversight
> and all pages should be checked. This will incur a small performance
> penalty but it's necessary for correctness.
>
> Fixes: 44042b449872 ("mm/page_alloc: allow high-order pages to be stored on the per-cpu lists")
> Reported-by: Eric Dumazet <edumazet@xxxxxxxxxx>
> Signed-off-by: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx>
> Acked-by: Eric Dumazet <edumazet@xxxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>