summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-12-02 21:03:47 +0300
committerJens Axboe <axboe@kernel.dk>2019-12-03 07:33:25 +0300
commitf67676d160c6ee2ed82917fadfed6d29cab8237c (patch)
tree3e53204915d5ec5ea6389294a4086f5e48218d78 /net
parent1a6b74fc87024db59d41cd7346bd437f20fb3e2d (diff)
downloadlinux-f67676d160c6ee2ed82917fadfed6d29cab8237c.tar.xz
io_uring: ensure async punted read/write requests copy iovec
Currently we don't copy the iovecs when we punt to async context. This can be problematic for applications that store the iovec on the stack, as they often assume that it's safe to let the iovec go out of scope as soon as IO submission has been called. This isn't always safe, as we will re-copy the iovec once we're in async context. Make this 100% safe by copying the iovec just once. With this change, applications may safely store the iovec on the stack for all cases. Reported-by: 李通洲 <carter.li@eoitek.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions