linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] io_uring: fix bad free in io_sqe_files_register
@ 2019-04-21  1:42 Dan Robertson
  2019-04-21  1:42 ` [PATCH 1/1] " Dan Robertson
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Robertson @ 2019-04-21  1:42 UTC (permalink / raw)
  To: Jens Axboe, linux-block; +Cc: Dan Robertson

If io_sqe_files_register is called but returns EFAULT or EBADF the
io_ring_ctx user_files member is cleaned up, but a following call to
io_sqe_files_unregister will double-free.

Dan Robertson (1):
  io_uring: fix bad free in io_sqe_files_register

 fs/io_uring.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.21.0




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-21  2:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-21  1:42 [PATCH 0/1] io_uring: fix bad free in io_sqe_files_register Dan Robertson
2019-04-21  1:42 ` [PATCH 1/1] " Dan Robertson
2019-04-21  1:58   ` Jens Axboe
2019-04-21  2:02     ` Dan Robertson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).