• J
    io_uring: ensure async punted read/write requests copy iovec · f67676d1
    Jens Axboe 提交于
    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: N李通洲 <carter.li@eoitek.com>
    Signed-off-by: NJens Axboe <axboe@kernel.dk>
    f67676d1
io_uring.c 121.6 KB