]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm integrity: Fix UAF in dm_integrity_dtr()
authorLuo Meng <luomeng12@huawei.com>
Tue, 29 Nov 2022 02:48:50 +0000 (10:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jan 2023 10:11:45 +0000 (11:11 +0100)
commitb6c93cd61afab061d80cc842333abca97b289774
treeb7e9886d7a19418e28f317a97fcf3abe5fd7528e
parentd9971fa4d8bde63d49c743c1b32d12fbbd3a30bd
dm integrity: Fix UAF in dm_integrity_dtr()

commit f50cb2cbabd6c4a60add93d72451728f86e4791c upstream.

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

Therefore, cancelling timer again in dm_integrity_dtr().

Cc: stable@vger.kernel.org
Fixes: 7eada909bfd7a ("dm: add integrity 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>
drivers/md/dm-integrity.c