[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20140828040630.GA4252@localhost>
Date: Thu, 28 Aug 2014 12:06:30 +0800
From: Fengguang Wu <fengguang.wu@...el.com>
To: Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>
Cc: Ingo Molnar <mingo@...nel.org>, Jet Chen <jet.chen@...el.com>,
Su Tao <tao.su@...el.com>, Yuanhan Liu <yuanhan.liu@...el.com>,
LKP <lkp@...org>, linux-kernel@...r.kernel.org
Subject: WARNING: at kernel/trace/trace_kprobe.c:1393
kprobe_trace_self_tests_init()
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
commit 003002e04ed38618fc37b92ba128f5ca79d39f4f
Author: Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>
AuthorDate: Wed Jun 5 12:12:16 2013 +0900
Commit: Ingo Molnar <mingo@...nel.org>
CommitDate: Thu Jun 20 14:25:48 2013 +0200
kprobes: Fix arch_prepare_kprobe to handle copy insn failures
Fix arch_prepare_kprobe() to handle failures in copy instruction
correctly. This fix is related to the previous fix: 8101376
which made __copy_instruction return an error result if failed,
but caller site was not updated to handle it. Thus, this is the
other half of the bugfix.
This fix is also related to the following bug-report:
https://bugzilla.redhat.com/show_bug.cgi?id=910649
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>
Acked-by: Steven Rostedt <rostedt@...dmis.org>
Tested-by: Jonathan Lebon <jlebon@...hat.com>
Cc: Frank Ch. Eigler <fche@...hat.com>
Cc: systemtap@...rceware.org
Cc: yrl.pp-manager.tt@...achi.com
Link: http://lkml.kernel.org/r/20130605031216.15285.2001.stgit@mhiramat-M0-7522
Signed-off-by: Ingo Molnar <mingo@...nel.org>
+-------------------------------------------------------------------------------+------------+------------+---------------+
| | f1a527899e | 003002e04e | next-20140827 |
+-------------------------------------------------------------------------------+------------+------------+---------------+
| boot_successes | 60 | 0 | 0 |
| boot_failures | 0 | 20 | 11 |
| WARNING:at_kernel/trace/trace_kprobe.c:kprobe_trace_self_tests_init() | 0 | 20 | |
| backtrace:kprobe_trace_self_tests_init | 0 | 20 | 11 |
| backtrace:warn_slowpath_null | 0 | 20 | 11 |
| backtrace:kernel_init_freeable | 0 | 20 | 11 |
| WARNING:CPU:PID:at_kernel/trace/trace_kprobe.c:kprobe_trace_self_tests_init() | 0 | 0 | 11 |
+-------------------------------------------------------------------------------+------------+------------+---------------+
[ 26.534705] Testing kprobe tracing:
[ 26.537068] Could not insert probe at kprobe_trace_selftest_target+0: -22
[ 26.540483] ------------[ cut here ]------------
[ 26.541996] WARNING: at kernel/trace/trace_kprobe.c:1393 kprobe_trace_self_tests_init+0x6e/0x84d()
[ 26.545093] Modules linked in:
[ 26.546418] CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.0-rc3-00005-g003002e #9
[ 26.548765] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 26.550364] 0000000000000009 ffff880013479e68 ffffffff81f16c80 ffff880013479ea0
[ 26.552703] ffffffff810a97e8 ffffffff8322bb14 0000000000000007 0000000000000000
[ 26.555109] 0000000000000000 0000000000000000 ffff880013479eb0 ffffffff810a984a
[ 26.558146] Call Trace:
[ 26.559125] [<ffffffff81f16c80>] dump_stack+0x27/0x30
[ 26.560708] [<ffffffff810a97e8>] warn_slowpath_common+0xa8/0xe0
[ 26.562520] [<ffffffff8322bb14>] ? init_kprobe_trace+0xe8/0xe8
[ 26.564181] [<ffffffff810a984a>] warn_slowpath_null+0x2a/0x40
[ 26.565343] [<ffffffff8322bb82>] kprobe_trace_self_tests_init+0x6e/0x84d
[ 26.567150] [<ffffffff8322bb14>] ? init_kprobe_trace+0xe8/0xe8
[ 26.568947] [<ffffffff81000372>] do_one_initcall+0x1c2/0x2b0
[ 26.570496] [<ffffffff831fbc5c>] kernel_init_freeable+0x238/0x36f
[ 26.572172] [<ffffffff831fac1f>] ? do_early_param+0x111/0x111
[ 26.573724] [<ffffffff81eecb40>] ? rest_init+0x140/0x140
[ 26.575201] [<ffffffff81eecb56>] kernel_init+0x16/0x2b0
[ 26.576740] [<ffffffff81f3acba>] ret_from_fork+0x7a/0xb0
[ 26.578215] [<ffffffff81eecb40>] ? rest_init+0x140/0x140
[ 26.579717] ---[ end trace c89373f17ce6ce32 ]---
[ 26.581040] error on probing function entry.
git bisect start v3.10 v3.9 --
git bisect good ff89acc563a0bd49965674f56552ad6620415fe2 # 08:19 20+ 20 Merge branch 'rcu/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
git bisect good e4327859341f2d3a93b4b6fef2ea483eac1c270c # 08:25 20+ 0 Merge branch 'for-3.10' of git://git.samba.org/sfrench/cifs-2.6
git bisect good 2601ded7fd8827ddbcc450cbfb153b3f3c59b443 # 08:30 20+ 0 Merge tag 'sound-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
git bisect good 9e895ace5d82df8929b16f58e9f515f6d54ab82d # 08:54 20+ 0 Linux 3.10-rc7
git bisect bad 1a506e473576cdcb922d339aea76b67d0fe344f7 # 09:06 0- 12 Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
git bisect good 78750f1908869c3bfcbf2a1f1f00f078f2948271 # 09:18 20+ 0 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
git bisect bad 54faf77d065926adbcc2a49e6df3559094cc93ba # 09:25 0- 20 Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good de6e1317f746fbc527a73976c58b4119e506ff7c # 09:39 20+ 0 Merge tag 'critical_fix_for_3.9' of git://git.kernel.org/pub/scm/linux/kernel/git/rwlove/fcoe
git bisect good e3ff91143eb2a6eaaab4831c85a2837a95fbbea3 # 09:47 20+ 0 Merge branch 'fixes' of git://git.linaro.org/people/rmk/linux-arm
git bisect bad 8b4d801b2b123b6c09742f861fe44a8527b84d47 # 10:10 0- 20 hw_breakpoint: Fix cpu check in task_bp_pinned(cpu)
git bisect bad 003002e04ed38618fc37b92ba128f5ca79d39f4f # 10:15 0- 20 kprobes: Fix arch_prepare_kprobe to handle copy insn failures
# first bad commit: [003002e04ed38618fc37b92ba128f5ca79d39f4f] kprobes: Fix arch_prepare_kprobe to handle copy insn failures
git bisect good f1a527899ef0a8a241eb3bea619eb2e29d797f44 # 10:23 60+ 0 perf/x86: Fix broken PEBS-LL support on SNB-EP/IVB-EP
git bisect bad d05446ae2128064a4bb8f74c84f6901ffb5c94bc # 10:23 0- 11 Add linux-next specific files for 20140827
git bisect bad f1bd473f95e02bc382d4dae94d7f82e2a455e05d # 10:30 0- 30 Merge branch 'sec-v3.17-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/sergeh/linux-security
git bisect bad d05446ae2128064a4bb8f74c84f6901ffb5c94bc # 10:30 0- 11 Add linux-next specific files for 20140827
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=yocto-minimal-x86_64.cgz
wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/raw/master/initrd/$initrd
kvm=(
qemu-system-x86_64
-cpu kvm64
-enable-kvm
-kernel $kernel
-initrd $initrd
-m 320
-smp 1
-net nic,vlan=1,model=e1000
-net user,vlan=1
-boot order=nc
-no-reboot
-watchdog i6300esb
-rtc base=localtime
-serial stdio
-display none
-monitor null
)
append=(
hung_task_panic=1
earlyprintk=ttyS0,115200
debug
apic=debug
sysrq_always_enabled
rcupdate.rcu_cpu_stall_timeout=100
panic=-1
softlockup_panic=1
nmi_watchdog=panic
oops=panic
load_ramdisk=2
prompt_ramdisk=0
console=ttyS0,115200
console=tty0
vga=normal
root=/dev/ram0
rw
drbd.minor_count=8
)
"${kvm[@]}" --append "${append[*]}"
----------------------------------------------------------------------------
Thanks,
Fengguang
View attachment "dmesg-yocto-vp-24:20140828101519:x86_64-randconfig-ib1-08280643:3.10.0-rc3-00005-g003002e:9" of type "text/plain" (149340 bytes)
Download attachment "x86_64-randconfig-ib1-08280643-d05446ae2128064a4bb8f74c84f6901ffb5c94bc-WARNING:---at----kprobe_trace_self_tests_init+-x-48434.log" of type "application/octet-stream" (83331 bytes)
View attachment "config-3.10.0-rc3-00005-g003002e" of type "text/plain" (72192 bytes)
_______________________________________________
LKP mailing list
LKP@...ux.intel.com
Powered by blists - more mailing lists