The patch titled Subject: selftests-mm-cow-modify-the-incorrect-checking-parameters-v2 has been added to the -mm mm-unstable branch. Its filename is selftests-mm-cow-modify-the-incorrect-checking-parameters-v2.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/selftests-mm-cow-modify-the-incorrect-checking-parameters-v2.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: Hao Ge <gehao@xxxxxxxxxx> Subject: selftests-mm-cow-modify-the-incorrect-checking-parameters-v2 Date: Mon, 13 Jan 2025 13:09:08 +0800 fix other errant sites, per Anshuman Link: https://lkml.kernel.org/r/20250113050908.93638-1-hao.ge@xxxxxxxxx Signed-off-by: Hao Ge <gehao@xxxxxxxxxx> Cc: Anshuman Khandual <anshuman.khandual@xxxxxxx> Cc: SeongJae Park <sj@xxxxxxxxxx> Cc: Shuah Khan (Samsung OSG) <shuah@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- tools/testing/selftests/mm/cow.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/tools/testing/selftests/mm/cow.c~selftests-mm-cow-modify-the-incorrect-checking-parameters-v2 +++ a/tools/testing/selftests/mm/cow.c @@ -1490,7 +1490,7 @@ static void run_with_zeropage(non_anon_t } smem = mmap(NULL, pagesize, PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0); - if (mem == MAP_FAILED) { + if (smem == MAP_FAILED) { ksft_test_result_fail("mmap() failed\n"); goto munmap; } @@ -1591,7 +1591,7 @@ static void run_with_memfd(non_anon_test goto close; } smem = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, fd, 0); - if (mem == MAP_FAILED) { + if (smem == MAP_FAILED) { ksft_test_result_fail("mmap() failed\n"); goto munmap; } @@ -1642,7 +1642,7 @@ static void run_with_tmpfile(non_anon_te goto close; } smem = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, fd, 0); - if (mem == MAP_FAILED) { + if (smem == MAP_FAILED) { ksft_test_result_fail("mmap() failed\n"); goto munmap; } _ Patches currently in -mm which might be from gehao@xxxxxxxxxx are selftests-mm-cow-modify-the-incorrect-checking-parameters.patch selftests-mm-cow-modify-the-incorrect-checking-parameters-v2.patch