Re: [PATCH V1] block: Fix null pointer dereference issue on struct io_cq

From: Yu Kuai
Date: Tue May 30 2023 - 09:24:50 EST


Hi,

在 2023/05/30 21:15, Pradeep Pragallapati 写道:
Hi,

On 5/22/2023 11:49 AM, Pradeep Pragallapati wrote:

On 5/18/2023 6:14 PM, Yu Kuai wrote:
Hi,

在 2023/05/18 20:16, Yu Kuai 写道:

@@ -173,18 +171,17 @@ void ioc_clear_queue(struct request_queue *q)
  {
         LIST_HEAD(icq_list);

+       rcu_read_lock();

Sorry that I realized this is still not enough, following list_empty()
and list_entry() can still concurrent with list_del(). Please try the
following patch:
sure will try and update the results.


At least for 80+hrs of testing, i didn't see the issue reproduced. seems like it is helping my case.

Thanks for the test, I'll send a patch soon.

Kuai