Re: [PATCH v3 15/16] userfaultfd.2: Add read-write protect mode

From: Mike Rapoport

Date: Sun May 24 2026 - 02:32:48 EST


On Sun, May 24, 2026 at 01:08:11AM +0100, Kiryl Shutsemau wrote:
> On Sat, May 23, 2026 at 01:37:32PM +0300, Mike Rapoport wrote:
> > On Fri, May 22, 2026 at 02:38:56PM +0100, Kiryl Shutsemau wrote:
> > > From: "Kiryl Shutsemau (Meta)" <kas@xxxxxxxxxx>
> > >
> > > Read-write protect mode (UFFDIO_REGISTER_MODE_RWP) is supported starting
> > > from Linux 7.2. It traps every access -- read or write -- to a present
> > > page within a registered range. The matching UAPI consists of:
> > >
> > > - UFFDIO_REGISTER_MODE_RWP registration-mode bit
> > > - UFFD_FEATURE_RWP capability bit
> > > - UFFD_FEATURE_RWP_ASYNC async (in-kernel) fault resolution
> > > - UFFDIO_RWPROTECT install / remove RWP on a range
> > > - UFFDIO_SET_MODE runtime sync/async toggle
> > > - UFFD_PAGEFAULT_FLAG_RWP new pagefault.flags bit
> > >
> > > Document the new registration-mode entry, the "Userfaultfd read-write
> > > protect mode" section, the new pagefault flag, and a VERSIONS line.
> > >
> > > Signed-off-by: Kiryl Shutsemau <kas@xxxxxxxxxx>
> > > ---
> > > man2/userfaultfd.2 | 147 ++++++++++++++++++++++++++++++++++++++++++++-
> > > 1 file changed, 146 insertions(+), 1 deletion(-)
> >
> > This doesn't apply to the current man-pages tree
> > https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git
> >
> > and reading raw groff hurts eyes too much.
> >
> > What linux-man tree did you use to generate those?
>
> Ughh.. Used old github mirror. Will rebase.

I found that the man patches in the same thread confuse b4 review, I
suppose sashiko also failed to apply because of them.

Can you send them as a separate thread please?

> --
> Kiryl Shutsemau / Kirill A. Shutemov

--
Sincerely yours,
Mike.