)]}'
{
  "commit": "07cd12945551b63ecb1a349d50a6d69d1d6feb4a",
  "tree": "75f65eba7eac9277971082a2d5a4cf1370562c0c",
  "parents": [
    "7ce7d89f48834cefece7804d38fc5d85382edf77"
  ],
  "author": {
    "name": "Tejun Heo",
    "email": "tj@kernel.org",
    "time": "Thu Jan 26 16:47:28 2017 -0500"
  },
  "committer": {
    "name": "Tejun Heo",
    "email": "tj@kernel.org",
    "time": "Thu Jan 26 16:47:28 2017 -0500"
  },
  "message": "cgroup: don\u0027t online subsystems before cgroup_name/path() are operational\n\nWhile refactoring cgroup creation, a5bca2152036 (\"cgroup: factor out\ncgroup_create() out of cgroup_mkdir()\") incorrectly onlined subsystems\nbefore the new cgroup is associated with it kernfs_node.  This is fine\nfor cgroup proper but cgroup_name/path() depend on the associated\nkernfs_node and if a subsystem makes the new cgroup_subsys_state\nvisible, which they\u0027re allowed to after onlining, it can lead to NULL\ndereference.\n\nThe current code performs cgroup creation and subsystem onlining in\ncgroup_create() and cgroup_mkdir() makes the cgroup and subsystems\nvisible afterwards.  There\u0027s no reason to online the subsystems early\nand we can simply drop cgroup_apply_control_enable() call from\ncgroup_create() so that the subsystems are onlined and made visible at\nthe same time.\n\nSigned-off-by: Tejun Heo \u003ctj@kernel.org\u003e\nReported-by: Konstantin Khlebnikov \u003ckhlebnikov@yandex-team.ru\u003e\nFixes: a5bca2152036 (\"cgroup: factor out cgroup_create() out of cgroup_mkdir()\") \nCc: stable@vger.kernel.org # v4.6+\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2ee9ec3051b20774b118a57e4609f30e87bf82be",
      "old_mode": 33188,
      "old_path": "kernel/cgroup.c",
      "new_id": "688dd02af9857e6fe739e0b4258060820acb41e3",
      "new_mode": 33188,
      "new_path": "kernel/cgroup.c"
    }
  ]
}
