diff options
author | Liam R. Howlett <Liam.Howlett@oracle.com> | 2023-04-14 10:57:27 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-04-26 14:28:39 +0200 |
commit | 66f13a1acf0ae80bcd5cd336a6e864c2eaff851d (patch) | |
tree | e5b5d394a967761c32071d2bf08be4300b785d31 /scripts/Makefile.ubsan | |
parent | c51b9ef3f52161ee009af34555af7719fdcf74f1 (diff) | |
download | linux-66f13a1acf0ae80bcd5cd336a6e864c2eaff851d.tar.gz |
maple_tree: fix mas_empty_area() search
commit 06e8fd999334bcd76b4d72d7b9206d4aea89764e upstream. The internal function of mas_awalk() was incorrectly skipping the last entry in a node, which could potentially be NULL. This is only a problem for the left-most node in the tree - otherwise that NULL would not exist. Fix mas_awalk() by using the metadata to obtain the end of the node for the loop and the logical pivot as apposed to the raw pivot value. Link: https://lkml.kernel.org/r/20230414145728.4067069-2-Liam.Howlett@oracle.com Fixes: 54a611b60590 ("Maple Tree: add new data structure") Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> Reported-by: Rick Edgecombe <rick.p.edgecombe@intel.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/Makefile.ubsan')
0 files changed, 0 insertions, 0 deletions