)]}'
{
  "commit": "8e928622f48f4ad7e005fb9ab44b18c5f58648d6",
  "tree": "d32f0c3319c81bb56394de0953217c790f99fdcd",
  "parents": [
    "abe92f69a783fc6fec85faad26b6d4ac8f6f9f6b"
  ],
  "author": {
    "name": "Mark Syms",
    "email": "mark.syms@citrix.com",
    "time": "Fri Dec 04 16:08:52 2026 +0000"
  },
  "committer": {
    "name": "Andreas Gruenbacher",
    "email": "agruenba@redhat.com",
    "time": "Fri Dec 04 17:15:14 2026 +0100"
  },
  "message": "gfs2: Revalidate the cached writeback mapping after a punch\n\ngfs2_writeback_range() keeps using the mapping cached in wpc-\u003eiomap\nfor every folio it covers, but punch_hole() can free blocks inside\nthat mapping while writeback is still walking the file.\n\nThis happens on an ordinary buffered write. gfs2_file_buffered_write()\nruns with page faults disabled, so a source page that is not resident\nmakes the write come up short, and gfs2_iomap_end() punches the\nunwritten blocks it had just allocated. The retry allocates new\nblocks, but writeback writes the retried folios to the freed ones\nthrough the stale mapping. The new blocks are never written and keep\nwhatever they held before, exposing another file\u0027s data. On a\ncluster the freed blocks may already belong to another node.\n\nFound in XenServer, where suspend images on GFS2 picked up other\nguests\u0027 memory. A reproducer that writes 512 KiB extents from a buffer\nwhose tail is repeatedly dropped with MADV_DONTNEED, with\nsync_file_range() running alongside, corrupted 11 blocks in 20 rounds\nbefore this change and none after.\n\nCount block allocations and deallocations per inode.  In writeback,\ntreat a mapping as valid only while the count is unchanged.\n\nFixes: 2164f9b91869 (\"gfs2: use iomap for buffered I/O in ordered and writeback mode\")\nCc: Christoph Hellwig \u003chch@lst.de\u003e\nCc: stable@vger.kernel.org\nCo-developed-by: Andreas Gruenbacher \u003cagruenba@redhat.com\u003e\nSigned-off-by: Mark Syms \u003cmark.syms@citrix.com\u003e\nSigned-off-by: Andreas Gruenbacher \u003cagruenba@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bb9cd9ef8329aba7541bbb366605797fffd8e474",
      "old_mode": 33188,
      "old_path": "fs/gfs2/bmap.c",
      "new_id": "087362bc76c5bbf022da77450615d56431dd89f4",
      "new_mode": 33188,
      "new_path": "fs/gfs2/bmap.c"
    },
    {
      "type": "modify",
      "old_id": "1ff19f87d3bda9c4f4d7377e573423b2002db154",
      "old_mode": 33188,
      "old_path": "fs/gfs2/incore.h",
      "new_id": "21997b05fdad87ca3bb55d79ae681984045316a8",
      "new_mode": 33188,
      "new_path": "fs/gfs2/incore.h"
    },
    {
      "type": "modify",
      "old_id": "c7777b8565a24a0861628485d05ac958a9b090e1",
      "old_mode": 33188,
      "old_path": "fs/gfs2/super.c",
      "new_id": "70d1fe5d096481fcae582aba4012562cef654fc4",
      "new_mode": 33188,
      "new_path": "fs/gfs2/super.c"
    }
  ]
}
