Commit 9deaf90c authored by Luo Meng's avatar Luo Meng Committed by zhaoxiaoqiang11
Browse files

dm clone: Fix UAF in clone_dtr()

stable inclusion
from stable-v5.10.163
commit 342cfd8426dff4228e6c714bcb9fc8295a2748dd
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7PJ9N

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=342cfd8426dff4228e6c714bcb9fc8295a2748dd



----------------------------------------------------

commit e4b5957c upstream.

Dm_clone also has the same UAF problem when dm_resume()
and dm_destroy() are concurrent.

Therefore, cancelling timer again in clone_dtr().

Cc: stable@vger.kernel.org
Fixes: 7431b783 ("dm: add clone target")
Signed-off-by: default avatarLuo Meng <luomeng12@huawei.com>
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarzhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
parent 32760ee0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment