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]
Message-ID: <20140930074632.GB8090@wfg-t540p.sh.intel.com>
Date:	Tue, 30 Sep 2014 15:46:32 +0800
From:	Fengguang Wu <fengguang.wu@...el.com>
To:	Jiang Liu <jiang.liu@...ux.intel.com>
Cc:	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: [x86, irq] WARNING: CPU: 0 PID: 0 at
 arch/x86/kernel/cpu/common.c:1430 warn_pre_alternatives()

Hi Gerry,

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

https://github.com/jiangliu/linux.git irqdomain/p3v1

commit f2bb95f78a694f575ef41a9f65c003ee934fc263
Author:     Jiang Liu <jiang.liu@...ux.intel.com>
AuthorDate: Wed Jun 25 14:16:18 2014 +0800
Commit:     Jiang Liu <jiang.liu@...ux.intel.com>
CommitDate: Fri Sep 26 19:09:42 2014 +0800

    x86, irq: Move IRQ initialization routines from io_apic.c into vector.c
    
    Move IRQ initialization routines from io_apic.c into vector.c,
    preparing for enabling hierarchy irqdomain.
    
    Signed-off-by: Jiang Liu <jiang.liu@...ux.intel.com>

Attached dmesg for the parent commit, too, to help confirm whether it is a noise error.
It looks to me that the OOM errors in the parent commit is irrelevant.

+------------------------------------------------------------------+------------+------------+------------------+
|                                                                  | 9d24b890d0 | f2bb95f78a | v3.17-rc6_092700 |
+------------------------------------------------------------------+------------+------------+------------------+
| boot_successes                                                   | 43         | 0          | 0                |
| boot_failures                                                    | 37         | 20         | 11               |
| Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 37         |            |                  |
| backtrace:serio_handle_event                                     | 28         |            |                  |
| backtrace:do_fork                                                | 4          |            |                  |
| backtrace:kthreadd                                               | 4          |            |                  |
| backtrace:rcu_torture_stats                                      | 5          |            |                  |
| WARNING:at_arch/x86/kernel/cpu/common.c:warn_pre_alternatives()  | 0          | 20         | 11               |
| BUG:unable_to_handle_kernel                                      | 0          | 20         | 11               |
| Oops                                                             | 0          | 20         | 11               |
| EIP_is_at_setup_irq                                              | 0          | 20         | 11               |
| Kernel_panic-not_syncing:Fatal_exception                         | 0          | 20         | 11               |
+------------------------------------------------------------------+------------+------------+------------------+

[    0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[    0.000000] NR_IRQS:16 nr_irqs:16 0
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/cpu/common.c:1430 warn_pre_alternatives+0x17/0x20()
[    0.000000] You're using static_cpu_has before alternatives have run!
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.17.0-rc6-00208-gf2bb95f #2
[    0.000000]  c1a91eac c1a91eac c1a91e80 c175a430 c1a91e9c c1034c47 00000596 c100fb87
[    0.000000]  0000003a c1a91f64 c1026fc0 c1a91eb4 c1034cb6 00000009 c1a91eac c198ecbc
[    0.000000]  c1a91ec8 c1a91ec8 c100fb87 c198ec6c 00000596 c198ecbc c1a91f44 c1029a4d
[    0.000000] Call Trace:
[    0.000000]  [<c175a430>] dump_stack+0x16/0x18
[    0.000000]  [<c1034c47>] warn_slowpath_common+0x57/0x70
[    0.000000]  [<c100fb87>] ? warn_pre_alternatives+0x17/0x20
[    0.000000]  [<c1026fc0>] ? kvm_read_and_reset_pf_reason+0x20/0x20
[    0.000000]  [<c1034cb6>] warn_slowpath_fmt+0x26/0x30
[    0.000000]  [<c100fb87>] warn_pre_alternatives+0x17/0x20
[    0.000000]  [<c1029a4d>] __do_page_fault+0x19d/0x4a0
[    0.000000]  [<c105a657>] ? __lock_acquire+0x2f7/0xcb0
[    0.000000]  [<c1026fc0>] ? kvm_read_and_reset_pf_reason+0x20/0x20
[    0.000000]  [<c1029ee4>] do_page_fault+0x24/0x40
[    0.000000]  [<c1026fd2>] do_async_page_fault+0x12/0x80
[    0.000000]  [<c17618bd>] error_code+0x65/0x6c
[    0.000000]  [<c13c0000>] ? sg_scsi_ioctl+0x150/0x3a0
[    0.000000]  [<c1068edf>] ? setup_irq+0xf/0x80
[    0.000000]  [<c1c977ae>] native_init_IRQ+0x2ee/0x2fc
[    0.000000]  [<c1c974be>] init_IRQ+0x1f/0x21
[    0.000000]  [<c1c94976>] start_kernel+0x23b/0x389
[    0.000000]  [<c1c942cb>] i386_start_kernel+0x79/0x7d
[    0.000000] ---[ end trace 4d5ff9f2f68c4233 ]---
[    0.000000] BUG: unable to handle kernel NULL pointer dereference at 0000003a

git bisect start fe34ad1c7f6455ab6827d4cc84224b7f57eec1eb 0f33be009b89d2268e94194dc4fd01a7851b6d51 --
git bisect  bad a3f28bd4c220897d58cba325209d64613f8a6d0a  # 14:05      0-     20  Merge 'arm-soc/sunxi/rtc' into devel-hourly-2014092700
git bisect good a25102b03066c1e532fb15f9dc96fd4560e27718  # 14:11     20+     12  Merge 'tomeu/clk-constraints' into devel-hourly-2014092700
git bisect good c3d8a4dadca4527de0c294fb3befba882fc4f116  # 14:15     20+      7  Merge 'ljones-mfd/for-mfd-next' into devel-hourly-2014092700
git bisect  bad c42622ecfc1b3ca7110002aa37fa37e0bc6e2bbf  # 14:20      0-     10  Merge 'jiangliu/irqdomain/p1v2' into devel-hourly-2014092700
git bisect good 07c59feab0eab9e51d0306e5f254e6ec148b568b  # 14:31     20+      7  Merge 'gpio/devel' into devel-hourly-2014092700
git bisect good 452b6361c4d9baf6940adb7b1316e0f386c39799  # 14:48     20+      9  Merge tag 'rdma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband
git bisect good 424fff7ae225da25606f2ba6aafc5df3df1e8b7f  # 14:57     20+      8  x86, irq: Kill fourth parameter of IO_APIC_get_PCI_irq_vector()
git bisect good 65bc21db96059f859a4e88676578bb485f2eb1b0  # 15:05     20+     14  x86, irq: Move PCI MSI related code from io_apic.c into msi.c
git bisect  bad 9a55fc663ec935de7912d8a649abdc6351bef2b9  # 15:08      0-     20  x86, irq: Make MSI and HT_IRQ indepenent of X86_IO_APIC
git bisect good 9d24b890d00698320c804c335673a5a5dad177bb  # 16:40     20+      8  x86, irq: Move IOAPIC related declarations from hw_irq.h into io_apic.h
git bisect  bad f2bb95f78a694f575ef41a9f65c003ee934fc263  # 18:44      0-     20  x86, irq: Move IRQ initialization routines from io_apic.c into vector.c
# first bad commit: [f2bb95f78a694f575ef41a9f65c003ee934fc263] x86, irq: Move IRQ initialization routines from io_apic.c into vector.c
git bisect good 9d24b890d00698320c804c335673a5a5dad177bb  # 18:48     60+     37  x86, irq: Move IOAPIC related declarations from hw_irq.h into io_apic.h
git bisect  bad fe34ad1c7f6455ab6827d4cc84224b7f57eec1eb  # 18:48      0-     11  0day head guard for 'devel-hourly-2014092700'
git bisect good 1e3827bf8aebe29af2d6e49b89d85dfae4d0154f  # 23:29     60+     27  Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
git bisect good 4d8426f9ac601db2a64fa7be64051d02b9c9fe01  # 00:23     60+     22  Add linux-next specific files for 20140926


This script may reproduce the error.

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

kernel=$1

kvm=(
	qemu-system-x86_64
	-cpu kvm64
	-enable-kvm
	-kernel $kernel
	-m 320
	-smp 2
	-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-quantal-ivb41-83:20140928184420:i386-randconfig-c1-09270045::" of type "text/plain" (11522 bytes)

View attachment "dmesg-quantal-ivb41-100:20140928184658:i386-randconfig-c1-09270045::" of type "text/plain" (61572 bytes)

Download attachment "i386-randconfig-c1-09270045-fe34ad1c7f6455ab6827d4cc84224b7f57eec1eb-WARNING:---at----warn_pre_alternatives+-x-34281.log" of type "application/octet-stream" (44507 bytes)

View attachment "config-3.17.0-rc6-00208-gf2bb95f" of type "text/plain" (79297 bytes)

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ