userfaultfd: selftest: test UFFDIO_ZEROPAGE on all memory types
authorAndrea Arcangeli <[email protected]>
Wed, 22 Feb 2017 23:44:10 +0000 (15:44 -0800)
committerLinus Torvalds <[email protected]>
Thu, 23 Feb 2017 00:41:29 +0000 (16:41 -0800)
commit7a0c4cf85b856430af62a907dd65dfc51438d24f
tree834b98bd4d32ca570ceccaa1e07f000fb0c81710
parentda5502c0a39b7ba28f403a4b87d1dd690e7829bf
userfaultfd: selftest: test UFFDIO_ZEROPAGE on all memory types

This will verify -EINVAL is returned with hugetlbfs/shmem and it'll do a
functional test of UFFDIO_ZEROPAGE on anonymous memory.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Andrea Arcangeli <[email protected]>
Cc: "Dr. David Alan Gilbert" <[email protected]>
Cc: Hillf Danton <[email protected]>
Cc: Michael Rapoport <[email protected]>
Cc: Mike Kravetz <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
tools/testing/selftests/vm/userfaultfd.c