)]}'
{
  "commit": "24336eaeecea860b2a82530e07c80bc7e0558b73",
  "tree": "12a34660f732e12ba18262083c1a2eea5a824f6a",
  "parents": [
    "65450cebc6a2efde80ed45514f727e6e4dc1eafd"
  ],
  "author": {
    "name": "Oleg Nesterov",
    "email": "oleg@tv-sign.ru",
    "time": "Wed Apr 30 00:54:26 2008 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Wed Apr 30 08:29:48 2008 -0700"
  },
  "message": "pids: introduce change_pid() helper\n\nBased on Eric W. Biederman\u0027s idea.\n\nWithout tasklist_lock held task_session()/task_pgrp() can return NULL if the\ncaller races with setprgp()/setsid() which does detach_pid() + attach_pid().\nThis can happen even if task \u003d\u003d current.\n\nIntoduce the new helper, change_pid(), which should be used instead.  This way\nthe caller always sees the special pid !\u003d NULL, either old or new.\n\nAlso change the prototype of attach_pid(), it always returns 0 and nobody\ncheck the returned value.\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": "c7980810eb09d96becad505f2f9349e9a9a56685",
      "old_mode": 33188,
      "old_path": "include/linux/pid.h",
      "new_id": "8d199033c0ca01feff307223ec7dd570fea1bcc7",
      "new_mode": 33188,
      "new_path": "include/linux/pid.h"
    },
    {
      "type": "modify",
      "old_id": "e9a31d362b2805f30cc4cb5ef67a6fe0ec14ee3d",
      "old_mode": 33188,
      "old_path": "kernel/pid.c",
      "new_id": "20d59fa2d493c7a20b83ff151745e38a847e0366",
      "new_mode": 33188,
      "new_path": "kernel/pid.c"
    }
  ]
}
