mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + userfaultfd-fix-uffdio_continue-ioctl-request-definition.patch added to -mm tree
@ 2021-05-31 21:43 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-05-31 21:43 UTC (permalink / raw)
  To: axelrasmussen, dancol, glebfm, lokeshgidra, mm-commits, peterx


The patch titled
     Subject: userfaultfd: fix UFFDIO_CONTINUE ioctl request definition
has been added to the -mm tree.  Its filename is
     userfaultfd-fix-uffdio_continue-ioctl-request-definition.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/userfaultfd-fix-uffdio_continue-ioctl-request-definition.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/userfaultfd-fix-uffdio_continue-ioctl-request-definition.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Subject: userfaultfd: fix UFFDIO_CONTINUE ioctl request definition

This ioctl request writes to uffdio_continue structure which justifies
_IOC_WRITE flag.  See NOTEs in include/uapi/asm-generic/ioctl.h for more
information.

Link: https://lkml.kernel.org/r/20210531140146.481553-1-glebfm@altlinux.org
Fixes: f619147104c8 ("userfaultfd: add UFFDIO_CONTINUE ioctl")
Signed-off-by: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Acked-by: Peter Xu <peterx@redhat.com>
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: Daniel Colascione <dancol@google.com>
Cc: Lokesh Gidra <lokeshgidra@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 include/uapi/linux/userfaultfd.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/include/uapi/linux/userfaultfd.h~userfaultfd-fix-uffdio_continue-ioctl-request-definition
+++ a/include/uapi/linux/userfaultfd.h
@@ -81,8 +81,8 @@
 				      struct uffdio_zeropage)
 #define UFFDIO_WRITEPROTECT	_IOWR(UFFDIO, _UFFDIO_WRITEPROTECT, \
 				      struct uffdio_writeprotect)
-#define UFFDIO_CONTINUE		_IOR(UFFDIO, _UFFDIO_CONTINUE,	\
-				     struct uffdio_continue)
+#define UFFDIO_CONTINUE		_IOWR(UFFDIO, _UFFDIO_CONTINUE,	\
+				      struct uffdio_continue)
 
 /* read() structure */
 struct uffd_msg {
_

Patches currently in -mm which might be from glebfm@altlinux.org are

userfaultfd-fix-uffdio_continue-ioctl-request-definition.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-31 21:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-31 21:43 + userfaultfd-fix-uffdio_continue-ioctl-request-definition.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).