diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-12-02 21:03:47 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-12-03 07:33:25 +0300 |
commit | f67676d160c6ee2ed82917fadfed6d29cab8237c (patch) | |
tree | 3e53204915d5ec5ea6389294a4086f5e48218d78 /net/socket.c | |
parent | 1a6b74fc87024db59d41cd7346bd437f20fb3e2d (diff) | |
download | linux-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/socket.c')
0 files changed, 0 insertions, 0 deletions