summaryrefslogtreecommitdiff
path: root/lib/locking-selftest-rtmutex.h
diff options
context:
space:
mode:
authorYan Zhao <yan.y.zhao@intel.com>2020-04-08 03:11:21 -0400
committerAlex Williamson <alex.williamson@redhat.com>2020-04-20 12:38:22 -0600
commit205323b8ceac57b0ac9d7dbc4d6fcdb18aa802ec (patch)
tree408a73957b316c64204997b53689f1c56d5b37f0 /lib/locking-selftest-rtmutex.h
parentae83d0b416db002fe95601e7f97f64b59514d936 (diff)
vfio: checking of validity of user vaddr in vfio_dma_rw
instead of calling __copy_to/from_user(), use copy_to_from_user() to ensure vaddr range is a valid user address range before accessing them. Fixes: 8d46c0cca5f4 ("vfio: introduce vfio_dma_rw to read/write a range of IOVAs") Signed-off-by: Yan Zhao <yan.y.zhao@intel.com> Reported-by: Kees Cook <keescook@chromium.org> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'lib/locking-selftest-rtmutex.h')
0 files changed, 0 insertions, 0 deletions