aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorMark Harmstone <[email protected]>2025-01-03 15:02:26 +0000
committerDavid Sterba <[email protected]>2025-01-06 12:59:29 +0000
commitc21b89d495bab6ae7ce0a1592bb955e5e80127fd (patch)
treee49ca741c9107643e72449b72ed582fbc8d3473b /tools/testing/selftests/net/lib/py/utils.py
parentio_uring: add io_uring_cmd_get_async_data helper (diff)
downloadkernel-c21b89d495bab6ae7ce0a1592bb955e5e80127fd.tar.gz
kernel-c21b89d495bab6ae7ce0a1592bb955e5e80127fd.zip
btrfs: don't read from userspace twice in btrfs_uring_encoded_read()
If we return -EAGAIN the first time because we need to block, btrfs_uring_encoded_read() will get called twice. Take a copy of args, the iovs, and the iter the first time, as by the time we are called the second time these may have gone out of scope. Reported-by: Jens Axboe <[email protected]> Fixes: 34310c442e17 ("btrfs: add io_uring command for encoded reads (ENCODED_READ ioctl)") Signed-off-by: Mark Harmstone <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions