linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] ext4: Shut down block groups when damage is detected, part 2
@ 2013-09-27  0:03 Darrick J. Wong
  2013-09-27  0:03 ` [PATCH 1/2] ext4: Don't count free clusters from a corrupt block group Darrick J. Wong
  2013-09-27  0:03 ` [PATCH 2/2] ext4: Spot-check block group sub-table locations Darrick J. Wong
  0 siblings, 2 replies; 12+ messages in thread
From: Darrick J. Wong @ 2013-09-27  0:03 UTC (permalink / raw)
  To: tytso, darrick.wong; +Cc: linux-ext4

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH v1.1 0/2] ext4: Shut down block groups when damage is detected, part 2
@ 2013-09-28  0:13 Darrick J. Wong
  2013-09-28  0:14 ` [PATCH 2/2] ext4: Spot-check block group sub-table locations Darrick J. Wong
  0 siblings, 1 reply; 12+ messages in thread
From: Darrick J. Wong @ 2013-09-28  0:13 UTC (permalink / raw)
  To: tytso, darrick.wong; +Cc: linux-ext4, gnehzuil.liu

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

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

end of thread, other threads:[~2013-10-30 17:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-27  0:03 [PATCH v1 0/2] ext4: Shut down block groups when damage is detected, part 2 Darrick J. Wong
2013-09-27  0:03 ` [PATCH 1/2] ext4: Don't count free clusters from a corrupt block group Darrick J. Wong
2013-09-27  5:37   ` Zheng Liu
2013-09-27 18:03     ` Darrick J. Wong
2013-09-27  0:03 ` [PATCH 2/2] ext4: Spot-check block group sub-table locations Darrick J. Wong
2013-09-27  5:40   ` Zheng Liu
2013-09-27 17:57     ` Darrick J. Wong
  -- strict thread matches above, loose matches on Subject: below --
2013-09-28  0:13 [PATCH v1.1 0/2] ext4: Shut down block groups when damage is detected, part 2 Darrick J. Wong
2013-09-28  0:14 ` [PATCH 2/2] ext4: Spot-check block group sub-table locations Darrick J. Wong
2013-09-29  6:44   ` Zheng Liu
2013-10-09 22:08     ` Darrick J. Wong
2013-10-30 16:45       ` Theodore Ts'o
2013-10-30 17:33         ` Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).