aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2021-09-08 18:10:11 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2021-09-08 18:45:53 -0700
commit053cfda102306a3394012f9fe2594811c34925e4 (patch)
treea256a85bac76787f6cfd6d3759a567e8ce7bd9e4 /include
parentmm,vmscan: fix divide by zero in get_scan_count (diff)
downloadlinux-dev-053cfda102306a3394012f9fe2594811c34925e4.tar.xz
linux-dev-053cfda102306a3394012f9fe2594811c34925e4.zip
mm/page_alloc.c: avoid accessing uninitialized pcp page migratetype
If it's not prepared to free unref page, the pcp page migratetype is unset. Thus we will get rubbish from get_pcppage_migratetype() and might list_del(&page->lru) again after it's already deleted from the list leading to grumble about data corruption. Link: https://lkml.kernel.org/r/20210902115447.57050-1-linmiaohe@huawei.com Fixes: df1acc856923 ("mm/page_alloc: avoid conflating IRQs disabled with zone->lock") Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Acked-by: Mel Gorman <mgorman@techsingularity.net> Acked-by: Vlastimil Babka <vbabka@suse.cz> Reviewed-by: David Hildenbrand <david@redhat.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions