)]}'
{
  "commit": "79b496ebe382866e3a05090b7dc9ae95e85e65b2",
  "tree": "8b37602f7a47d8a6a37f3e880749a37cc6a74df8",
  "parents": [
    "627cdcbc2a2eceb0452078a0c14370f9f1f17a91"
  ],
  "author": {
    "name": "Daehyeon Ko",
    "email": "4ncienth@gmail.com",
    "time": "Sun Oct 18 14:17:08 2026 +0900"
  },
  "committer": {
    "name": "Christian Brauner",
    "email": "brauner@kernel.org",
    "time": "Fri Oct 30 15:56:02 2026 +0100"
  },
  "message": "splice: avoid stale f_pos writeback on error\n\ndo_splice() snapshots an implicit file position before calling the splice\nhelper. Since splice does not take f_pos_lock, another operation on the\nsame open file description can update f_pos while the helper is blocked.\nIf the helper then fails, the unconditional writeback restores the stale\nsnapshot.\n\nFor a directory without -\u003esplice_read, a file-to-pipe splice fails with\n-EINVAL. A concurrent directory mutation and getdents() call can advance\nf_pos and refresh the filesystem\u0027s revalidation cookie before that failure\nrestores only the old position. The next ext2 readdir can then trust an\noffset inside a directory entry and copy data from the adjacent page to\nuserspace.\n\nOnly update an implicit file position when splice returns a non-negative\nresult, matching read and write. Keep explicit offset updates unchanged.\n\nFixes: 7995bd287134 (\"splice: don\u0027t pass the address of -\u003ef_pos to methods\")\nCc: stable@vger.kernel.org\nSigned-off-by: Daehyeon Ko \u003c4ncienth@gmail.com\u003e\nLink: https://patch.msgid.link/20261018051708.2422394-1-4ncienth@gmail.com\nSigned-off-by: Christian Brauner (Amutable) \u003cbrauner@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bc243ab8dc431b6cff2810a2d86fb28da474cc19",
      "old_mode": 33188,
      "old_path": "fs/splice.c",
      "new_id": "f4bce3589067191286090fb0d8f656b58349b2fe",
      "new_mode": 33188,
      "new_path": "fs/splice.c"
    }
  ]
}
