)]}'
{
  "commit": "dedf8d3fe774ccfb0cbe5b4d07cecd46a62f48bd",
  "tree": "395b3888ce87bf016c3eb67b3523d6eeb5305846",
  "parents": [
    "0af3bcba3a0b2dbd48510be71c4feeff1d42765f"
  ],
  "author": {
    "name": "Theodore Ts\u0027o",
    "email": "tytso@mit.edu",
    "time": "Wed Nov 11 16:26:13 2026 +0000"
  },
  "committer": {
    "name": "Theodore Ts\u0027o",
    "email": "tytso@mit.edu",
    "time": "Mon Nov 23 15:29:17 2026 -0500"
  },
  "message": "ext4: add KUnit tests for fs/ext4/dir.c\n\nAdd a KUnit test suite (ext4_dir_test) in fs/ext4/dir-test.c covering\ndirectory entry validation, hash-cookie helpers, directory llseek, and\nboth linear and HTree directory iteration in fs/ext4/dir.c:\n\n- __ext4_check_dir_entry() and ext4_check_all_de() validation across\n  valid blocks (including fake \u0027.\u0027, \u0027..\u0027, and metadata_csum tail\n  entries, as well as encrypted+casefolded extended-hash entries) and\n  corrupt rec_len, alignment, name_len, block-end slack, overrun,\n  out-of-bounds inode numbers, and full-block \u0027.\u0027 entries.\n- is_dx_dir(), get_dtype(), and 32-bit vs 64-bit HTree telldir hash\n  position conversions (hash2pos, pos2maj_hash, pos2min_hash, and\n  ext4_get_htree_eof).\n- ext4_dir_operations open(), llseek() (64-bit and 32-bit HTree EOF\n  bounds vs non-DX s_bitmap_maxbytes/SEEK_END bounds and cookie\n  invalidation), and release().\n- ext4_htree_store_dirent() rbtree ordering across major/minor hashes,\n  64-bit hash collision chaining, and ext4_htree_free_dir_info().\n- Linear ext4_readdir() across multi-block directories with sparse\n  holes, deleted entries, stop/resume, unaligned f_pos revalidation on\n  i_version change, bad checksum and corrupt entry skipping, and\n  ERR_BAD_DX_DIR fallback clearing EXT4_INODE_INDEX.\n- HTree ext4_dx_readdir() across multi-leaf next_hash continuations,\n  mid-collision extra_fname stop/resume, EOF handling, seek reset, and\n  mid-iteration i_version refill.\n\nExport ext4_dir_operations, expose thin KUnit wrappers for static\nhelpers in fs/ext4/dir.c, and add a KUNIT_STATIC_STUB_REDIRECT hook to\next4_htree_fill_tree().\n\nSigned-off-by: Theodore Ts\u0027o \u003ctytso@mit.edu\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "cb0d7b6edf6dae929c92884739815781ca6ac5c9",
      "old_mode": 33188,
      "old_path": "fs/ext4/Makefile",
      "new_id": "a427f6f361e5ac728be7e378c8582d789068386d",
      "new_mode": 33188,
      "new_path": "fs/ext4/Makefile"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7ec661919760dacfa23edc7be1c094c13053adc3",
      "new_mode": 33188,
      "new_path": "fs/ext4/dir-test.c"
    },
    {
      "type": "modify",
      "old_id": "f9b6aaabcd1772122bbf65756888865fd5f7a1e8",
      "old_mode": 33188,
      "old_path": "fs/ext4/dir.c",
      "new_id": "43f4f2d451aa8938a84ffe93a7c81e9334c1cd56",
      "new_mode": 33188,
      "new_path": "fs/ext4/dir.c"
    },
    {
      "type": "modify",
      "old_id": "9cf1dd6351a720787db3678634da848b4b620188",
      "old_mode": 33188,
      "old_path": "fs/ext4/ext4.h",
      "new_id": "646c017dda1c61ee6202418f8700c8d8f6c53454",
      "new_mode": 33188,
      "new_path": "fs/ext4/ext4.h"
    },
    {
      "type": "modify",
      "old_id": "ed590010b04631d46b65e7d31c854637bc598d44",
      "old_mode": 33188,
      "old_path": "fs/ext4/namei.c",
      "new_id": "b2753daad49f4afecf34bcf03a820d14866e389b",
      "new_mode": 33188,
      "new_path": "fs/ext4/namei.c"
    }
  ]
}
