Commit 1dd167be authored by Andrey Konovalov's avatar Andrey Konovalov Committed by Suren Baghdasaryan
Browse files

ANDROID: mm, kasan: fix for "integrate page_alloc init with HW_TAGS"



My commit "integrate page_alloc init with HW_TAGS" changed the order of
kernel_unpoison_pages() and kernel_init_free_pages() calls. This leads
to complaints from the page unpoisoning code, as the poison pattern gets
overwritten for __GFP_ZERO allocations.

Fix by restoring the initial order. Also add a warning comment.

Reported-by: default avatarVlastimil Babka <vbabka@suse.cz>
Reported-by: default avatarSergei Trofimovich <slyfox@gentoo.org>
Signed-off-by: default avatarAndrey Konovalov <andreyknvl@google.com>
Reviewed-by: default avatarSergei Trofimovich <slyfox@gentoo.org>

The fix was included in upstream patch 1bb5eab3 'kasan, mm: integrate page_alloc init with HW_TAGS'

Fixes: a1598949 ("FROMGIT: kasan, mm: integrate page_alloc init with HW_TAGS")
Bug: 192912968
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
Change-Id: Ifc4ab7ed27b3c060f70ba5ca03117a36c9b4da08
parent f215850e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment