)]}'
{
  "commit": "f3a6dae67c9ca3d913cbb42fe324c9b47c8d9e53",
  "tree": "46cb148a601d9a0f26c64790d194137a6b93b8d9",
  "parents": [
    "38bf603d1ea5d5a65a9cb277df75327ffec01ff1"
  ],
  "author": {
    "name": "Nickolai Zeldovich",
    "email": "nickolai@csail.mit.edu",
    "time": "Mon Oct 26 21:58:13 2026 -0400"
  },
  "committer": {
    "name": "Christian Brauner",
    "email": "brauner@kernel.org",
    "time": "Fri Oct 30 16:03:49 2026 +0100"
  },
  "message": "fs_pin: do not trust the pin after a spurious wakeup in pin_kill()\n\nA task waiting in pin_kill() for another task\u0027s -\u003ekill() can take\np-\u003ewait.lock after the pin has been freed, and can return with its\non-stack wait entry still on p-\u003ewait. With BSD process accounting this\nis a use-after-free of the acct structure when umount() of the mount\nholding the accounting file races with acct(2).\n\npin_kill() takes a still-queued entry as proof that pin_remove() has not\nrun, so p is alive. But autoremove_wake_function() dequeues only when\ntry_to_wake_up() succeeds: if the waiter was already woken spuriously,\npin_remove() leaves the entry queued, acct_pin_kill() frees the acct\nwith kfree_rcu(), and the grace period can end while the waiter sits\nbetween schedule() and rcu_read_lock().\n\nDequeue the entry unconditionally in a private wake function;\npin_remove() is the only waker and sets p-\u003edone first.\n\nReproduced under QEMU with KASAN and test-only delays: a\nslab-use-after-free in pin_kill() before the patch, no report after.\n\nFixes: 59eda0e07f43 (\"new fs_pin killing logics\")\nSigned-off-by: Nickolai Zeldovich \u003cnickolai@csail.mit.edu\u003e\nLink: https://patch.msgid.link/20261027015813.841821-1-nickolai@csail.mit.edu\nSigned-off-by: Christian Brauner (Amutable) \u003cbrauner@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1a508f2167e0a3586e29601cb625ba1287a31c17",
      "old_mode": 33188,
      "old_path": "fs/fs_pin.c",
      "new_id": "a4e5a5a7aca8d708df6053b078a2978bd9648c8f",
      "new_mode": 33188,
      "new_path": "fs/fs_pin.c"
    }
  ]
}
