lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Sat, 27 Dec 2014 16:46:39 -0800
From:	Fengguang Wu <fengguang.wu@...el.com>
To:	Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>
Cc:	Ingo Molnar <mingo@...nel.org>, LKP <lkp@...org>,
	linux-kernel@...r.kernel.org
Subject: [kprobes] WARNING: at kernel/trace/trace_kprobe.c:1393
 kprobe_trace_self_tests_init()

Hi Masami,

0day kernel testing robot got the below dmesg and the first bad commit is

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 | b528392669 |
+------------------------------------------------------------------------+------------+------------+------------+
| boot_successes                                                         | 120        | 0          | 0          |
| boot_failures                                                          | 0          | 20         | 22         |
| WARNING:at_kernel/trace/trace_kprobe.c:#kprobe_trace_self_tests_init() | 0          | 20         | 22         |
| backtrace:kprobe_trace_self_tests_init                                 | 0          | 20         | 22         |
| backtrace:warn_slowpath_null                                           | 0          | 20         | 22         |
| backtrace:kernel_init_freeable                                         | 0          | 20         | 22         |
+------------------------------------------------------------------------+------------+------------+------------+

[    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]  [<ffffffff814c1621>] dump_stack+0x27/0x30
[    9.315799]  [<ffffffff81078a3c>] warn_slowpath_common+0x8c/0xc0
[    9.316793]  [<ffffffff81c84624>] ? init_kprobe_trace+0xe8/0xe8
[    9.317665]  [<ffffffff81078a95>] warn_slowpath_null+0x25/0x30
[    9.318480]  [<ffffffff81c8468d>] kprobe_trace_self_tests_init+0x69/0x7f0
[    9.319385]  [<ffffffff81c84624>] ? init_kprobe_trace+0xe8/0xe8
[    9.320256]  [<ffffffff810021aa>] do_one_initcall+0x1aa/0x260
[    9.321092]  [<ffffffff81c605e9>] kernel_init_freeable+0x23d/0x327
[    9.322026]  [<ffffffff814b2010>] ? rest_init+0x230/0x230
[    9.322845]  [<ffffffff814b2021>] kernel_init+0x11/0x240
[    9.323674]  [<ffffffff814d757a>] ret_from_fork+0x7a/0xb0
[    9.324509]  [<ffffffff814b2010>] ? 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  # 01:47     20+     80  Merge branch 'rcu/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
git bisect good e4327859341f2d3a93b4b6fef2ea483eac1c270c  # 01:47     20+      0  Merge branch 'for-3.10' of git://git.samba.org/sfrench/cifs-2.6
git bisect good 2601ded7fd8827ddbcc450cbfb153b3f3c59b443  # 01:47     20+      0  Merge tag 'sound-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
git bisect good 9e895ace5d82df8929b16f58e9f515f6d54ab82d  # 01:47     40+      0  Linux 3.10-rc7
git bisect  bad 1a506e473576cdcb922d339aea76b67d0fe344f7  # 01:47      0-     20  Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
git bisect good 78750f1908869c3bfcbf2a1f1f00f078f2948271  # 01:47     40+      0  Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
git bisect  bad 54faf77d065926adbcc2a49e6df3559094cc93ba  # 01:47      0-     40  Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good de6e1317f746fbc527a73976c58b4119e506ff7c  # 01:47     40+      0  Merge tag 'critical_fix_for_3.9' of git://git.kernel.org/pub/scm/linux/kernel/git/rwlove/fcoe
git bisect good e3ff91143eb2a6eaaab4831c85a2837a95fbbea3  # 01:47     20+      0  Merge branch 'fixes' of git://git.linaro.org/people/rmk/linux-arm
git bisect  bad 8b4d801b2b123b6c09742f861fe44a8527b84d47  # 01:49      0-     20  hw_breakpoint: Fix cpu check in task_bp_pinned(cpu)
git bisect  bad 003002e04ed38618fc37b92ba128f5ca79d39f4f  # 01:49      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  # 01:49    120+      0  perf/x86: Fix broken PEBS-LL support on SNB-EP/IVB-EP
# extra tests with DEBUG_INFO
git bisect good 003002e04ed38618fc37b92ba128f5ca79d39f4f  # 01:53     60+     60  kprobes: Fix arch_prepare_kprobe to handle copy insn failures
# extra tests on HEAD of linus/master
git bisect  bad 58628a7831edac5f7a13baa9d9320c758c5204c8  # 01:59      0-      4  Merge branch 'parisc-3.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
# extra tests on tree/branch linus/master
git bisect  bad 58628a7831edac5f7a13baa9d9320c758c5204c8  # 01:59      0-      4  Merge branch 'parisc-3.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
# extra tests on tree/branch linus/master
git bisect  bad 58628a7831edac5f7a13baa9d9320c758c5204c8  # 01:59      0-      4  Merge branch 'parisc-3.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
# extra tests on tree/branch next/master
git bisect  bad 2fb8bdb2ca2808ce901fdfc1eda31bcb488156d0  # 02:05      0-      8  Add linux-next specific files for 20141226


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-client9-40:20141211083739:x86_64-randconfig-ib0-12061218:3.10.0-rc3-00005-g003002e:25" of type "text/plain" (79476 bytes)

View attachment "config-3.10.0-rc3-00005-g003002e" of type "text/plain" (58762 bytes)

_______________________________________________
LKP mailing list
LKP@...ux.intel.com

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ