Merge branch 'android12-5.10' into android12-5.10-lts
Sync up with android12-5.10 for the following commits:90732d426eUPSTREAM: mm/compaction: correct deferral logic for proactive compactiond0a88ae479ANDROID: Enable GKI Dr. No Enforcemente6a59da61eANDROID: media: v4l2-core: Fix deadlock in vendor hookfdb1cfe2d3FROMGIT: dma_buf: remove dmabuf sysfs teardown before release1dc0dd2573ANDROID: update mtk symbol lista669748346UPSTREAM: mfd: syscon: Free the allocated name field of struct regmap_configcffe67a351ANDROID: Give UIC cmd timeout a larger value3bca0b5344ANDROID: binder: retry security_secid_to_secctx()9fdfeda4c9ANDROID: update new gki symbol for mtk1dd167be9fANDROID: mm, kasan: fix for "integrate page_alloc init with HW_TAGS"f215850ea0UPSTREAM: kasan: fix conflict with page poisoninga3da917661ANDROID: GKI: Export two more mm symbols for GKI0497b9601bANDROID: Update symbol list for mtk0f27e1d317FROMLIST: kfence: skip all GFP_ZONEMASK allocations8478d8dc53FROMLIST: kfence: move the size check to the beginning of __kfence_alloc()ddabf14beaANDROID: ABI: update allowed list for galaxy11cec52238FROMGIT: f2fs: add sysfs nodes to get GC info for each GC modefdc46110cbANDROID: abi_gki_aarch64_qcom: Add android_debug_for_each_module0bb433e014ANDROID: debug_symbols: Add android_debug_for_each_modulea0429aa1d0ANDROID: ABI: Update ABI for symbol list updatesc68e5ca9f8ANDROID: GKI: Update symbols to symbol listaac5a77959ANDROID: Update symbol list for mtk42fc1faf44UPSTREAM: block, bfq: set next_rq to waker_bfqq->next_rq in waker injectione37cc8a09fUPSTREAM: mm/mremap: hold the rmap lock in write mode when moving page table entries.9b136eab76ANDROID: pstore/ram: Add backward compatibility for ramoops reserved regiondf97297651ANDROID: Update symbol list for mtk4322bb07e8ANDROID: vendor_hooks: Modify the function name007213b1d0BACKPORT: FROMLIST: kasan: add memzero int for unaligned size at DEBUG7acbce0bf4BACKPORT: FROMLIST: mm: move helper to check slub_debug_enabledd6eeae59b5ANDROID: ABI: initial update allowed list for galaxy Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I6d28f1be3cbd8a1fed86d2d647e6c2bb55221b0a
This commit is contained in:
@@ -2359,6 +2359,13 @@ inline void post_alloc_hook(struct page *page, unsigned int order,
|
||||
arch_alloc_page(page, order);
|
||||
debug_pagealloc_map_pages(page, 1 << order);
|
||||
|
||||
/*
|
||||
* Page unpoisoning must happen before memory initialization.
|
||||
* Otherwise, the poison pattern will be overwritten for __GFP_ZERO
|
||||
* allocations and the page unpoisoning code will complain.
|
||||
*/
|
||||
kernel_unpoison_pages(page, 1 << order);
|
||||
|
||||
/*
|
||||
* As memory initialization might be integrated into KASAN,
|
||||
* kasan_alloc_pages and kernel_init_free_pages must be
|
||||
@@ -2375,7 +2382,6 @@ inline void post_alloc_hook(struct page *page, unsigned int order,
|
||||
gfp_flags & __GFP_ZEROTAGS);
|
||||
}
|
||||
|
||||
kernel_unpoison_pages(page, 1 << order);
|
||||
set_page_owner(page, order, gfp_flags);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user