Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is commit 003002e04ed38618fc37b92ba128f5ca79d39f4f Author: Masami Hiramatsu AuthorDate: Wed Jun 5 12:12:16 2013 +0900 Commit: Ingo Molnar 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 Acked-by: Steven Rostedt Tested-by: Jonathan Lebon Cc: Frank Ch. Eigler Cc: systemtap@sourceware.org Cc: yrl.pp-manager.tt@hitachi.com Link: http://lkml.kernel.org/r/20130605031216.15285.2001.stgit@mhiramat-M0-7522 Signed-off-by: Ingo Molnar +------------------------------------------------------------------------+------------+------------+--------------+ | | f1a527899e | 003002e04e | v3.18_121022 | +------------------------------------------------------------------------+------------+------------+--------------+ | boot_successes | 60 | 0 | 0 | | boot_failures | 0 | 20 | 12 | | WARNING:at_kernel/trace/trace_kprobe.c:#kprobe_trace_self_tests_init() | 0 | 20 | 12 | | backtrace:kprobe_trace_self_tests_init | 0 | 20 | 12 | | backtrace:warn_slowpath_null | 0 | 20 | 12 | | backtrace:kernel_init_freeable | 0 | 20 | 12 | +------------------------------------------------------------------------+------------+------------+--------------+ [ 9.302086] Testing kprobe tracing: [ 9.304225] Could not insert probe at kprobe_trace_selftest_target+0: -22 [ 9.305509] ------------[ cut here ]------------ [ 9.306204] WARNING: at kernel/trace/trace_kprobe.c:1393 kprobe_trace_self_tests_init+0x69/0x7f0() [ 9.307812] Modules linked in: [ 9.308313] CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.0-rc3-00005-g003002e #25 [ 9.309436] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014 [ 9.311039] 0000000000000009 ffff880013445e78 ffffffff814c1621 ffff880013445eb0 [ 9.312241] ffffffff81078a3c ffffffff81c84624 0000000000000007 0000000000000000 [ 9.313388] 0000000000000000 0000000000000000 ffff880013445ec0 ffffffff81078a95 [ 9.314561] Call Trace: [ 9.314933] [] dump_stack+0x27/0x30 [ 9.315799] [] warn_slowpath_common+0x8c/0xc0 [ 9.316793] [] ? init_kprobe_trace+0xe8/0xe8 [ 9.317665] [] warn_slowpath_null+0x25/0x30 [ 9.318480] [] kprobe_trace_self_tests_init+0x69/0x7f0 [ 9.319385] [] ? init_kprobe_trace+0xe8/0xe8 [ 9.320256] [] do_one_initcall+0x1aa/0x260 [ 9.321092] [] kernel_init_freeable+0x23d/0x327 [ 9.322026] [] ? rest_init+0x230/0x230 [ 9.322845] [] kernel_init+0x11/0x240 [ 9.323674] [] ret_from_fork+0x7a/0xb0 [ 9.324509] [] ? rest_init+0x230/0x230 [ 9.325230] ---[ end trace d5b21dab2503848a ]--- [ 9.325955] error on probing function entry. git bisect start v3.10 v3.9 -- git bisect good ff89acc563a0bd49965674f56552ad6620415fe2 # 06:44 20+ 21 Merge branch 'rcu/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu git bisect good e4327859341f2d3a93b4b6fef2ea483eac1c270c # 06:56 20+ 0 Merge branch 'for-3.10' of git://git.samba.org/sfrench/cifs-2.6 git bisect good 2601ded7fd8827ddbcc450cbfb153b3f3c59b443 # 07:08 20+ 0 Merge tag 'sound-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound git bisect good 9e895ace5d82df8929b16f58e9f515f6d54ab82d # 07:12 20+ 0 Linux 3.10-rc7 git bisect bad 1a506e473576cdcb922d339aea76b67d0fe344f7 # 07:16 0- 3 Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux git bisect good 78750f1908869c3bfcbf2a1f1f00f078f2948271 # 07:33 20+ 0 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client git bisect bad 54faf77d065926adbcc2a49e6df3559094cc93ba # 07:39 0- 7 Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip git bisect good de6e1317f746fbc527a73976c58b4119e506ff7c # 07:59 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 # 08:11 20+ 0 Merge branch 'fixes' of git://git.linaro.org/people/rmk/linux-arm git bisect bad 8b4d801b2b123b6c09742f861fe44a8527b84d47 # 08:29 0- 1 hw_breakpoint: Fix cpu check in task_bp_pinned(cpu) git bisect bad 003002e04ed38618fc37b92ba128f5ca79d39f4f # 08:38 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 # 09:07 60+ 0 perf/x86: Fix broken PEBS-LL support on SNB-EP/IVB-EP # extra tests on HEAD of linux-devel/devel-hourly-2014121022 git bisect bad 876ed1468bfdd84f401fb63a0e76a3619665fa28 # 09:07 0- 12 0day head guard for 'devel-hourly-2014121022' # extra tests on tree/branch linus/master git bisect bad 3a5dc1fafb016560315fe45bb4ef8bde259dd1bc # 09:07 0- 24 Merge branch 'x86-microcode-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip # extra tests on tree/branch linus/master git bisect bad 3a5dc1fafb016560315fe45bb4ef8bde259dd1bc # 09:07 0- 24 Merge branch 'x86-microcode-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip # extra tests on tree/branch next/master git bisect bad 12fd07251e19050ca979d9ce5d4b6bcb41dc00e9 # 09:07 0- 24 Add linux-next specific files for 20141210 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