diff options
author | Yan Zhao <yan.y.zhao@intel.com> | 2020-04-08 10:11:21 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2020-04-20 21:38:22 +0300 |
commit | 205323b8ceac57b0ac9d7dbc4d6fcdb18aa802ec (patch) | |
tree | 408a73957b316c64204997b53689f1c56d5b37f0 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | ae83d0b416db002fe95601e7f97f64b59514d936 (diff) | |
download | linux-205323b8ceac57b0ac9d7dbc4d6fcdb18aa802ec.tar.xz |
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 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions