maple_tree-fix-static-analyser-cppcheck-issue.patch removed from -mm tree
The quilt patch titled
Subject: maple_tree: fix static analyser cppcheck issue
has been removed from the -mm tree. Its filename was
maple_tree-fix-static-analyser-cppcheck-issue.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "Liam R. Howlett" <[email protected]>
Subject: maple_tree: fix static analyser cppcheck issue
Date: Thu, 18 May 2023 10:55:10 -0400
Patch series "Maple tree mas_{next,prev}_range() and cleanup", v4.
This patchset contains a number of clean ups to the code to make it more usable (next/prev range), the addition of debug output formatting, the addition of printing the maple state information in the WARN_ON/BUG_ON code.
There is also work done here to keep nodes active during iterations to reduce the necessity of re-walking the tree.
Finally, there is a new interface added to move to the next or previous range in the tree, even if it is empty.
The organisation of the patches is as follows:
0001-0004 - Small clean ups
0005-0018 - Additional debug options and WARN_ON/BUG_ON changes
0019 - Test module __init and __exit addition
0020-0021 - More functional clean ups
0022-0026 - Changes to keep nodes active
0027-0034 - Add new mas_{prev,next}_range()
0035 - Use new mas_{prev,next}_range() in mmap_region()
This patch (of 35):
Static analyser of the maple tree code noticed that the split variable is being used to dereference into an array prior to checking the variable itself. Fix this issue by changing the order of the statement to check the variable first.
---
lib/maple_tree.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
lib/maple_tree.c renamed from lib/maple_tree.c~maple_tree-fix-static-analyser-cppcheck-issue +3 -2
@@ -1943,8 +1943,9 @@ static inline int mab_calc_split(struct* causes one node to be deficient. * NOTE: mt_min_slots is 1 based, b_end and split are zero. */ -while (((bn->pivot[split] - min) < slot_count -1 ) && - (split < slot_count -1 ) && (b_end - split > slot_min)) +while ((split < slot_count -1 ) && + ((bn->pivot[split] - min) < slot_count -1 ) && + (b_end - split > slot_min)) split++; }
_
Patches currently in -mm which might be from [email protected] are
mm-mprotect-fix-do_mprotect_pkey-limit-check.patch maple_tree-add-benchmarking-for-mas_for_each.patch maple_tree-add-benchmarking-for-mas_prev.patch mm-move-unmap_vmas-declaration-to-internal-header.patch mm-change-do_vmi_align_munmap-side-tree-index.patch mm-remove-prev-check-from-do_vmi_align_munmap.patch maple_tree-introduce-__mas_set_range.patch mm-remove-re-walk-from-mmap_region.patch maple_tree-re-introduce-entry-to-mas_preallocate-arguments.patch mm-use-vma_iter_clear_gfp-in-nommu.patch mm-set-up-vma-iterator-for-vma_iter_prealloc-calls.patch maple_tree-move-mas_wr_end_piv-below-mas_wr_extend_null.patch maple_tree-update-mas_preallocate-testing.patch maple_tree-refine-mas_preallocate-node-calculations.patch mm-mmap-change-vma-iteration-order-in-do_vmi_align_munmap.patch userfaultfd-fix-regression-in-userfaultfd_unmap_prep.patch