ocfs2-dlm-fix-off-by-one-in-dlm_match_regions-region-comparison.patch removed from -mm tree
The quilt patch titled
Subject: ocfs2/dlm: fix off-by-one in dlm_match_regions() region comparison
has been removed from the -mm tree. Its filename was
ocfs2-dlm-fix-off-by-one-in-dlm_match_regions-region-comparison.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Junrui Luo <[email protected]>
Subject: ocfs2/dlm: fix off-by-one in dlm_match_regions() region comparison
Date: Sat, 07 Mar 2026 15:21:09 +0800
The local-vs-remote region comparison loop uses '<=' instead of '<', causing it to read one entry past the valid range of qr_regions. The other loops in the same function correctly use '<'.
Fix the loop condition to use '<' for consistency and correctness.
---
fs/ocfs2/dlm/dlmdomain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/dlm/dlmdomain.c renamed from fs/ocfs2/dlm/dlmdomain.c~ocfs2-dlm-fix-off-by-one-in-dlm_match_regions-region-comparison +1 -1
@@ -1002,7 +1002,7 @@ static int dlm_match_regions(struct dlm_for (i =0 ; i < localnr; ++i) { foundit =0 ; r = remote; -for (j =0 ; j <= qr->qr_numregions; ++j) { +for (j =0 ; j < qr->qr_numregions; ++j) {if (!memcmp (l, r,O2HB_MAX_REGION_NAME_LEN )) { foundit =1 ;break ;
_
Patches currently in -mm which might be from [email protected] are