mbox series

[00/10] xfs: strengthen log intent validation

Message ID 160679385987.447963.9630288535682256882.stgit@magnolia (mailing list archive)
Headers show
Series xfs: strengthen log intent validation | expand

Message

Darrick J. Wong Dec. 1, 2020, 3:37 a.m. UTC
Hi all,

This patchset hoists the code that checks log intent record validation
into separate functions, and reworks them to use the standard field
validation predicates instead of open-coding them.  This strengthens log
recovery against (some) fuzzed log items.

If you're going to start using this mess, you probably ought to just
pull from my git trees, which are linked below.

This is an extraordinary way to destroy everything.  Enjoy!
Comments and questions are, as always, welcome.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=fix-recovered-log-intent-validation-5.11
---
 fs/xfs/xfs_bmap_item.c     |   75 ++++++++++++++++++++++++++++----------------
 fs/xfs/xfs_extfree_item.c  |   31 ++++++++++++------
 fs/xfs/xfs_log_recover.c   |    5 ++-
 fs/xfs/xfs_refcount_item.c |   61 ++++++++++++++++++++++--------------
 fs/xfs/xfs_rmap_item.c     |   75 ++++++++++++++++++++++++++++----------------
 fs/xfs/xfs_trace.h         |   19 +++++++++++
 6 files changed, 178 insertions(+), 88 deletions(-)