]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix null expand into ULONG_MAX causing incorrect metadata
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 10 May 2022 02:37:55 +0000 (22:37 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 11 May 2022 14:46:53 +0000 (10:46 -0400)
commite33221cf36aab9e9b145543978ef64c429159d81
tree0410474539c04ebcf8ef79cbe816f21c5e448ac2
parentd13ba37a34cf71d69858586382a7034ec2519751
maple_tree: Fix null expand into ULONG_MAX causing incorrect metadata

When expanding a null write to ULONG_MAX, it may cause the metadata
calculation to be off by one.  Fix this issue by detecting the offset
with write maple state end_piv instead of reading the node data.

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c