diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2025-01-22 20:38:30 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2025-01-23 23:13:27 +0300 |
commit | ce9ff21ea89d191e477a02ad7eabf4f996b80a69 (patch) | |
tree | fea8b7dafab519c2508a8eccc56cd8ff271fcdcc /tools/perf/scripts/python/gecko.py | |
parent | e021e6cbfb5a695968afb6619828929a97e4a83a (diff) | |
download | linux-ce9ff21ea89d191e477a02ad7eabf4f996b80a69.tar.xz |
vfio/platform: check the bounds of read/write syscalls
count and offset are passed from user space and not checked, only
offset is capped to 40 bits, which can be used to read/write out of
bounds of the device.
Fixes: 6e3f26456009 (“vfio/platform: read and write support for the device fd”)
Cc: stable@vger.kernel.org
Reported-by: Mostafa Saleh <smostafa@google.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Mostafa Saleh <smostafa@google.com>
Tested-by: Mostafa Saleh <smostafa@google.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions