)]}'
{
  "commit": "87df26175e67c26ccdd3a002fbbb8cde78e28a19",
  "tree": "3911c372b93712e2d8951f1e784693a67af4e237",
  "parents": [
    "d6a2cf07f0c91e339d2c53f1e1ca6e731af2e72a"
  ],
  "author": {
    "name": "Jiri Kosina",
    "email": "jkosina@suse.cz",
    "time": "Wed Nov 08 21:18:18 2017 +0100"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Wed Nov 08 13:52:36 2017 -0800"
  },
  "message": "x86/mm: Unbreak modules that rely on external PAGE_KERNEL availability\n\nCommit 7744ccdbc16f0 (\"x86/mm: Add Secure Memory Encryption (SME)\nsupport\") as a side-effect made PAGE_KERNEL all of a sudden unavailable\nto modules which can\u0027t make use of EXPORT_SYMBOL_GPL() symbols.\n\nThis is because once SME is enabled, sme_me_mask (which is introduced as\nEXPORT_SYMBOL_GPL) makes its way to PAGE_KERNEL through _PAGE_ENC,\ncausing imminent build failure for all the modules which make use of all\nthe EXPORT-SYMBOL()-exported API (such as vmap(), __vmalloc(),\nremap_pfn_range(), ...).\n\nExporting (as EXPORT_SYMBOL()) interfaces (and having done so for ages)\nthat take pgprot_t argument, while making it impossible to -- all of a\nsudden -- pass PAGE_KERNEL to it, feels rather incosistent.\n\nRestore the original behavior and make it possible to pass PAGE_KERNEL\nto all its EXPORT_SYMBOL() consumers.\n\n[ This is all so not wonderful. We shouldn\u0027t need that \"sme_me_mask\"\n  access at all in all those places that really don\u0027t care about that\n  level of detail, and just want _PAGE_KERNEL or whatever.\n\n  We have some similar issues with _PAGE_CACHE_WP and _PAGE_NOCACHE,\n  both of which hide a \"cachemode2protval()\" call, and which also ends\n  up using another EXPORT_SYMBOL(), but at least that only triggers for\n  the much more rare cases.\n\n  Maybe we could move these dynamic page table bits to be generated much\n  deeper down in the VM layer, instead of hiding them in the macros that\n  everybody uses.\n\n  So this all would merit some cleanup. But not today.   - Linus ]\n\nCc: Tom Lendacky \u003cthomas.lendacky@amd.com\u003e\nSigned-off-by: Jiri Kosina \u003cjkosina@suse.cz\u003e\nDespised-by: Thomas Gleixner \u003ctglx@linutronix.de\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "16c5f37933a2ae2d120402f1871af93872aebb07",
      "old_mode": 33188,
      "old_path": "arch/x86/mm/mem_encrypt.c",
      "new_id": "0286327e65fa273733b1561b93ffb296341f09dd",
      "new_mode": 33188,
      "new_path": "arch/x86/mm/mem_encrypt.c"
    }
  ]
}
