)]}'
{
  "commit": "c206cdfee6c037b829178bb7e17e6e37ddc9aa35",
  "tree": "d4b8116ca1388c096655be72cd497233c943998d",
  "parents": [
    "53d72818f9e2aeb03a6053544ee6efa4eb2a3988"
  ],
  "author": {
    "name": "Zhao Gongyi",
    "email": "zhaogongyi@bytedance.com",
    "time": "Fri Oct 23 19:12:50 2026 +0800"
  },
  "committer": {
    "name": "Christian Brauner",
    "email": "brauner@kernel.org",
    "time": "Fri Oct 30 15:54:20 2026 +0100"
  },
  "message": "filelock: keep superblock active through delegation wait\n\nA caller may drop its path after try_break_deleg() returns a delegated\ninode but before break_deleg_wait() finishes. The extra inode reference\nheld in struct delegated_inode does not keep the superblock active.\n\nAfter a lazy unmount, closing the delegation holder can release the last\nmount reference and shut down the superblock while another task waits for\nthe delegation break. The waiter\u0027s final iput() can then enter the\nfilesystem\u0027s eviction code after its superblock-private state was freed.\nThis has been observed as a KASAN use-after-free in shmem_evict_inode().\n\nWhen try_break_deleg() saves a delegated inode, take an active reference\nto its superblock while the caller still pins the mount. Keep that\nreference through break_deleg_wait() and the final iput(), then release\nit with deactivate_super(). This protects every caller of the helpers,\nincluding the mknod, mkdir, symlink and rmdir paths that drop their path\nbefore waiting.\n\nFixes: e12d203b8c88 (\"vfs: allow mkdir to wait for delegation break on parent\")\nFixes: 4fa76319cd0c (\"vfs: allow rmdir to wait for delegation break on parent\")\nFixes: c826229c6a82 (\"vfs: make vfs_create break delegations on parent directory\")\nFixes: e8960c1b2ee9 (\"vfs: make vfs_mknod break delegations on parent directory\")\nFixes: 92bf53577f01 (\"vfs: make vfs_symlink break delegations on parent dir\")\nLink: https://lore.kernel.org/r/20261016093421.90725-1-zhaogongyi@bytedance.com\nCc: stable@vger.kernel.org\nSigned-off-by: Zhao Gongyi \u003czhaogongyi@bytedance.com\u003e\nLink: https://patch.msgid.link/20261023111250.17696-1-zhaogongyi@bytedance.com\nReviewed-by: Jeff Layton \u003cjlayton@kernel.org\u003e\nReviewed-by: Jan Kara \u003cjack@suse.cz\u003e\nSigned-off-by: Christian Brauner (Amutable) \u003cbrauner@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ec11cc6b4c58ad7d7887cddfb98ffd5bc99c06cf",
      "old_mode": 33188,
      "old_path": "include/linux/filelock.h",
      "new_id": "e909db319067f56688d968e8fc7d1b6d99b4d2d7",
      "new_mode": 33188,
      "new_path": "include/linux/filelock.h"
    }
  ]
}
