)]}'
{
  "commit": "a77f2a4e6f03f0fe0aedb5b13b31be8f9d66d10d",
  "tree": "f43c58e0176197c1deb532d525f3402c5307e818",
  "parents": [
    "7fba2c27a3e0cf7fa411fbab4839e1807a3e0734"
  ],
  "author": {
    "name": "Tejun Heo",
    "email": "tj@kernel.org",
    "time": "Tue Apr 30 15:27:09 2013 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Tue Apr 30 17:04:01 2013 -0700"
  },
  "message": "x86: don\u0027t show trace beyond show_stack(NULL, NULL)\n\nThere are multiple ways a task can be dumped - explicit call to\ndump_stack(), triggering WARN() or BUG(), through sysrq-t and so on.\nMost of what gets printed is upto each architecture and the current\nstate is not particularly pretty.  Different pieces of information are\npresented differently depending on which path the dump takes and which\narchitecture it\u0027s running on.  This is messy for no good reason and\nmakes it exceedingly difficult to add or modify debug information to\ntask dumps.\n\nIn all archs except for s390, there\u0027s nothing arch-specific about the\nprinted debug information.  This patchset updates all those archs to use\nthe same helpers to consistently print out the same debug information.\n\nAn example WARN dump after this patchset.\n\n WARNING: at kernel/workqueue.c:4841 init_workqueues+0x35/0x505()\n Modules linked in:\n CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.9.0-rc1-work+ #3\n Hardware name: empty empty/S3992, BIOS 080011  10/26/2007\n  0000000000000009 ffff88007c861e08 ffffffff81c614dc ffff88007c861e48\n  ffffffff8108f500 ffffffff82228240 0000000000000040 ffffffff8234a08e\n  0000000000000000 0000000000000000 0000000000000000 ffff88007c861e58\n Call Trace:\n  [\u003cffffffff81c614dc\u003e] dump_stack+0x19/0x1b\n  [\u003cffffffff8108f500\u003e] warn_slowpath_common+0x70/0xa0\n  [\u003cffffffff8108f54a\u003e] warn_slowpath_null+0x1a/0x20\n  [\u003cffffffff8234a0c3\u003e] init_workqueues+0x35/0x505\n  ...\n\nAnd BUG dump.\n\n kernel BUG at kernel/workqueue.c:4841!\n invalid opcode: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC\n Modules linked in:\n CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.9.0-rc1-work+ #7\n Hardware name: empty empty/S3992, BIOS 080011  10/26/2007\n task: ffff88007c85e040 ti: ffff88007c860000 task.ti: ffff88007c860000\n RIP: 0010:[\u003cffffffff8234a07e\u003e]  [\u003cffffffff8234a07e\u003e] init_workqueues+0x4/0x6\n RSP: 0000:ffff88007c861ec8  EFLAGS: 00010246\n RAX: ffff88007c861fd8 RBX: ffffffff824466a8 RCX: 0000000000000001\n RDX: 0000000000000046 RSI: 0000000000000001 RDI: ffffffff8234a07a\n RBP: ffff88007c861ec8 R08: 0000000000000000 R09: 0000000000000000\n R10: 0000000000000001 R11: 0000000000000000 R12: ffffffff8234a07a\n R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000\n FS:  0000000000000000(0000) GS:ffff88007dc00000(0000) knlGS:0000000000000000\n CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b\n CR2: ffff88015f7ff000 CR3: 00000000021f1000 CR4: 00000000000007f0\n DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000\n DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400\n Stack:\n  ffff88007c861ef8 ffffffff81000312 ffffffff824466a8 ffff88007c85e650\n  0000000000000003 0000000000000000 ffff88007c861f38 ffffffff82335e5d\n  ffff88007c862080 ffffffff8223d8c0 ffff88007c862080 ffffffff81c47760\n Call Trace:\n  [\u003cffffffff81000312\u003e] do_one_initcall+0x122/0x170\n  [\u003cffffffff82335e5d\u003e] kernel_init_freeable+0x9b/0x1c8\n  [\u003cffffffff81c47760\u003e] ? rest_init+0x140/0x140\n  [\u003cffffffff81c4776e\u003e] kernel_init+0xe/0xf0\n  [\u003cffffffff81c6be9c\u003e] ret_from_fork+0x7c/0xb0\n  [\u003cffffffff81c47760\u003e] ? rest_init+0x140/0x140\n  ...\n\nThis patchset contains the following seven patches.\n\n 0001-x86-don-t-show-trace-beyond-show_stack-NULL-NULL.patch\n 0002-sparc32-make-show_stack-acquire-fp-if-_ksp-is-not-sp.patch\n 0003-dump_stack-consolidate-dump_stack-implementations-an.patch\n 0004-dmi-morph-dmi_dump_ids-into-dmi_format_ids-which-for.patch\n 0005-dump_stack-implement-arch-specific-hardware-descript.patch\n 0006-dump_stack-unify-debug-information-printed-by-show_r.patch\n 0007-arc-print-fatal-signals-reduce-duplicated-informatio.patch\n\n0001-0002 update stack dumping functions in x86 and sparc32 in\npreparation.\n\n0003 makes all arches except blackfin use generic dump_stack().\nblackfin still uses the generic helper to print the same info.\n\n0004-0005 properly abstract DMI identifier printing in WARN() and\nshow_regs() so that all dumps print out the information.  This enables\nshow_regs() to use the same debug info message.\n\n0006 updates show_regs() of all arches to use a common generic helper\nto print debug info.\n\n0007 removes somem duplicate information from arc dumps.\n\nWhile this patchset changes how debug info is printed on some archs,\nthe printed information is always superset of what used to be there.\n\nThis patchset makes task dump debug messages consistent and enables\nadding more information.  Workqueue is scheduled to add worker\ninformation including the workqueue in use and work item specific\ndescription.\n\nWhile this patch touches a lot of archs, it isn\u0027t too likely to cause\nnon-trivial conflicts with arch-specfic changes and would probably be\nbest to route together either through -mm.\n\nx86 is tested but other archs are either only compile tested or not\ntested at all.  Changes to most archs are generally trivial.\n\nThis patch:\n\nshow_stack(current or NULL, NULL) is used to print the backtrace of the\ncurrent task.  As trace beyond the function itself isn\u0027t of much\ninterest to anyone, don\u0027t show it by determining sp and bp in\nshow_stack()\u0027s frame and passing them to show_stack_log_lvl().\n\nThis brings show_stack(NULL, NULL)\u0027s behavior in line with\ndump_stack().\n\nSigned-off-by: Tejun Heo \u003ctj@kernel.org\u003e\nCc: Bjorn Helgaas \u003cbhelgaas@google.com\u003e\nCc: David S. Miller \u003cdavem@davemloft.net\u003e\nCc: Fengguang Wu \u003cfengguang.wu@intel.com\u003e\nCc: Heiko Carstens \u003cheiko.carstens@de.ibm.com\u003e\nCc: Jesper Nilsson \u003cjesper.nilsson@axis.com\u003e\nCc: Martin Schwidefsky \u003cschwidefsky@de.ibm.com\u003e\nCc: Mike Frysinger \u003cvapier@gentoo.org\u003e\nCc: Vineet Gupta \u003cvgupta@synopsys.com\u003e\nCc: Sam Ravnborg \u003csam@ravnborg.org\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": "c8797d55b24546eb7b3ea4abaeffe89d826d7655",
      "old_mode": 33188,
      "old_path": "arch/x86/kernel/dumpstack.c",
      "new_id": "dd1a7c391c90e5246d6b1aa2c01f8ed65da6239f",
      "new_mode": 33188,
      "new_path": "arch/x86/kernel/dumpstack.c"
    }
  ]
}
