)]}'
{
  "commit": "bba9e08d189e46ff8518b0dced54500ea63d2c15",
  "tree": "2bb66090d31c9b0709aa34323f6ac062cba8b2fa",
  "parents": [
    "b11dfb7708f212b96c7973a474014c071aa02e05"
  ],
  "author": {
    "name": "Dan Williams",
    "email": "dan.j.williams@intel.com",
    "time": "Thu Nov 06 15:13:50 2025 -0800"
  },
  "committer": {
    "name": "Greg Kroah-Hartman",
    "email": "gregkh@linuxfoundation.org",
    "time": "Fri Jan 23 11:18:44 2026 +0100"
  },
  "message": "x86/kaslr: Recognize all ZONE_DEVICE users as physaddr consumers\n\ncommit 269031b15c1433ff39e30fa7ea3ab8f0be9d6ae2 upstream.\n\nCommit 7ffb791423c7 (\"x86/kaslr: Reduce KASLR entropy on most x86 systems\")\nis too narrow. The effect being mitigated in that commit is caused by\nZONE_DEVICE which PCI_P2PDMA has a dependency. ZONE_DEVICE, in general,\nlets any physical address be added to the direct-map. I.e. not only ACPI\nhotplug ranges, CXL Memory Windows, or EFI Specific Purpose Memory, but\nalso any PCI MMIO range for the DEVICE_PRIVATE and PCI_P2PDMA cases. Update\nthe mitigation, limit KASLR entropy, to apply in all ZONE_DEVICE\u003dy cases.\n\nDistro kernels typically have PCI_P2PDMA\u003dy, so the practical exposure of\nthis problem is limited to the PCI_P2PDMA\u003dn case.\n\nA potential path to recover entropy would be to walk ACPI and determine the\nlimits for hotplug and PCI MMIO before kernel_randomize_memory(). On\nsmaller systems that could yield some KASLR address bits. This needs\nadditional investigation to determine if some limited ACPI table scanning\ncan happen this early without an open coded solution like\narch/x86/boot/compressed/acpi.c needs to deploy.\n\nCc: Ingo Molnar \u003cmingo@kernel.org\u003e\nCc: Kees Cook \u003ckees@kernel.org\u003e\nCc: Bjorn Helgaas \u003cbhelgaas@google.com\u003e\nCc: Peter Zijlstra \u003cpeterz@infradead.org\u003e\nCc: Andy Lutomirski \u003cluto@kernel.org\u003e\nCc: Logan Gunthorpe \u003clogang@deltatee.com\u003e\nCc: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nCc: David Hildenbrand \u003cdavid@redhat.com\u003e\nCc: Lorenzo Stoakes \u003clorenzo.stoakes@oracle.com\u003e\nCc: \"Liam R. Howlett\" \u003cLiam.Howlett@oracle.com\u003e\nCc: Vlastimil Babka \u003cvbabka@suse.cz\u003e\nCc: Mike Rapoport \u003crppt@kernel.org\u003e\nCc: Suren Baghdasaryan \u003csurenb@google.com\u003e\nCc: Michal Hocko \u003cmhocko@suse.com\u003e\nFixes: 7ffb791423c7 (\"x86/kaslr: Reduce KASLR entropy on most x86 systems\")\nCc: \u003cstable@vger.kernel.org\u003e\nSigned-off-by: Dan Williams \u003cdan.j.williams@intel.com\u003e\nReviewed-by: Balbir Singh \u003cbalbirs@nvidia.com\u003e\nTested-by: Yasunori Goto \u003cy-goto@fujitsu.com\u003e\nAcked-by: Dave Hansen \u003cdave.hansen@linux.intel.com\u003e\nLink: http://patch.msgid.link/692e08b2516d4_261c1100a3@dwillia2-mobl4.notmuch\nSigned-off-by: Dave Jiang \u003cdave.jiang@intel.com\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@linuxfoundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e0b0ec0f8245743a18b43f610c001a097837f355",
      "old_mode": 33188,
      "old_path": "arch/x86/mm/kaslr.c",
      "new_id": "7e3dc0cead96b0145a91a506e19be66dff246a5a",
      "new_mode": 33188,
      "new_path": "arch/x86/mm/kaslr.c"
    },
    {
      "type": "modify",
      "old_id": "7cef00d9d7ab6a805548bbfa15e801eaeefecc21",
      "old_mode": 33188,
      "old_path": "drivers/pci/Kconfig",
      "new_id": "0d94e4a967d81d50b9a3f3aebda56d37b36fc271",
      "new_mode": 33188,
      "new_path": "drivers/pci/Kconfig"
    },
    {
      "type": "modify",
      "old_id": "59c36bb9ce6b0b42435fe72187dbe286bb57a6c8",
      "old_mode": 33188,
      "old_path": "mm/Kconfig",
      "new_id": "763a9105ee18873bd728579a5571ef9521f5cdfb",
      "new_mode": 33188,
      "new_path": "mm/Kconfig"
    }
  ]
}
