Skip to content

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

Darrick J. Wong linux-ext4 1 version Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2ext4: Don't count free clusters from a corrupt block groupfs/ext4/balloc.c+11 -22 replies
2/2ext4: Spot-check block group sub-table locationsfs/ext4/balloc.c fs/ext4/ext4.h fs/ext4/ialloc.c +2 more+45 -04 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchZheng Liu
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1.1 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. Zheng Liu contributed some comments.

Comments and questions are, as always, welcome.

--D