userfaultfd: fix UFFDIO_CONTINUE ioctl request definition
PATCH 1/1 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.
Fixes f619147104c8 ("userfaultfd: add UFFDIO_CONTINUE ioctl")
Signed-off-by Gleb Fotengauer-Malinovskiy <[email protected]>
--- include/uapi/linux/userfaultfd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/uapi/linux/userfaultfd.h +2 -2
@@ -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 {