public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Z qiang <qiang.zhang1211@gmail.com>
Cc: jiangshanlai@gmail.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] workqueue: Fix UAF report by KASAN in pwq_release_workfn()
Date: Wed, 6 Sep 2023 07:01:29 -1000	[thread overview]
Message-ID: <ZPiwaaZaDPVexezn@slm.duckdns.org> (raw)
In-Reply-To: <CALm+0cVf+E_Y41AdEwLjm2gZAjzeKaZev1Tu1hUS-VpYH0eEHQ@mail.gmail.com>

On Wed, Sep 06, 2023 at 10:12:34AM +0800, Z qiang wrote:
> Flush the pwq_release_worker is insufficient, the call_rcu() is
> invoked to release wq
> in pwq_release_workfn(), this is also asynchronous.

But rcu_free_pwq() doesn't access wq or anything. The last access is from
the work function.

Thanks.

-- 
tejun

  reply	other threads:[~2023-09-06 17:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-02 11:50 [PATCH] workqueue: Fix UAF report by KASAN in pwq_release_workfn() Zqiang
2023-09-05 18:51 ` Tejun Heo
2023-09-06  2:12   ` Z qiang
2023-09-06 17:01     ` Tejun Heo [this message]
2023-09-07  2:13       ` Z qiang
2023-09-18  9:18         ` Z qiang
2023-09-18 18:06         ` Tejun Heo
2023-09-19  2:14           ` Z qiang
2023-12-08  7:32             ` Xuewen Yan
2023-12-08  8:18               ` Z qiang

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=ZPiwaaZaDPVexezn@slm.duckdns.org \
    --to=tj@kernel.org \
    --cc=jiangshanlai@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=qiang.zhang1211@gmail.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