mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "zhangwensheng (E)" <zhangwensheng@huaweicloud.com>
To: lee.jones@linaro.org
Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org
Subject: Question: consult patch
Date: Fri, 12 Aug 2022 11:34:59 +0800	[thread overview]
Message-ID: <420a6c4a-e526-4e8b-d5bd-563c40aa94e1@huaweicloud.com> (raw)

Hi Lee :
     I saw your patch because of CVE-2022-20158, the patch like below:

---
     mm: backing-dev: Take a reference to the bdi in use to prevent UAF

     KASAN reports a reproducible issue in the BDI handling code due to a
     dereference of a previously freed pointer to 'struct backing_dev_info'
     in bdi_unregister().

     Because of a distinct lack of locking and/or reference taking,
     blk_cleanup_queue() puts the final taken reference to the bdi, which
     is then promptly freed by release_bdi().  However, del_gendisk() calls
     bdi_unregister() after the fact, which then attempts to dereference
     it causing the kernel to panic.

     Bug: 182815710
     Signed-off-by: Lee Jones <lee.jones@linaro.org>
     Change-Id: Iaf3dadf3b983a4b7d74d4e273fc676350cfc387f
---

     I am sorry that I have some questions for this patch. According to
     my analysis, I failed to find the relevant process may lead to null
     pointer reference. can you show me "KASAN reports a reproducible issue"
     that what the problem is?  thank you very much!


             reply	other threads:[~2022-08-12  3:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-12  3:34 zhangwensheng (E) [this message]
2022-08-12  5:44 ` Christoph Hellwig
2022-08-12  6:27   ` zhangwensheng (E)
2022-08-12  7:26     ` Lee Jones
2022-08-12  7:38       ` zhangwensheng (E)
2022-08-12  9:31         ` Lee Jones
2022-08-12  9:39         ` zhangwensheng (E)

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=420a6c4a-e526-4e8b-d5bd-563c40aa94e1@huaweicloud.com \
    --to=zhangwensheng@huaweicloud.com \
    --cc=lee.jones@linaro.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®