The patch titled Subject: hugetlb-clean-up-potential-spectre-issue-warnings-v2 has been added to the -mm tree. Its filename is hugetlb-clean-up-potential-spectre-issue-warnings-v2.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/hugetlb-clean-up-potential-spectre-issue-warnings-v2.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/hugetlb-clean-up-potential-spectre-issue-warnings-v2.patch 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 and is updated there every 3-4 working days ------------------------------------------------------ From: Mike Kravetz <mike.kravetz@xxxxxxxxxx> Subject: hugetlb-clean-up-potential-spectre-issue-warnings-v2 Link: https://lkml.kernel.org/r/20220218212946.35441-1-mike.kravetz@xxxxxxxxxx Signed-off-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx> Cc: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx> Cc: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Cc: Liu Yuntao <liuyuntao10@xxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Cc: Zhenguo Yao <yaozhenguo1@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/hugetlb.c~hugetlb-clean-up-potential-spectre-issue-warnings-v2 +++ a/mm/hugetlb.c @@ -6890,7 +6890,7 @@ static int __init cmdline_parse_hugetlb_ break; if (s[count] == ':') { - if (tmp < 0 || tmp >= MAX_NUMNODES) + if (tmp >= MAX_NUMNODES) break; nid = array_index_nospec(tmp, MAX_NUMNODES); _ Patches currently in -mm which might be from mike.kravetz@xxxxxxxxxx are selftests-vm-cleanup-hugetlb-file-after-mremap-test.patch selftests-memfd-clean-up-mapping-in-mfd_fail_write.patch mm-enable-madv_dontneed-for-hugetlb-mappings.patch selftests-vm-add-hugetlb-madvise-madv_dontneed-madv_remove-test.patch userfaultfd-selftests-enable-hugetlb-remap-and-remove-event-testing.patch hugetlb-clean-up-potential-spectre-issue-warnings.patch hugetlb-clean-up-potential-spectre-issue-warnings-v2.patch