diff options
| author | Yan Zhao <[email protected]> | 2020-04-08 07:11:21 +0000 |
|---|---|---|
| committer | Alex Williamson <[email protected]> | 2020-04-20 18:38:22 +0000 |
| commit | 205323b8ceac57b0ac9d7dbc4d6fcdb18aa802ec (patch) | |
| tree | 408a73957b316c64204997b53689f1c56d5b37f0 /lib/test_linear_ranges.c | |
| parent | Linux 5.7-rc2 (diff) | |
| download | kernel-205323b8ceac57b0ac9d7dbc4d6fcdb18aa802ec.tar.gz kernel-205323b8ceac57b0ac9d7dbc4d6fcdb18aa802ec.zip | |
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 'lib/test_linear_ranges.c')
0 files changed, 0 insertions, 0 deletions
