+6
−8
+7
−1
Loading
We attempted to use RCU to protect the pointer 'thread', but directly passed the value when calling md_wakeup_thread(). This means that the RCU pointer has been acquired before rcu_read_lock(), which renders rcu_read_lock() ineffective and could lead to a use-after-free. Link: https://lore.kernel.org/linux-raid/20251015083227.1079009-1-yun.zhou@windriver.com Fixes: 44693154 ("md: protect md_thread with rcu") Signed-off-by:Yun Zhou <yun.zhou@windriver.com> Reviewed-by:
Li Nan <linan122@huawei.com> Reviewed-by:
Yu Kuai <yukuai@fnnas.com> Signed-off-by:
Yu Kuai <yukuai@fnnas.com>