]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/mm: drop global mem_fd in uffd tests
authorPeter Xu <peterx@redhat.com>
Wed, 12 Apr 2023 16:43:31 +0000 (12:43 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Apr 2023 23:30:05 +0000 (16:30 -0700)
commitc5cb903646f4df0ab3760dcb2e5571b528b6db59
tree75c723a4347cffd5ad0d5c8220bccead103ea759
parentd5433ce84d2572d43a3c58e5cab21db200669bfd
selftests/mm: drop global mem_fd in uffd tests

Drop it by creating the memfd dynamically in the tests.

Link: https://lkml.kernel.org/r/20230412164331.328584-1-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Dmitry Safonov <0x7f454c46@gmail.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Zach O'Keefe <zokeefe@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/uffd-common.c
tools/testing/selftests/mm/uffd-common.h
tools/testing/selftests/mm/uffd-stress.c