• Linus Torvalds's avatar
    Merge tag 'for-5.4/io_uring-2019-09-24' of git://git.kernel.dk/linux-block · b6cb84b4
    Linus Torvalds authored
    Pull more io_uring updates from Jens Axboe:
     "A collection of later fixes and additions, that weren't quite ready
      for pushing out with the initial pull request.
    
      This contains:
    
       - Fix potential use-after-free of shadow requests (Jackie)
    
       - Fix potential OOM crash in request allocation (Jackie)
    
       - kmalloc+memcpy -> kmemdup cleanup (Jackie)
    
       - Fix poll crash regression (me)
    
       - Fix SQ thread not being nice and giving up CPU for !PREEMPT (me)
    
       - Add support for timeouts, making it easier to do epoll_wait()
         conversions, for instance (me)
    
       - Ensure io_uring works without f_ops->read_iter() and
         f_ops->write_iter() (me)"
    
    * tag 'for-5.4/io_uring-2019-09-24' of git://git.kernel.dk/linux-block:
      io_uring: correctly handle non ->{read,write}_iter() file_operations
      io_uring: IORING_OP_TIMEOUT support
      io_uring: use cond_resched() in sqthread
      io_uring: fix potential crash issue due to io_get_req failure
      io_uring: ensure poll commands clear ->sqe
      io_uring: fix use-after-free of shadow_req
      io_uring: use kmemdup instead of kmalloc and memcpy
    b6cb84b4
io_uring.c 93.2 KB