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:Luo Meng <luomeng12@huawei.com> Signed-off-by:
Mike Snitzer <snitzer@kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
zhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
Loading
Please sign in to comment