diff options
author | 2022-03-22 14:44:00 -0700 | |
---|---|---|
committer | 2022-03-22 15:57:06 -0700 | |
commit | 77fe7f136a7312954b1b8b7eeb4bc91fc3c14a3f (patch) | |
tree | 05954c0871114abf164b2881924c6ed786d000ac /mm/memory-failure.c | |
parent | mm/page_alloc: call check_new_pages() while zone spinlock is not held (diff) | |
download | wireguard-linux-77fe7f136a7312954b1b8b7eeb4bc91fc3c14a3f.tar.xz wireguard-linux-77fe7f136a7312954b1b8b7eeb4bc91fc3c14a3f.zip |
mm/page_alloc: check high-order pages for corruption during PCP operations
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.
Link: https://lkml.kernel.org/r/20220310092456.GJ15701@techsingularity.net
Fixes: 44042b449872 ("mm/page_alloc: allow high-order pages to be stored on the per-cpu lists")
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Reported-by: Eric Dumazet <edumazet@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Wei Xu <weixugc@google.com>
Cc: Greg Thelen <gthelen@google.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory-failure.c')
0 files changed, 0 insertions, 0 deletions