diff options
| author | Caleb Sander Mateos <csander@purestorage.com> | 2026-07-29 11:10:39 -0600 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-08-03 20:31:54 -0600 |
| commit | 3831568792af75b6523fa93bb91560e29189cf55 (patch) | |
| tree | 07652cf9c8d26e9f6e8e91e2ecdf4ce0ed91326d /tools/perf/scripts/python/stackcollapse.py | |
| parent | cbe81d612038fa3fb986a1e31fe7b8f808079cf1 (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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
