summaryrefslogtreecommitdiffstats
path: root/kernel/cgroup
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2022-03-26 15:24:56 +0100
committerMike Snitzer <snitzer@kernel.org>2022-04-01 16:31:23 +0200
commitcc09e8a9dec4f0e8299e80a7a2a8e6f54164a10b (patch)
treedee5328117e5f79e990ff8b4c539e71ca2496da5 /kernel/cgroup
parentdm ioctl: log an error if the ioctl structure is corrupted (diff)
downloadlinux-cc09e8a9dec4f0e8299e80a7a2a8e6f54164a10b.tar.xz
linux-cc09e8a9dec4f0e8299e80a7a2a8e6f54164a10b.zip
dm integrity: set journal entry unused when shrinking device
Commit f6f72f32c22c ("dm integrity: don't replay journal data past the end of the device") skips journal replay if the target sector points beyond the end of the device. Unfortunatelly, it doesn't set the journal entry unused, which resulted in this BUG being triggered: BUG_ON(!journal_entry_is_unused(je)) Fix this by calling journal_entry_set_unused() for this case. Fixes: f6f72f32c22c ("dm integrity: don't replay journal data past the end of the device") Cc: stable@vger.kernel.org # v5.7+ Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Tested-by: Milan Broz <gmazyland@gmail.com> [snitzer: revised header] Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'kernel/cgroup')
0 files changed, 0 insertions, 0 deletions