)]}'
{
  "commit": "bc2f70151fe7a117dbe8347edc5a877e749572a3",
  "tree": "930634f100acb38baa597f840b5b12bec750c66e",
  "parents": [
    "51e911e27690aecea01d4fe9cb22d38bdd0748ac"
  ],
  "author": {
    "name": "Masami Hiramatsu",
    "email": "mhiramat@redhat.com",
    "time": "Tue Jan 06 14:41:46 2009 -0800"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Tue Jan 06 15:59:20 2009 -0800"
  },
  "message": "kprobes: bugfix: try_module_get even if calling_mod is NULL\n\nWhen someone called register_*probe() from kernel-core code(not from\nmodule) and that probes a kernel module, users can remove the probed\nmodule because kprobe doesn\u0027t increment reference counter of the module.\n(on the other hand, if the kernel-module calls register_*probe, kprobe\nincrements refcount of the probed module.)\n\nCurrently, we have no register_*probe() calling from kernel-core(except\nsmoke-test, but the smoke-test doesn\u0027t probe module), so there is no real\nbugs.  But the logic is wrong(or not fair) and it can causes a problem\nwhen someone might want to probe module from kernel.\n\nAfter this patch is applied, even if someone put register_*probe() call in\nthe kernel-core code, it increments the reference counter of the probed\nmodule, and it prevents user to remove the module until stopping probing\nit.\n\nSigned-off-by: Masami Hiramatsu \u003cmhiramat@redhat.com\u003e\nCc: Lai Jiangshan \u003claijs@cn.fujitsu.com\u003e\nCc: Ananth N Mavinakayanahalli \u003cananth@in.ibm.com\u003e\nCc: Hiroshi Shimamoto \u003ch-shimamoto@ct.jp.nec.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": "9f8a3f25259a9da4c8535bab07014b07da79a643",
      "old_mode": 33188,
      "old_path": "kernel/kprobes.c",
      "new_id": "3afd354c46f1ebac4e6a86cf5912c763a03725d3",
      "new_mode": 33188,
      "new_path": "kernel/kprobes.c"
    }
  ]
}
