The patch titled Subject: selftests-mm-dont-fail-uffd-stress-if-too-many-cpus-fix has been added to the -mm mm-unstable branch. Its filename is selftests-mm-dont-fail-uffd-stress-if-too-many-cpus-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/selftests-mm-dont-fail-uffd-stress-if-too-many-cpus-fix.patch This patch will later appear in the mm-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: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: selftests-mm-dont-fail-uffd-stress-if-too-many-cpus-fix Date: Wed Mar 5 02:15:02 PM PST 2025 fix div-by-zero, per Brendan Link: https://lkml.kernel.org/r/CA+i-1C2pn90pfB6qhuGV8ecUw3YKfg1b8tSTsXs4n_Rw6US9mA@xxxxxxxxxxxxxx Cc: Brendan Jackman <jackmanb@xxxxxxxxxx> Cc: Dev Jain <dev.jain@xxxxxxx> Cc: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx> Cc: Mateusz Guzik <mjguzik@xxxxxxxxx> Cc: Shuah Khan (Samsung OSG) <shuah@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- tools/testing/selftests/mm/uffd-stress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/testing/selftests/mm/uffd-stress.c~selftests-mm-dont-fail-uffd-stress-if-too-many-cpus-fix +++ a/tools/testing/selftests/mm/uffd-stress.c @@ -461,7 +461,7 @@ int main(int argc, char **argv) nr_cpus); nr_threads = 32; } else { - nr_cpus = nr_threads; + nr_threads = nr_cpus; } nr_pages_per_cpu = bytes / page_size / nr_threads; _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are nfs-fix-nfs_release_folio-to-not-deadlock-via-kcompactd-writeback-fix.patch userfaultfd-do-not-block-on-locking-a-large-folio-with-raised-refcount-fix.patch mm-vmscan-extract-calculated-pressure-balance-as-a-function-fix.patch mm-madvise-split-out-mmap-locking-operations-for-madvise-fix-checkpatch-fixes.patch mm-madvise-remove-redundant-mmap_lock-operations-from-process_madvise-fix.patch selftests-mm-print-some-details-when-uffd-stress-gets-bad-params-fix.patch selftests-mm-dont-fail-uffd-stress-if-too-many-cpus-fix.patch mm-pgtable-convert-some-architectures-to-use-tlb_remove_ptdesc-v2-fix.patch mm-mremap-initial-refactor-of-move_vma-fix.patch mm-mremap-thread-state-through-move-page-table-operation-fix.patch mm-hugetlb-add-hugetlb_alloc_threads-cmdline-option-fix.patch lib-plistc-add-shortcut-for-plist_requeue-fix.patch scsi-lpfc-convert-timeouts-to-secs_to_jiffies-fix.patch signal-avoid-clearing-tif_sigpending-in-recalc_sigpending-if-unset-fix.patch resource-fix-resource-leak-in-get_free_mem_region-fix.patch