History

userfaultfd: uapi: fix UFFDIO_CONTINUE ioctl request definition

This ioctl request reads from uffdio_continue structure written by userspace which justifies _IOC_WRITE flag. It also writes back to that structure which justifies _IOC_READ flag. See NOTEs in include/uapi/asm-generic/ioctl.h for more information.

Gleb Fotengauer-Malinovskiy committed 5 years ago

Commit 808e9df1 parent 55fcd441 file · +2 −2Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/userfaultfd.h+2−2
@@ -80,8 +80,8 @@ · 79 unmodified lines
8080 struct uffdio_zeropage)
8181 #define UFFDIO_WRITEPROTECT _IOWR(UFFDIO, _UFFDIO_WRITEPROTECT, \
8282 struct uffdio_writeprotect)
83−#define UFFDIO_CONTINUE _IOR(UFFDIO, _UFFDIO_CONTINUE, \
84− struct uffdio_continue)
83+#define UFFDIO_CONTINUE _IOWR(UFFDIO, _UFFDIO_CONTINUE, \
84+ struct uffdio_continue)
8585
8686 /* read() structure */
8787 struct uffd_msg {