]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
dm writecache: fix writing beyond end of underlying device when shrinking
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 9 Feb 2021 15:56:20 +0000 (10:56 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 9 Feb 2021 22:09:02 +0000 (17:09 -0500)
commit4134455f2aafdfeab50cabb4cccb35e916034b93
tree5c945f2ed7f0734006782150a49bf1aa89f41fe2
parentcccb493cdae76a51e1258c0738e2b43869655d39
dm writecache: fix writing beyond end of underlying device when shrinking

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: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-writecache.c