lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220902024007.58041-1-shaoqin.huang@intel.com>
Date:   Fri,  2 Sep 2022 10:39:58 +0800
From:   shaoqin.huang@...el.com
To:     rppt@...nel.org
Cc:     Shaoqin Huang <shaoqin.huang@...el.com>,
        David Hildenbrand <david@...hat.com>,
        Karolina Drobnik <karolinadrobnik@...il.com>,
        linux-kernel@...r.kernel.org, linux-mm@...ck.org,
        Rebecca Mckeever <remckee0@...il.com>
Subject: [PATCH v2 0/3] Add tests trying to memblock_add() or memblock_reserve() 129th region

From: Shaoqin Huang <shaoqin.huang@...el.com>

These tests is aimed for testing the memblock_double_array() can work normal. It
will using the dummy_physical_memory_init() to add the valid memory region into
the memblock.memory, and this memory region will be choosed when
memblock_double_array() to allocate the new memory region to double the regions.
Thus the new memory.regions or reserved.regions will occupy the valid memory
region, and the memory.max and reserved.max also being doubled. Check all of
these changed stuff, to make sure it actually success.

Changelog:
----------
v2:
  - Modify the get_memory_block_base() to dummy_physical_memory_base().
  - memory_add() the memory which is allocated from dummy_physical_memory_init()
  instead of some faked memory.
  - Add more comments to illustrate the test process.
  - Add a function dummy_physical_memory_cleanup_many() to free multiple memory
  which is allocated from dummy_physical_memory_init().

Shaoqin Huang (3):
  memblock test: Add test to memblock_add() 129th region
  memblock test: Add test to memblock_reserve() 129th region
  memblock test: Update TODO list

 tools/testing/memblock/TODO              |  11 +-
 tools/testing/memblock/tests/basic_api.c | 187 +++++++++++++++++++++++
 tools/testing/memblock/tests/common.c    |  15 +-
 tools/testing/memblock/tests/common.h    |   4 +
 4 files changed, 206 insertions(+), 11 deletions(-)

-- 
2.34.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ