)]}'
{
  "commit": "edd8e41d2e3cbd6ebe13ead30eb1adc6f48cbb33",
  "tree": "3a7dca8c3058d0513b20657e4f1eb30506876f5f",
  "parents": [
    "2800486ee34825d954f64c6f98037daea328f121"
  ],
  "author": {
    "name": "Peter Zijlstra",
    "email": "peterz@infradead.org",
    "time": "Thu Sep 07 17:03:51 2017 +0200"
  },
  "committer": {
    "name": "Ingo Molnar",
    "email": "mingo@kernel.org",
    "time": "Tue Sep 12 17:41:04 2017 +0200"
  },
  "message": "sched/fair: Plug hole between hotplug and active_load_balance()\n\nThe load balancer applies cpu_active_mask to whatever sched_domains it\nfinds, however in the case of active_balance there is a hole between\nsetting rq-\u003e{active_balance,push_cpu} and running the stop_machine\nwork doing the actual migration.\n\nThe @push_cpu can go offline in this window, which would result in us\nmoving a task onto a dead cpu, which is a fairly bad thing.\n\nDouble check the active mask before the stop work does the migration.\n\n  CPU0\t\t\t\t\tCPU1\n\n  \u003cSoftIRQ\u003e\n\t\t\t\t\tstop_machine(takedown_cpu)\n    load_balance()\t\t\tcpu_stopper_thread()\n      ...\t\t\t\t  work \u003d multi_cpu_stop\n      stop_one_cpu_nowait(\t\t    /* wait for CPU0 */\n\t.func \u003d active_load_balance_cpu_stop\n      );\n  \u003c/SoftIRQ\u003e\n\n  cpu_stopper_thread()\n    work \u003d multi_cpu_stop\n      /* sync with CPU1 */\n\t\t\t\t\t    take_cpu_down()\n\t\t\t\t\t\u003cidle\u003e\n\t\t\t\t\t  play_dead();\n\n    work \u003d active_load_balance_cpu_stop\n      set_task_cpu(p, CPU1); /* oops!! */\n\nReported-by: Thomas Gleixner \u003ctglx@linutronix.de\u003e\nSigned-off-by: Peter Zijlstra (Intel) \u003cpeterz@infradead.org\u003e\nCc: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\nCc: Peter Zijlstra \u003cpeterz@infradead.org\u003e\nLink: http://lkml.kernel.org/r/20170907150614.044460912@infradead.org\nSigned-off-by: Ingo Molnar \u003cmingo@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3bcea40d3029627f06831924c5873843fc2e2362",
      "old_mode": 33188,
      "old_path": "kernel/sched/fair.c",
      "new_id": "efeebed935ae58588e84b70d40ece50c9ec1b010",
      "new_mode": 33188,
      "new_path": "kernel/sched/fair.c"
    }
  ]
}
