io-uring.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Hao Xu <haoxu@linux.alibaba.com>
Cc: io-uring@vger.kernel.org, Pavel Begunkov <asml.silence@gmail.com>,
	Joseph Qi <joseph.qi@linux.alibaba.com>
Subject: Re: [PATCH] io-wq: fix memory leak in create_io_worker()
Date: Thu, 9 Sep 2021 06:57:55 -0600	[thread overview]
Message-ID: <d3351ea9-5389-1cd9-ba11-5df4c030f87b@kernel.dk> (raw)
In-Reply-To: <20210909040507.82711-1-haoxu@linux.alibaba.com>

On 9/8/21 10:05 PM, Hao Xu wrote:
> We should free memory the variable worker point to in fail path.

I think this one is missing a few paths where it can also happen, once
punted.

-- 
Jens Axboe


  reply	other threads:[~2021-09-09 14:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-09  4:05 [PATCH] io-wq: fix memory leak in create_io_worker() Hao Xu
2021-09-09 12:57 ` Jens Axboe [this message]
2021-09-09 13:00   ` Hao Xu
2021-09-09 15:41     ` Jens Axboe
2021-09-09 11:58 qiang.zhang
2021-09-09 12:57 ` Jens Axboe

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=d3351ea9-5389-1cd9-ba11-5df4c030f87b@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=asml.silence@gmail.com \
    --cc=haoxu@linux.alibaba.com \
    --cc=io-uring@vger.kernel.org \
    --cc=joseph.qi@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).