Commit 75b26a1f authored by Mikulas Patocka's avatar Mikulas Patocka Committed by Yang Yingliang
Browse files

dm writecache: fix writing beyond end of underlying device when shrinking



stable inclusion
from linux-4.19.199
commit 797b950e8aaec3fc30312bb9a44d702c6cc9d25e

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

commit 4134455f upstream.

Do not attempt to write any data beyond the end of the underlying data
device while shrinking it.

The DM writecache device must be suspended when the underlying data
device is shrunk.

Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent ea1c68b6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment