diff options
| author | Yan Zhao <[email protected]> | 2020-04-08 03:11:21 -0400 |
|---|---|---|
| committer | Alex Williamson <[email protected]> | 2020-04-20 12:38:22 -0600 |
| commit | 205323b8ceac57b0ac9d7dbc4d6fcdb18aa802ec (patch) | |
| tree | 408a73957b316c64204997b53689f1c56d5b37f0 /tools/perf/scripts/python/sctop.py | |
| parent | ae83d0b416db002fe95601e7f97f64b59514d936 (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 <[email protected]>
Reported-by: Kees Cook <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions