* [PATCH] userfaultfd: fix UFFDIO_CONTINUE ioctl request definition
@ 2021-05-31 14:01 Gleb Fotengauer-Malinovskiy
0 siblings, 0 replies; only message in thread
From: Gleb Fotengauer-Malinovskiy @ 2021-05-31 14:01 UTC (permalink / raw)
To: Andrew Morton, Peter Xu, Axel Rasmussen, Daniel Colascione,
Lokesh Gidra, linux-kernel@vger.kernel.org
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.
Fixes: f619147104c8 ("userfaultfd: add UFFDIO_CONTINUE ioctl")
Signed-off-by: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
---
include/uapi/linux/userfaultfd.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/uapi/linux/userfaultfd.h b/include/uapi/linux/userfaultfd.h
index bafbeb1a2624..650480f41f1d 100644
--- a/include/uapi/linux/userfaultfd.h
+++ b/include/uapi/linux/userfaultfd.h
@@ -80,8 +80,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 {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-31 14:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-31 14:01 [PATCH] userfaultfd: fix UFFDIO_CONTINUE ioctl request definition Gleb Fotengauer-Malinovskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®