)]}'
{
  "commit": "913050b91eb94f194392dd797b1ff3779f606ac0",
  "tree": "bcb861e17dc40875ef0f694641392b7177f04852",
  "parents": [
    "497f16f21a04060098c0da6ed522fbcafb90c0db"
  ],
  "author": {
    "name": "Robert Richter",
    "email": "robert.richter@amd.com",
    "time": "Mon Dec 19 16:38:30 2011 +0100"
  },
  "committer": {
    "name": "Ingo Molnar",
    "email": "mingo@elte.hu",
    "time": "Mon Dec 19 17:18:43 2011 +0100"
  },
  "message": "oprofile: Fix uninitialized memory access when writing to writing to oprofilefs\n\nIf oprofilefs_ulong_from_user() is called with count equals\nzero, *val remains unchanged. Depending on the implementation it\nmight be uninitialized.\n\nChange oprofilefs_ulong_from_user()\u0027s interface to return count\non success. Thus, we are able to return early if count equals\nzero which avoids using *val uninitialized. Fixing all users of\noprofilefs_ulong_ from_user().\n\nThis follows write syscall implementation when count is zero:\n\"If count is zero ... [and if] no errors are detected, 0 will be\nreturned without causing any other effect.\" (man 2 write)\n\nReported-By: Mike Waychison \u003cmikew@google.com\u003e\nSigned-off-by: Robert Richter \u003crobert.richter@amd.com\u003e\nCc: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nCc: \u003cstable@vger.kernel.org\u003e\nCc: oprofile-list \u003coprofile-list@lists.sourceforge.net\u003e\nLink: http://lkml.kernel.org/r/20111219153830.GH16765@erda.amd.com\nSigned-off-by: Ingo Molnar \u003cmingo@elte.hu\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6efc18b5e60af4e3ce202edb5e381fe2ab45c03e",
      "old_mode": 33188,
      "old_path": "arch/s390/oprofile/init.c",
      "new_id": "bd58b72454cf52c62b76bc049547931c74e020e6",
      "new_mode": 33188,
      "new_path": "arch/s390/oprofile/init.c"
    },
    {
      "type": "modify",
      "old_id": "89f63456646fa4c67b6ee74f7c657917be05a425",
      "old_mode": 33188,
      "old_path": "drivers/oprofile/oprofile_files.c",
      "new_id": "84a208dbed939afa20743804d8e4d75ca5ff741a",
      "new_mode": 33188,
      "new_path": "drivers/oprofile/oprofile_files.c"
    },
    {
      "type": "modify",
      "old_id": "d0de6cc2d7a5e56e36d2dfa8b2cc8b6ad17074f5",
      "old_mode": 33188,
      "old_path": "drivers/oprofile/oprofilefs.c",
      "new_id": "2f0aa0f700e63985a0abbe29573b3816e1ef1e47",
      "new_mode": 33188,
      "new_path": "drivers/oprofile/oprofilefs.c"
    }
  ]
}
