)]}'
{
  "commit": "0d3a450a0106f1f0c24528591be5ef1d51f37661",
  "tree": "8a165f9cdc257f417a7c8d70467967c116e18c73",
  "parents": [
    "99549fb7954fe9f30ccba9c0d83859b6a2794b29"
  ],
  "author": {
    "name": "Dave Chinner",
    "email": "dgc@kernel.org",
    "time": "Thu Nov 12 11:03:34 2026 +1100"
  },
  "committer": {
    "name": "Dave Chinner",
    "email": "dgc@kernel.org",
    "time": "Thu Nov 12 11:03:34 2026 +1100"
  },
  "message": "xfs: validate logged dquot buffers during recovery\n\nA buffer with a dquot type flag is only ever logged by\nxfs_qm_init_dquot_blk(), which initialises and logs the whole buffer in a\nsingle region. So such a buffer has exactly two regions: the format header,\nand one data region covering the entire buffer that holds a full chunk of\nvalid dquots. Online repair also logs whole dquot buffers, but without the\ntype flag, so they are not checked here.\n\nValidate this in the buffer item validate_item callback. A buffer carrying a\ndquot type flag must have that shape, and every dquot in the logged chunk is\nverified so a corrupt dquot is never replayed to disk. The dquot content check\nin the replay path only looked at the first dquot and relied on the replay loop\nfor the region bounds, so it is removed and the replay loop reduces to copying\nthe logged regions into the buffer.\n\nTo share the per-dquot verification, xfs_dquot_verify_chunk() is factored out of\nxfs_dquot_buf_verify(). It walks a chunk of dquots and, on failure, updates its\ndquot pointer to the offending dquot so the caller can report it. The buffer\nread verifier is otherwise unchanged.\n\nAssisted-by: LLM\nSigned-off-by: Dave Chinner \u003cdgc@kernel.org\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6c8a9afdfb1c0fb15cf00b6f70f9f2a3c3e22f9c",
      "old_mode": 33188,
      "old_path": "fs/xfs/libxfs/xfs_dquot_buf.c",
      "new_id": "d6837c840989974ceaaf7498093676353174fc4b",
      "new_mode": 33188,
      "new_path": "fs/xfs/libxfs/xfs_dquot_buf.c"
    },
    {
      "type": "modify",
      "old_id": "551d7ae46c5c21d7471ad3d4a5110b8a03fbaaa2",
      "old_mode": 33188,
      "old_path": "fs/xfs/libxfs/xfs_quota_defs.h",
      "new_id": "73d82edf0969d1d698f81bb04b18c2e37e298ad3",
      "new_mode": 33188,
      "new_path": "fs/xfs/libxfs/xfs_quota_defs.h"
    },
    {
      "type": "modify",
      "old_id": "32c7bf16378a5e5c9e5f159e23e5a6f2db590676",
      "old_mode": 33188,
      "old_path": "fs/xfs/xfs_buf_item_recover.c",
      "new_id": "7be00f0e6b341d993b1a7a5cdc79ed8275b36809",
      "new_mode": 33188,
      "new_path": "fs/xfs/xfs_buf_item_recover.c"
    }
  ]
}
