Thread (10 messages) 10 messages, 2 authors, 2023-07-08

Re: [PATCH -next v2 2/2] md/raid5-cache: fix null-ptr-deref in r5l_reclaim_thread()

From: Yu Kuai <hidden>
Date: 2023-07-08 02:42:08
Also in: lkml

Hi,

在 2023/07/07 17:36, Song Liu 写道:
On Fri, Jul 7, 2023 at 5:19 PM Yu Kuai [off-list ref] wrote:
quoted
Hi,

在 2023/07/07 17:16, Yu Kuai 写道:
quoted
Perhaps you means this order?

r5l_exit_log
   flush_work(&log->disable_writeback_work)
   conf->log = NULL
   md_unregister_thread(&log->reclaim_thread)

I think this is better indeed.
Never mind, this is wrong, I got confused...

Please ignore this and take a look at my original fix.
How about

r5l_exit_log
   md_unregister_thread(&log->reclaim_thread)
   conf->log = NULL
   flush_work(&log->disable_writeback_work)

?
This looks correct, expect that wake_up() should be moved together.

I'll send a v2.

Thanks,
Kuai
Thanks,
Song
.
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help