Linux block layer
 help / color / mirror / Atom feed
* Question: consult patch
@ 2022-08-12  3:34 zhangwensheng (E)
  2022-08-12  5:44 ` Christoph Hellwig
  0 siblings, 1 reply; 7+ messages in thread
From: zhangwensheng (E) @ 2022-08-12  3:34 UTC (permalink / raw)
  To: lee.jones; +Cc: linux-kernel, linux-block

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!


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

end of thread, other threads:[~2022-08-12  9:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-12  3:34 Question: consult patch zhangwensheng (E)
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)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox