Centos-kernel-stream-9/tools/testing/radix-tree
Rafael Aquini d3fa192181 maple_tree: add regression test for spanning store bug
JIRA: https://issues.redhat.com/browse/RHEL-27745
JIRA: https://issues.redhat.com/browse/RHEL-66950
CVE: CVE-2024-50200

This patch is a backport of the following upstream commit:
commit e993457df65896696e165defa8a468a831d0da1b
Author: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Date:   Mon Oct 7 16:28:33 2024 +0100

    maple_tree: add regression test for spanning store bug

    Add a regression test to assert that, when performing a spanning store
    which consumes the entirety of the rightmost right leaf node does not
    result in maple tree corruption when doing so.

    This achieves this by building a test tree of 3 levels and establishing a
    store which ultimately results in a spanned store of this nature.

    Link: https://lkml.kernel.org/r/30cdc101a700d16e03ba2f9aa5d83f2efa894168.1728314403.git.lorenzo.stoakes@oracle.com
    Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
    Acked-by: Vlastimil Babka <vbabka@suse.cz>
    Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
    Reviewed-by: Wei Yang <richard.weiyang@gmail.com>
    Cc: Bert Karwatzki <spasswolf@web.de>
    Cc: Matthew Wilcox <willy@infradead.org>
    Cc: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
    Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Signed-off-by: Rafael Aquini <raquini@redhat.com>
2024-12-09 12:25:50 -05:00
..
generated maple_tree: reorganize testing to restore module testing 2023-03-07 01:23:55 -07:00
linux maple_tree: move debug check to __mas_set_range() 2024-12-09 12:23:41 -05:00
trace/events Maple Tree: add new data structure 2023-03-07 01:23:54 -07:00
.gitignore maple_tree: reorganize testing to restore module testing 2023-03-07 01:23:55 -07:00
Makefile radix tree test suite: put definition of bitmap_clear() into lib/bitmap.c 2024-10-14 13:03:01 +02:00
benchmark.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
idr-test.c idr test suite: Improve reporting from idr_find_test_1 2021-04-01 07:50:42 -04:00
iteration_check.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
iteration_check_2.c xarray: Fix early termination of xas_for_each_marked 2020-03-12 17:42:08 -04:00
linux.c maple_tree: reorganize testing to restore module testing 2023-03-07 01:23:55 -07:00
main.c xarray: Fix early termination of xas_for_each_marked 2020-03-12 17:42:08 -04:00
maple.c maple_tree: add regression test for spanning store bug 2024-12-09 12:25:50 -05:00
multiorder.c XArray: Do not return sibling entries from xa_load() 2024-12-09 12:21:43 -05:00
regression.h
regression1.c
regression2.c
regression3.c
regression4.c
tag_check.c
test.c
test.h radix tree test suite: Fix compilation 2020-10-07 09:07:49 -04:00
xarray.c radix tree test suite: Register the main thread with the RCU library 2021-04-01 07:41:30 -04:00