The patch titled Subject: assoc_array: Fix BUG_ON during garbage collect has been added to the -mm mm-hotfixes-unstable branch. Its filename is assoc_array-fix-bug_on-during-garbage-collect-v2.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/assoc_array-fix-bug_on-during-garbage-collect-v2.patch This patch will later appear in the mm-hotfixes-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Stephen Brennan <stephen.s.brennan@xxxxxxxxxx> Subject: assoc_array: Fix BUG_ON during garbage collect correct comparison to "<=" Link: https://lkml.kernel.org/r/20220512215045.489140-1-stephen.s.brennan@xxxxxxxxxx Fixes: 3cb989501c26 ("Add a generic associative array implementation.") Signed-off-by: Stephen Brennan <stephen.s.brennan@xxxxxxxxxx> Cc: David Howells <dhowells@xxxxxxxxxx> Cc: Len Baker <len.baker@xxxxxxx> Cc: "Gustavo A. R. Silva" <gustavoars@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/assoc_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/lib/assoc_array.c~assoc_array-fix-bug_on-during-garbage-collect-v2 +++ a/lib/assoc_array.c @@ -1609,7 +1609,7 @@ retry_compress: } } - if (retained && new_n->nr_leaves_on_branch < ASSOC_ARRAY_FAN_OUT) { + if (retained && new_n->nr_leaves_on_branch <= ASSOC_ARRAY_FAN_OUT) { pr_devel("internal nodes remain despite enough space, retrying\n"); goto retry_compress; } _ Patches currently in -mm which might be from stephen.s.brennan@xxxxxxxxxx are assoc_array-fix-bug_on-during-garbage-collect.patch assoc_array-fix-bug_on-during-garbage-collect-v2.patch