)]}'
{
  "commit": "76cdcdd979ce00f5037804d73da583fb488ec1b2",
  "tree": "c0959aaea64748a44f99e1e9ffef6b8eee179c53",
  "parents": [
    "0bc4b0cf15708fca04095232c4e448634e94d029"
  ],
  "author": {
    "name": "Frederic Weisbecker",
    "email": "fweisbec@gmail.com",
    "time": "Fri Jun 28 00:06:43 2013 +0000"
  },
  "committer": {
    "name": "Frederic Weisbecker",
    "email": "fweisbec@gmail.com",
    "time": "Wed Jul 03 16:20:20 2013 +0200"
  },
  "message": "posix-timers: correctly get dying task time sample in posix_cpu_timer_schedule()\n\nIn order to re-arm a timer after it fired, we take a sample of the current\nprocess or thread cputime.\n\nIf the task is dying though, we don\u0027t arm anything but we cache the\nremaining timer expiration delta for further reads.\n\nSomething similar is performed in posix_cpu_timer_get() but here we forget\nto take the process wide cputime sample before caching it.\n\nAs a result we are storing random stack content, leading every further\nreads of that timer to return junk values.\n\nFix this by taking the appropriate sample in the case of process wide\ntimers.\n\nThis probably doesn\u0027t matter much in practice because, at this stage, the\nthread is the last one in the group and we reached exit_notify().  This\nimplies that we called exit_itimers() and there should be no more timers\nto handle for that task.\n\nSo this is likely dead code anyway but let\u0027s fix the current logic\nand the warning that came along:\n\n    kernel/posix-cpu-timers.c: In function \u0027posix_cpu_timer_schedule\u0027:\n    kernel/posix-cpu-timers.c:1127: warning: \u0027now\u0027 may be used uninitialized in this function\n\nThen we can start to think further about cleaning up that code.\n\nReported-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nReported-by: Chen Gang \u003cgang.chen@asianux.com\u003e\nSigned-off-by: Frederic Weisbecker \u003cfweisbec@gmail.com\u003e\nCc: Stanislaw Gruszka \u003csgruszka@redhat.com\u003e\nCc: Thomas Gleixner \u003ctglx@linutronix.de\u003e\nCc: Peter Zijlstra \u003ca.p.zijlstra@chello.nl\u003e\nCc: Ingo Molnar \u003cmingo@elte.hu\u003e\nCc: Oleg Nesterov \u003coleg@redhat.com\u003e\nCc: Chen Gang \u003cgang.chen@asianux.com\u003e\nCc: KOSAKI Motohiro \u003ckosaki.motohiro@gmail.com\u003e\nCc: Olivier Langlois \u003colivier@trillion01.com\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "92a4fbf44f86960477ab9835ed68cde568a87c06",
      "old_mode": 33188,
      "old_path": "kernel/posix-cpu-timers.c",
      "new_id": "4ebd8ad07c6622d610ea159224d8ae26911055cc",
      "new_mode": 33188,
      "new_path": "kernel/posix-cpu-timers.c"
    }
  ]
}
