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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Thu, 22 May 2014 12:53:07 +0800
From:	Jet Chen <jet.chen@...el.com>
To:	Jiri Olsa <jolsa@...nel.org>
CC:	Fengguang Wu <fengguang.wu@...el.com>,
	LKML <linux-kernel@...r.kernel.org>, linux-api@...r.kernel.org
Subject: [perf] BUG: unable to handle kernel NULL pointer dereference at 000000b3

Hi Jiri,

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

git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git perf/fd_master_1
commit 93b6a1f2384ec43677bc555a7d5508710f1068d5
Author:     Jiri Olsa <jolsa@...nel.org>
AuthorDate: Sun May 18 21:32:38 2014 +0200
Commit:     Jiri Olsa <jolsa@...nel.org>
CommitDate: Wed May 21 17:31:50 2014 +0200

      perf: Add fd_master interface

+------------------------------------------------------+------------+------------+
|                                                      | 8210dbfcf4 | 93b6a1f238 |
+------------------------------------------------------+------------+------------+
| boot_successes                                       | 129        | 28         |
| boot_failures                                        | 0          | 15         |
| BUG:unable_to_handle_kernel_NULL_pointer_dereference | 0          | 15         |
| Oops                                                 | 0          | 15         |
| EIP_is_at_SYSC_perf_event_open                       | 0          | 15         |
| Kernel_panic-not_syncing:Fatal_exception             | 0          | 15         |
| backtrace:SyS_perf_event_open                        | 0          | 15         |
+------------------------------------------------------+------------+------------+


[   30.683069] irttp_open_tsap(), invalid tsap!
[   30.683683] irda_open_tsap(), Unable to allocate TSAP!
[   30.684396] irias_delete_object(), object already removed!
[   30.716611] BUG: unable to handle kernel NULL pointer dereference at 000000b3
[   30.717653] IP: [<810a0db0>] SYSC_perf_event_open+0x2bf/0x762
[   30.718493] *pdpt = 0000000010182001 *pde = 0000000000000000 [   30.719330] Oops: 0000 [#1] PREEMPT [   30.719888] CPU: 0 PID: 568 Comm: trinity-main Not tainted 3.15.0-rc4-00002-g93b6a1f #1046
[   30.720023] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[   30.720023] task: 901fd5e0 ti: 900d4000 task.ti: 900d4000
[   30.720023] EIP: 0060:[<810a0db0>] EFLAGS: 00010246 CPU: 0
[   30.720023] EIP is at SYSC_perf_event_open+0x2bf/0x762
[   30.720023] EAX: ffffffff EBX: 08206000 ECX: 00000000 EDX: 00000000
[   30.720023] ESI: 00000000 EDI: 00000000 EBP: 900d5f9c ESP: 900d5f0c
[   30.720023]  DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
[   30.720023] CR0: 8005003b CR2: 000000b3 CR3: 100cb000 CR4: 000006b0
[   30.720023] Stack:
[   30.720023]  900d5fb4 900d5f8c 00000000 00000002 ffffffff 901fd5e0 00000000 00000000
[   30.720023]  00000000 000093fe 00000060 ffffffdf 00000000 00000000 00000000 00000000
[   30.720023]  00000000 0000000b 00000000 007cc093 00000000 00000000 00000000 291fe9fa
[   30.720023] Call Trace:
[   30.720023]  [<810a14b4>] SyS_perf_event_open+0x17/0x19
[   30.720023]  [<81da470d>] syscall_call+0x7/0xb
[   30.720023] Code: 8b 55 8c f6 45 0c 02 8b ba 10 01 00 00 0f 45 df f6 45 0c 01 89 9d 78 ff ff ff 0f 45 f8 eb 0c c7 85 78 ff ff ff 00 00 00 00 31 ff <f6> 87 b3 00 00 00 01 74 19 f6 45 bf 01 0f 85 54 04 00 00 b8 01
[   30.720023] EIP: [<810a0db0>] SYSC_perf_event_open+0x2bf/0x762 SS:ESP 0068:900d5f0c
[   30.720023] CR2: 00000000000000b3
[   30.759892] irttp_open_tsap(), invalid tsap!

git bisect start fdb09c8c5e26a0381c5f0c288e6ca31c39c8bdfe d6d211db37e75de2ddc3a4f979038c40df7cc79c --
git bisect good c0c6440cc4fb01220e0813cc6f68674b97b0225a  # 07:20     26+      0  Merge 'drm-intel/drm-intel-nightly' into devel-roam-i386-201405220237
git bisect  bad 3d20b7da1a797b9fa96fb6b70226f41846f5e684  # 07:48     12-     14  Merge 'rogerq/connectivity-3.15.y' into devel-roam-i386-201405220237
git bisect  bad dfab0cd32891162ba4d20216f5dbab9fb646fa3a  # 07:58      7-      3  Merge 'jolsa-perf/perf/fd_master_1' into devel-roam-i386-201405220237
git bisect good 3617660e4e1618a888a2e3a4067224534302cb33  # 08:16     43+      0  Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf into perf/core
git bisect good 21a8b756b84ecaa0b7f29199669c151e2ce5e723  # 08:42     43+      0  perf tools: Consolidate types.h for ARM and ARM64
git bisect good 22af969e8cfc6ea46d3e1a774a16d7e19b8cf4db  # 08:57     43+      0  perf tools: Call perf_hpp__init() before setting up GUI browsers
git bisect good 1c89fe9b0447f0ce393325e51911f8073432b7b4  # 09:09     43+      0  perf tools: Introduce reset_output_field()
git bisect good eca8183699964579ca8a0b8d116bd1f4da0136f7  # 09:24     43+      0  perf tools: Add automatic remapping of Android libraries
git bisect  bad 93b6a1f2384ec43677bc555a7d5508710f1068d5  # 09:40     28-     15  perf: Add fd_master interface
git bisect good 8210dbfcf40bb8a36c38ff4b83539117c06412a3  # 09:55     43+      0  perf: Switch event fd allocation and group fd check
# first bad commit: [93b6a1f2384ec43677bc555a7d5508710f1068d5] perf: Add fd_master interface
git bisect good 8210dbfcf40bb8a36c38ff4b83539117c06412a3  # 09:58    129+      0  perf: Switch event fd allocation and group fd check
git bisect  bad fdb09c8c5e26a0381c5f0c288e6ca31c39c8bdfe  # 09:58      0-      9  0day head guard for 'devel-roam-i386-201405220237'
git bisect good 4b660a7f5c8099d88d1a43d8ae138965112592c7  # 11:25    129+      0  Linux 3.15-rc6
git bisect good 18e072998c67e985aaa643ca1af3e6a0dc133b71  # 12:12    129+      0  Add linux-next specific files for 20140521


This script may reproduce the error.

-----------------------------------------------------------------------------
#!/bin/bash

kernel=$1
initrd=yocto-minimal-i386.cgz

wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/blob/master/initrd/$initrd

kvm=(
	qemu-system-x86_64 -cpu kvm64 -enable-kvm 	-kernel $kernel
	-initrd $initrd
	-smp 2
	-m 256M
	-net nic,vlan=0,macaddr=00:00:00:00:00:00,model=virtio
	-net user,vlan=0
	-net nic,vlan=1,model=e1000
	-net user,vlan=1
	-boot order=nc
	-no-reboot
	-watchdog i6300esb
	-serial stdio
	-display none
	-monitor null
)

append=(
	debug
	sched_debug
	apic=debug
	ignore_loglevel
	sysrq_always_enabled
	panic=10
	prompt_ramdisk=0
	earlyprintk=ttyS0,115200
	console=ttyS0,115200
	console=tty0
	vga=normal
	root=/dev/ram0
	rw
)

"${kvm[@]}" --append "${append[*]}"
-----------------------------------------------------------------------------

Thanks,
Jet



View attachment "dmesg-yocto-ivb41-87:20140522093949:i386-randconfig-r0-0522:3.15.0-rc4-00002-g93b6a1f:1046" of type "text/plain" (22491 bytes)

View attachment "Attached Message Part" of type "text/plain" (87 bytes)

View attachment "config-3.15.0-rc4-00002-g93b6a1f" of type "text/plain" (94320 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ