summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorCaleb Sander Mateos <csander@purestorage.com>2026-07-29 11:10:39 -0600
committerJens Axboe <axboe@kernel.dk>2026-08-03 20:31:54 -0600
commit3831568792af75b6523fa93bb91560e29189cf55 (patch)
tree07652cf9c8d26e9f6e8e91e2ecdf4ce0ed91326d /tools/perf/scripts/python
parentcbe81d612038fa3fb986a1e31fe7b8f808079cf1 (diff)
ublk: check import_ubuf() return value
import_ubuf() can fail if the address range (provided by the userspace ublk server) is outside the allowed user address space. Return that 0 bytes were copied if import_ubuf() fails rather than passing an uninitialized struct iov_iter to ublk_copy_user_pages(). Fixes: 981f95a571e3 ("ublk: cleanup ublk_copy_user_pages") Reported-by: Ming Lei <tom.leiming@gmail.com> Signed-off-by: Caleb Sander Mateos <csander@purestorage.com> Link: https://patch.msgid.link/20260729171041.45061-2-csander@purestorage.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions