]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memblock: stop poisoning raw allocations
authorMike Rapoport <rppt@linux.ibm.com>
Mon, 23 Aug 2021 23:59:26 +0000 (09:59 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:34:05 +0000 (09:34 +1000)
commit17931e564ba984880713460ab1dcc79233e6c17f
treeaf7447429b5461f54e167b226b12d7a38df3423d
parent30a333c706c4a180eb0c085aecb566fe9bc7a3de
memblock: stop poisoning raw allocations

Functions memblock_alloc_exact_nid_raw() and memblock_alloc_try_nid_raw()
are intended for early memory allocation without overhead of zeroing the
allocated memory.  Since these functions were used to allocate the memory
map, they have ended up with addition of a call to page_init_poison() that
poisoned the allocated memory when CONFIG_PAGE_POISON was set.

Since the memory map is allocated using a dedicated memmep_alloc()
function that takes care of the poisoning, remove page poisoning from the
memblock_alloc_*_raw() functions.

Link: https://lkml.kernel.org/r/20210714123739.16493-5-rppt@kernel.org
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Cc: Michal Simek <monstr@monstr.eu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/memblock.c