angler-fishThe Vulnerability History Project

io_uring: correctly handle non ->{read,write}_iter() file_operations

      Currently we just -EINVAL a read or write to an fd that isn't backed
by ->read_iter() or ->write_iter(). But we can handle them just fine,
as long as we punt fo async context first.

Implement a simple loop function for doing ->read() or ->write()
instead, and ensure we call it appropriately.

Reported-by: 李通洲 <carter.li@eoitek.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
    
commit 32960613b7c3352ddf38c42596e28a16ae36335e
+54 -6
expand_less