All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] dm vdo: additional metadata validation
@ 2026-02-24  2:08 Matthew Sakai
  2026-02-24  2:08 ` [PATCH v2 1/2] dm vdo indexer: validate saved region and zone counts Matthew Sakai
  2026-02-24  2:08 ` [PATCH v2 2/2] dm vdo slab-depot: validate old zone count on load Matthew Sakai
  0 siblings, 2 replies; 3+ messages in thread
From: Matthew Sakai @ 2026-02-24  2:08 UTC (permalink / raw)
  To: dm-devel; +Cc: Matthew Sakai

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-02-24  2:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-24  2:08 [PATCH v2 0/2] dm vdo: additional metadata validation Matthew Sakai
2026-02-24  2:08 ` [PATCH v2 1/2] dm vdo indexer: validate saved region and zone counts Matthew Sakai
2026-02-24  2:08 ` [PATCH v2 2/2] dm vdo slab-depot: validate old zone count on load Matthew Sakai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.