)]}'
{
  "commit": "65450cebc6a2efde80ed45514f727e6e4dc1eafd",
  "tree": "26d3cdb75b4e94eed773c71c4bcb3c5d5843eed3",
  "parents": [
    "5cd204550b1a006f2b0c986b0e0f53220ebfd391"
  ],
  "author": {
    "name": "Oleg Nesterov",
    "email": "oleg@tv-sign.ru",
    "time": "Wed Apr 30 00:54:25 2008 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Wed Apr 30 08:29:48 2008 -0700"
  },
  "message": "pids: de_thread: don\u0027t clear session/pgrp pids for the old leader\n\nBased on Eric W. Biederman\u0027s idea.\n\nUnless task \u003d\u003d current, without tasklist_lock held task_session()/task_pgrp()\ncan return NULL if the caller races with de_thread() which switches the group\nleader.\n\nChange transfer_pid() to not clear old-\u003epids[type].pid for the old leader.\nThis means that its .pid can point to \"nowhere\", but this is already true for\nsub-threads, and the old leader is not group_leader() any longer.  IOW, with\nor without this change we can\u0027t trust task\u0027s special pids unless it is the\ngroup leader.\n\nWith this change the following code\n\n\trcu_read_lock();\n\ttask \u003d find_task_by_xxx();\n\tdo_something(task_pgrp(task), task_session(task));\n\trcu_read_unlock();\n\ncan\u0027t race with exec and hit the NULL pid.\n\nSigned-off-by: Oleg Nesterov \u003coleg@tv-sign.ru\u003e\nCc:  \"Eric W. Biederman\" \u003cebiederm@xmission.com\u003e\nCc: Pavel Emelyanov \u003cxemul@openvz.org\u003e\nCc: Roland McGrath \u003croland@redhat.com\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a9ae9f7fb229fd5b34d6d963d080f5c047714708",
      "old_mode": 33188,
      "old_path": "kernel/pid.c",
      "new_id": "e9a31d362b2805f30cc4cb5ef67a6fe0ec14ee3d",
      "new_mode": 33188,
      "new_path": "kernel/pid.c"
    }
  ]
}
