All of lore.kernel.org
 help / color / mirror / Atom feed
From: kaleshsingh@google.com
To: akpm@linux-foundation.org
Cc: kernel-team@android.com, android-mm@google.com,
	 Kalesh Singh <kaleshsingh@google.com>,
	Mike Rapoport <rppt@kernel.org>, Peter Xu <peterx@redhat.com>,
	 David Hildenbrand <david@kernel.org>,
	Lorenzo Stoakes <ljs@kernel.org>,
	 "Liam R. Howlett" <liam@infradead.org>,
	Vlastimil Babka <vbabka@kernel.org>,
	 Suren Baghdasaryan <surenb@google.com>,
	Michal Hocko <mhocko@suse.com>, Shuah Khan <shuah@kernel.org>,
	 Ryan Roberts <ryan.roberts@arm.com>,
	linux-mm@kvack.org, linux-kselftest@vger.kernel.org
Subject: [PATCH 0/2] selftests/mm: fix userfaultfd tests with CONFIG_PTE_MARKER_UFFD_WP=n
Date: Sun, 22 Nov 2026 08:20:16 +0000	[thread overview]
Message-ID: <20261122082020.1255434-1-kaleshsingh@google.com> (raw)

From: Kalesh Singh <kaleshsingh@google.com>

With CONFIG_PTE_MARKER_UFFD_WP=n, userfaultfd write protection only
works on anonymous memory. uffd-wp-mremap then fails its shmem and
hugetlb cases, and uffd-unit-tests skips anonymous runs that would
pass. Patch 1 skips the unsupported uffd-wp-mremap cases and patch 2
filters uffd-unit-tests' required features per memory type.

Tested on arm64 device: with CONFIG_PTE_MARKER_UFFD_WP=n,
uffd-wp-mremap goes from 26 failures to none and uffd-unit-tests
passes 78 tests instead of 70; with =y, the results are unchanged.

Kalesh Singh (2):
  selftests/mm: uffd-wp-mremap: skip unsupported shmem and hugetlb cases
  selftests/mm: uffd-unit-tests: filter required features per memory
    type

 tools/testing/selftests/mm/uffd-unit-tests.c | 42 +++++++++++++++++---
 tools/testing/selftests/mm/uffd-wp-mremap.c  | 13 ++++--
 2 files changed, 46 insertions(+), 9 deletions(-)


base-commit: 4843f6873f7c4835e62f2c73ba0fd538e57a2f22
-- 
2.56.1.750.gf70dc682cf-goog


             reply	other threads:[~2026-11-22  8:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-22  8:20 kaleshsingh [this message]
2026-11-22  8:20 ` [PATCH 1/2] selftests/mm: uffd-wp-mremap: skip unsupported shmem and hugetlb cases kaleshsingh
2026-11-24 14:13   ` Liam R. Howlett
2026-11-24 23:34   ` + selftests-mm-uffd-wp-mremap-skip-unsupported-shmem-and-hugetlb-cases.patch added to mm-new branch Andrew Morton
2026-11-22  8:20 ` [PATCH 2/2] selftests/mm: uffd-unit-tests: filter required features per memory type kaleshsingh
2026-11-24 14:14   ` Liam R. Howlett
2026-11-24 23:34   ` + selftests-mm-uffd-unit-tests-filter-required-features-per-memory-type.patch added to mm-new branch Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261122082020.1255434-1-kaleshsingh@google.com \
    --to=kaleshsingh@google.com \
    --cc=akpm@linux-foundation.org \
    --cc=android-mm@google.com \
    --cc=david@kernel.org \
    --cc=kernel-team@android.com \
    --cc=liam@infradead.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=ljs@kernel.org \
    --cc=mhocko@suse.com \
    --cc=peterx@redhat.com \
    --cc=rppt@kernel.org \
    --cc=ryan.roberts@arm.com \
    --cc=shuah@kernel.org \
    --cc=surenb@google.com \
    --cc=vbabka@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.