The quilt patch titled Subject: selftests-mm-confirm-va-exhaustion-without-reliance-on-correctness-of-mmap-v2 has been removed from the -mm tree. Its filename was selftests-mm-confirm-va-exhaustion-without-reliance-on-correctness-of-mmap-v2.patch This patch was dropped because it was folded into selftests-mm-confirm-va-exhaustion-without-reliance-on-correctness-of-mmap.patch ------------------------------------------------------ From: Dev Jain <dev.jain@xxxxxxx> Subject: selftests-mm-confirm-va-exhaustion-without-reliance-on-correctness-of-mmap-v2 Date: Mon, 25 Mar 2024 09:56:53 +0530 replace SZ_1GB with MAP_CHUNK_SIZE, tidy-up Link: https://lkml.kernel.org/r/20240325042653.867055-1-dev.jain@xxxxxxx Signed-off-by: Dev Jain <dev.jain@xxxxxxx> Cc: Anshuman Khandual <anshuman.khandual@xxxxxxx> Cc: Shuah Khan <shuah@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- tools/testing/selftests/mm/virtual_address_range.c | 15 ++++------- 1 file changed, 6 insertions(+), 9 deletions(-) --- a/tools/testing/selftests/mm/virtual_address_range.c~selftests-mm-confirm-va-exhaustion-without-reliance-on-correctness-of-mmap-v2 +++ a/tools/testing/selftests/mm/virtual_address_range.c @@ -117,19 +117,17 @@ static int validate_complete_va_space(vo prev_end_addr = 0; while (fgets(line, sizeof(line), file)) { unsigned long hop; - int ret; - ret = sscanf(line, "%lx-%lx %s[rwxp-]", - &start_addr, &end_addr, prot); - if (ret != 3) - ksft_exit_fail_msg("sscanf failed, cannot parse\n"); + if (sscanf(line, "%lx-%lx %s[rwxp-]", + &start_addr, &end_addr, prot) != 3) + ksft_exit_fail_msg("cannot parse /proc/self/maps\n"); /* end of userspace mappings; ignore vsyscall mapping */ if (start_addr & (1UL << 63)) return 0; - /* /proc/self/maps must have gaps less than 1GB only */ - if (start_addr - prev_end_addr >= SZ_1GB) + /* /proc/self/maps must have gaps less than MAP_CHUNK_SIZE */ + if (start_addr - prev_end_addr >= MAP_CHUNK_SIZE) return 1; prev_end_addr = end_addr; @@ -149,8 +147,7 @@ static int validate_complete_va_space(vo while (start_addr + hop < end_addr) { if (write(fd, (void *)(start_addr + hop), 1) != 1) return 1; - else - lseek(fd, 0, SEEK_SET); + lseek(fd, 0, SEEK_SET); hop += MAP_CHUNK_SIZE; } _ Patches currently in -mm which might be from dev.jain@xxxxxxx are selftests-mm-virtual_address_range-switch-to-ksft_exit_fail_msg.patch selftests-mm-confirm-va-exhaustion-without-reliance-on-correctness-of-mmap.patch selftests-mm-parse-vma-range-in-one-go.patch selftests-mm-mremap_test-optimize-using-pre-filled-random-array-and-memcpy.patch selftests-mm-mremap_test-optimize-execution-time-from-minutes-to-seconds-using-chunkwise-memcmp.patch selftests-mm-mremap_test-use-sscanf-to-parse-proc-self-maps.patch