Skip to content

Deal with incorrect checksums

Gabriel de Perthuis util-linux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2libblkid: Abort after an incorrect checksumlibblkid/src/blkidP.h libblkid/src/probe.c libblkid/src/superblocks/lvm.c +4 more+34 -105 replies
2/2wipefs: Also wipe superblocks with bad checksumslibblkid/src/blkid.h.in libblkid/src/superblocks/superblocks.c misc-utils/wipefs.c+5 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Deal with incorrect checksums

This is to avoid exposing backend devices that are supposed to be used through a stacked device.

Good magic / bad csum superblocks are still exposed to wipefs.

Prompted by the bcache patch.

Can be pulled from https://github.com/g2p/util-linux/commits

Gabriel de Perthuis (2):
libblkid: Abort after an incorrect checksum
wipefs: Also wipe superblocks with bad checksums

 libblkid/src/blkid.h.in                 | 1 +
 libblkid/src/blkidP.h                   | 6 ++++++
 libblkid/src/probe.c                    | 7 +++++++
 libblkid/src/superblocks/lvm.c          | 9 ++++++---
 libblkid/src/superblocks/nilfs.c        | 3 +--
 libblkid/src/superblocks/silicon_raid.c | 7 ++++---
 libblkid/src/superblocks/superblocks.c  | 9 +++++++++
 libblkid/src/superblocks/via_raid.c     | 4 ++--
 misc-utils/wipefs.c                     | 3 ++-
 9 files changed, 38 insertions(+), 11 deletions(-)
Signature · 1 line
1.8.4.25.g05e4ae6