Huang Ying
99185c10d5
resource, kunit: add test case for region_intersects()
...
Patch series "resource: Fix region_intersects() vs
add_memory_driver_managed()", v3.
The patchset fixes a bug of region_intersects() for systems with CXL
memory. The details of the bug can be found in [1/3]. To avoid similar
bugs in the future. A kunit test case for region_intersects() is added in
[3/3]. [2/3] is a preparation patch for [3/3].
This patch (of 3):
region_intersects() is important because it's used for /dev/mem permission
checking. To avoid possible bug of region_intersects() in the future, a
kunit test case for region_intersects() is added.
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: "Huang, Ying" <[email protected] >
Cc: Dan Williams <[email protected] >
Cc: David Hildenbrand <[email protected] >
Cc: Davidlohr Bueso <[email protected] >
Cc: Jonathan Cameron <[email protected] >
Cc: Dave Jiang <[email protected] >
Cc: Alison Schofield <[email protected] >
Cc: Vishal Verma <[email protected] >
Cc: Ira Weiny <[email protected] >
Cc: Alistair Popple <[email protected] >
Cc: Andy Shevchenko <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Baoquan He <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
2024-09-17 01:07:00 -07:00