)]}'
{
  "commit": "e55e3beb430afda0e871fbacbc825fd78ca377e6",
  "tree": "ce50ddc9d9039480cee26a5818f499a231c2202c",
  "parents": [
    "ae04b095acd37df09d1ec6ef3523ff608eccbd7e"
  ],
  "author": {
    "name": "Alex Williamson",
    "email": "alex.williamson@nvidia.com",
    "time": "Mon Jun 15 13:12:29 2026 -0600"
  },
  "committer": {
    "name": "Angel Adetula",
    "email": "angeladetula@google.com",
    "time": "Thu Aug 06 09:49:32 2026 -0700"
  },
  "message": "vfio/pci: Latch disable_idle_d3 per device\n\ncommit 4575e9aac5336d1365138c0284773bf8da4b1fa3 upstream.\n\nWhen disable_idle_d3 was introduced in vfio-pci, it directly manipulated\nthe device power state with pci_set_power_state(). There were no\nrefcounts to maintain or balanced operations, we could unconditionally\nbring the device to D0 and conditionally move it to D3hot. Therefore\nthe module parameter was made writable.\n\nLater, in commit c61302aa48f7 (\"vfio/pci: Move module parameters to\nvfio_pci.c\"), as part of the vfio-pci-core split, the writable aspect\nof the module parameter was nullified. The parameter value could still\nbe changed through sysfs, but the vfio-pci driver latched the values\ninto vfio-pci-core globals at module init. Loading the vfio-pci module,\nor unloading and reloading, with non-default or different values could\nchange the globals relative to existing devices bound to vfio-pci\nvariant drivers.\n\nRuntime PM was introduced in commit 7ab5e10eda02 (\"vfio/pci: Move the\nunused device into low power state with runtime PM\"), which marks the\npoint where power states became refcounted. PM get and put operations\nneed to be balanced, but the same module operations noted above can\nchange the global variables relative to those devices already bound to\nvfio-pci variant drivers. This introduces a window where PM operations\ncan now become unbalanced.\n\nTo resolve this with a narrow footprint for stable backports, the\ndisable_idle_d3 flag is latched into the vfio_pci_core_device at the\ntime of initialization, such that the device always operates with a\nconsistent value.\n\nNB. vfio_pci_dev_set_try_reset() now unconditionally raises the\nruntime PM usage count around bus reset to account for disable_idle_d3\nbecoming a per-device rather than global flag. When this flag is set,\nthe additional get/put pair is harmless and allows continued use of the\nshared vfio_pci_dev_set_pm_runtime_get() helper.\n\nBUG\u003db/539152410\nTEST\u003dpresubmit\nRELEASE_NOTE\u003dFixed CVE-2026-64476 in the Linux kernel.\n\nFixes: 7ab5e10eda02 (\"vfio/pci: Move the unused device into low power state with runtime PM\")\nCc: stable@vger.kernel.org\nAssisted-by: Claude:claude-opus-4-8\nChange-Id: I1a5a11c7bf61707c549fbd495f8b77731b5a8214\nSigned-off-by: Alex Williamson \u003calex.williamson@nvidia.com\u003e\nReviewed-by: Kevin Tian \u003ckevin.tian@intel.com\u003e\nLink: https://lore.kernel.org/r/20260615191241.688297-2-alex.williamson@nvidia.com\nSigned-off-by: Alex Williamson \u003calex@shazbot.org\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@linuxfoundation.org\u003e\n(cherry picked from commit b98296816d31441b307ef9fa8670dcf5a55e5505)\nSigned-off-by: Angel Adetula \u003cangeladetula@google.com\u003e\nReviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/180208\nTested-by: Cusky Presubmit Bot \u003cpresubmit@cos-infra-prod.iam.gserviceaccount.com\u003e\nReviewed-by: Kevin Liu \u003czhihuil@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "476dbd912fb7fa0bd345217caba4086686a23fc4",
      "old_mode": 33188,
      "old_path": "drivers/vfio/pci/vfio_pci_core.c",
      "new_id": "e76e33e7d24b351d28533a31f55601a0cfede61e",
      "new_mode": 33188,
      "new_path": "drivers/vfio/pci/vfio_pci_core.c"
    },
    {
      "type": "modify",
      "old_id": "251141282dff7b22b4f975d20303b4a1e275955e",
      "old_mode": 33188,
      "old_path": "include/linux/vfio_pci_core.h",
      "new_id": "8d2c956a7546cf17e901726e52843b494fc33041",
      "new_mode": 33188,
      "new_path": "include/linux/vfio_pci_core.h"
    }
  ]
}
