]> git.baikalelectronics.ru Git - kernel.git/commit
userfaultfd: uapi: fix UFFDIO_CONTINUE ioctl request definition
authorGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Fri, 25 Jun 2021 17:36:55 +0000 (20:36 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jun 2021 17:53:26 +0000 (10:53 -0700)
commitdc72786191b3fa7388793b909d976f33cfeb01d3
tree3788dfa060a6d7be79d0a4a3d12697fa7b79b8ad
parent8e1e9d4cdec6abff60dc3be4f3a31429803c5f6d
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.

Fixes: 2e06987bf27e ("userfaultfd: add UFFDIO_CONTINUE ioctl")
Signed-off-by: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Acked-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Axel Rasmussen <axelrasmussen@google.com>
Reviewed-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/uapi/linux/userfaultfd.h