Skip to content

ext4: Shut down block groups when damage is detected, part 2

Darrick J. Wong linux-ext4 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/2ext4: Don't count free clusters from a corrupt block groupfs/ext4/balloc.c+6 -12 replies
2/2ext4: Spot-check block group sub-table locationsfs/ext4/balloc.c fs/ext4/ext4.h fs/ext4/ialloc.c +2 more+38 -02 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH v1 0/2] ext4: Shut down block groups when damage is detected, part 2

This patchset adds in a few things that weren't included in the original block group shutdown patches.

The first prevents corrupt block groups from contributing to the free block summary count, since by definition corrupt block groups have no free blocks.

The second patch performs a quick sanity check of bitmap and inode table block numbers when loading them in from disk. These are the same checks that are done at mount time; this patch guards against either deliberate sabotage or memory corruption. Since we're about to do a slow disk read anyway, we might as well take the time to double check for obvious brokenness.

This patchset has been tested (albeit lightly) against 3.12-rc2 on x64.

Comments and questions are, as always, welcome.

--D