]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memblock tests: add memblock_reserve_many_may_conflict_check()
authorWei Yang <richard.weiyang@gmail.com>
Tue, 7 May 2024 07:58:28 +0000 (07:58 +0000)
committerMike Rapoport (IBM) <rppt@kernel.org>
Wed, 5 Jun 2024 07:22:22 +0000 (10:22 +0300)
commitf6df89c3582a337090ae1f37c3648bdb35da29f7
treeafe1fce2eec169dc5ba26cd82769266da0f47b60
parent3d3165193776ddacf59f101f0fa05cfab9f1a9ba
memblock tests: add memblock_reserve_many_may_conflict_check()

This may trigger the case fixed by commit 48c3b583bbdd ("mm/memblock:
fix overlapping allocation when doubling reserved array").

This is done by adding the 129th reserve region into memblock.memory. If
memblock_double_array() use this reserve region as new array, it fails.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Link: https://lore.kernel.org/r/20240507075833.6346-3-richard.weiyang@gmail.com
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
tools/testing/memblock/tests/basic_api.c
tools/testing/memblock/tests/common.c
tools/testing/memblock/tests/common.h