From: "Jose A. Perez de Azpillaga" <azpijr@gmail.com>
To: "Mike Rapoport (Microsoft)" <rppt@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
David Hildenbrand <david@kernel.org>
Cc: Peter Xu <peterx@redhat.com>,
Suren Baghdasaryan <surenb@google.com>,
linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-mm@kvack.org
Subject: Re: [PATCH v2 3/4] userfaultfd: mark THPs moved by UFFDIO_MOVE soft-dirty
Date: Fri, 4 Dec 2026 10:32:16 +0100 [thread overview]
Message-ID: <7ef2d75c-defc-4714-97a9-83838b4c4f09@gmail.com> (raw)
In-Reply-To: <20261203-fixes-uffd-sashiko-v2-3-308ce557a7b6@kernel.org>
On 12/3/26 6:15 PM, Mike Rapoport (Microsoft) wrote:
> UFFDIO_MOVE marks moved PTEs and a moved huge zero page soft-dirty, like
> mremap() does.
>
> A THP is the exception. move_pages_huge_pmd() creates the destination PMD
> from scratch and does not mark it soft-dirty, so soft-dirty trackers such
> as CRIU miss the move.
>
> Mark the moved THP PMD soft-dirty with move_soft_dirty_pmd(), like
> mremap() does for PMDs.
>
> Fixes: adef440691ba ("userfaultfd: UFFDIO_MOVE uABI")
> Reviewed-by: David Hildenbrand (Arm) <david@kernel.org>
> Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
LGTM:
Reviewed-by: Jose A. Perez de Azpillaga <azpijr@gmail.com>
--
cheers,
jose a. p-a
next prev parent reply other threads:[~2026-12-04 9:32 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 17:15 [PATCH v2 0/4] userfaultfd: fixes for sashiko reports Mike Rapoport (Microsoft)
2026-12-03 17:15 ` [PATCH v2 1/4] userfaultfd: write-lock the VMA before clearing its uffd state Mike Rapoport (Microsoft)
2026-12-04 7:04 ` + userfaultfd-write-lock-the-vma-before-clearing-its-uffd-state.patch added to mm-new branch Andrew Morton
2026-12-04 9:27 ` [PATCH v2 1/4] userfaultfd: write-lock the VMA before clearing its uffd state Jose A. Perez de Azpillaga
2026-12-03 17:15 ` [PATCH v2 2/4] userfaultfd: mark zero pages moved by UFFDIO_MOVE soft-dirty Mike Rapoport (Microsoft)
2026-12-04 7:04 ` + userfaultfd-mark-zero-pages-moved-by-uffdio_move-soft-dirty.patch added to mm-new branch Andrew Morton
2026-12-04 9:31 ` [PATCH v2 2/4] userfaultfd: mark zero pages moved by UFFDIO_MOVE soft-dirty Jose A. Perez de Azpillaga
2026-12-03 17:15 ` [PATCH v2 3/4] userfaultfd: mark THPs " Mike Rapoport (Microsoft)
2026-12-04 7:04 ` + userfaultfd-mark-thps-moved-by-uffdio_move-soft-dirty.patch added to mm-new branch Andrew Morton
2026-12-04 9:32 ` Jose A. Perez de Azpillaga [this message]
2026-12-03 17:15 ` [PATCH v2 4/4] selftests/mm: free the test context when uffd_test_ctx_init() fails Mike Rapoport (Microsoft)
2026-12-04 7:04 ` + selftests-mm-free-the-test-context-when-uffd_test_ctx_init-fails.patch added to mm-new branch Andrew Morton
2026-12-04 9:39 ` [PATCH v2 4/4] selftests/mm: free the test context when uffd_test_ctx_init() fails Jose A. Perez de Azpillaga
2026-12-05 17:09 ` Andrew Morton
2026-12-05 17:09 ` + selftests-mm-free-the-test-context-when-uffd_test_ctx_init-fails-fix.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=7ef2d75c-defc-4714-97a9-83838b4c4f09@gmail.com \
--to=azpijr@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=peterx@redhat.com \
--cc=rppt@kernel.org \
--cc=surenb@google.com \
/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.