selftest/vm: test that mremap fails on non-existent vma
authorNiels Dossche <dossche.niels@gmail.com>
Tue, 10 May 2022 01:20:54 +0000 (18:20 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 13 May 2022 14:20:07 +0000 (07:20 -0700)
commit9994715333515e82865e533250e488496b9742f4
tree38b45b57280fd42ac9af21e6d11178a4a7c46bd0
parentdd0623020e0d068d5eba0c37d5ae1277800b49c4
selftest/vm: test that mremap fails on non-existent vma

Add a regression test that validates that mremap fails for vma's that
don't exist.

Link: https://lkml.kernel.org/r/20220427224439.23828-3-dossche.niels@gmail.com
Signed-off-by: Niels Dossche <dossche.niels@gmail.com>
Cc: Mina Almasry <almasrymina@google.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/vm/hugepage-mremap.c