Linux-Fsdevel Archive on
help / color / mirror / Atom feed
From: Jens Axboe <>
To: Guoyu Huang <>,
Subject: Re: [PATCH] io_uring: Fix use-after-free in io_sq_wq_submit_work()
Date: Wed, 5 Aug 2020 13:10:54 -0600	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <20200805034042.GA29805@ubuntu>

On 8/4/20 9:40 PM, Guoyu Huang wrote:
> when ctx->sqo_mm is zero, io_sq_wq_submit_work() frees 'req'
> without deleting it from 'task_list'. After that, 'req' is
> accessed in io_ring_ctx_wait_and_kill() which lead to
> a use-after-free.

This looks like an old one, that affects 5.4 only. I've massaged
it to apply on top of another fix, will ask to get it queued up for
stable. Thanks!

Jens Axboe

      reply	other threads:[~2020-08-05 19:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-05  3:40 Guoyu Huang
2020-08-05 19:10 ` Jens Axboe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] io_uring: Fix use-after-free in io_sq_wq_submit_work()' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).