We identified a few places where dm-vdo uses a value from storage without sanity-checking that its value makes sense. Adding additional checks can prevent additional metadata corruption in the unusual cases where these values get corrupted.
Changes from v1: 1/2 Fixed the upper bound check to handle MAX_ZONES correctly. 1/2 Added a lower bound check for the region count. Matthew Sakai (2): dm vdo indexer: validate saved region and zone counts dm vdo slab-depot: validate old zone count on load drivers/md/dm-vdo/indexer/index-layout.c | 9 ++++++++- drivers/md/dm-vdo/slab-depot.c | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) -- 2.48.1
