)]}'
{
  "commit": "05f2b6927ab5511f43cce8564ce799d87544033f",
  "tree": "f207a98655a100d32d4a650a04847de36a44203e",
  "parents": [
    "07ab120f16454ba028de16a2e660b75c6b5c6467"
  ],
  "author": {
    "name": "Theodore Ts\u0027o",
    "email": "tytso@mit.edu",
    "time": "Fri Nov 06 16:01:20 2026 +0000"
  },
  "committer": {
    "name": "Theodore Ts\u0027o",
    "email": "tytso@mit.edu",
    "time": "Mon Nov 23 15:29:15 2026 -0500"
  },
  "message": "ext4: add KUnit tests for fs/ext4/block_validity.c\n\nAdd the ext4_block_validity_test KUnit test suite in\nfs/ext4/block_validity-test.c (16 test cases, 40 subtests total) to\ncomprehensively exercise system-zone rbtree construction, RCU release,\nblock range validation, reserved journal inode protection, and indirect\nblock reference checking in fs/ext4/block_validity.c using an in-memory\nVFS superblock and mock block device without requiring a mounted disk:\n\n- Bounds and 64-bit overflow checks (ext4_sb_block_valid and\n  ext4_inode_block_valid) across 1KiB (s_first_data_block \u003d 1) and 4KiB\n  (s_first_data_block \u003d 0) geometries, exact end-of-filesystem single\n  and multi-block spans, 64-bit u64 addition wrap-around, \u003e32-bit block\n  counts under EXT4_FEATURE_INCOMPAT_64BIT, and high-32-bit masking when\n  64bit is cleared.\n- System-zone lifecycle management (ext4_setup_system_zone and\n  ext4_release_system_zone), covering pre-setup NULL behavior, RCU\n  publication and teardown, and idempotent double-release handling.\n- Multi-group sparse_super and flex_bg layouts (including groups with\n  zero base metadata blocks and relocated bitmaps/inode tables) as well\n  as DEBUG mount-option tree printing (debug_print_tree).\n- System-zone rbtree merging (add_system_zone and can_merge) across\n  left-neighbor merges, right-neighbor merges, 3-way bridge merges, and\n  64-bit (\u003e2^32) group descriptor metadata zones, plus parameterized\n  interval-overlap geometries (adjacent, single-block, boundary\n  straddling, interior, exact, and enclosing spans).\n- Corrupt overlapping group metadata detection (-EFSCORRUPTED) across\n  block bitmap, inode bitmap, inode table, and cross-group collisions,\n  verifying partial rbtree cleanup without publishing s_system_blks.\n- Reserved journal inode protection (ext4_protect_reserved_inode),\n  verifying non-block-aligned i_size rounding, multi-extent and sparse\n  hole mapping, journal-inode ownership vs. regular/NULL inode\n  rejection, can_merge() isolation between adjacent ino\u003d0 and journal\n  zones, disabled-feature/zero-inum/empty-inode skips, and -EINVAL,\n  ext4_iget, ext4_map_blocks, and metadata-overlap (-EFSCORRUPTED +\n  EXT4_ERROR_FS) failure paths.\n- Block reference array validation (ext4_check_blockref,\n  ext4_ind_check_inode, and ext4_check_indirect_blockref) across empty\n  and sparse arrays, metadata and out-of-bounds corruption reporting,\n  active journal inode (s_journal-\u003ej_inode) bypass, and integration with\n  ext4_map_blocks() block validity checks.\n\nExport the five runtime entry points in fs/ext4/block_validity.c with\nEXPORT_SYMBOL_FOR_EXT4_TEST for the ext4-test KUnit module.\n\nSigned-off-by: Theodore Ts\u0027o \u003ctytso@mit.edu\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9bad2bff0de969a39a2c0c236d47eebbc7abc9e4",
      "old_mode": 33188,
      "old_path": "fs/ext4/Makefile",
      "new_id": "5c6afff5f12ac680fb83ce9aaef4375de646f5d9",
      "new_mode": 33188,
      "new_path": "fs/ext4/Makefile"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f7667099ac6ca5a8d7c4b0766dc185c3397bd14f",
      "new_mode": 33188,
      "new_path": "fs/ext4/block_validity-test.c"
    },
    {
      "type": "modify",
      "old_id": "3a31e3d718c95ae5fa93fa82f0094271f170588e",
      "old_mode": 33188,
      "old_path": "fs/ext4/block_validity.c",
      "new_id": "53b042f36a696163827a37db077758fbed319cd6",
      "new_mode": 33188,
      "new_path": "fs/ext4/block_validity.c"
    }
  ]
}
