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
80 struct uffdio_zeropage)80 struct uffdio_zeropage)
81#define UFFDIO_WRITEPROTECT _IOWR(UFFDIO, _UFFDIO_WRITEPROTECT, \81#define UFFDIO_WRITEPROTECT _IOWR(UFFDIO, _UFFDIO_WRITEPROTECT, \
82 struct uffdio_writeprotect)82 struct uffdio_writeprotect)
83#define UFFDIO_CONTINUE _IOR(UFFDIO, _UFFDIO_CONTINUE, \83#define UFFDIO_CONTINUE _IOWR(UFFDIO, _UFFDIO_CONTINUE, \
84 struct uffdio_continue)84 struct uffdio_continue)
85 85
86/* read() structure */86/* read() structure */
87struct uffd_msg {87struct uffd_msg {