[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20150124034436.GB14038@wfg-t540p.sh.intel.com>
Date: Fri, 23 Jan 2015 19:44:36 -0800
From: Fengguang Wu <fengguang.wu@...el.com>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: LKP <lkp@...org>, linux-kernel@...r.kernel.org
Subject: [init] BUG: unable to handle kernel NULL pointer dereference at
00000000000000ac
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/apic
commit 30b8b0066cafef274fc92462578ee346211ce7cb
Author: Thomas Gleixner <tglx@...utronix.de>
AuthorDate: Thu Jan 15 21:22:39 2015 +0000
Commit: Thomas Gleixner <tglx@...utronix.de>
CommitDate: Thu Jan 22 15:10:56 2015 +0100
init: Get rid of x86isms
The UP local API support can be set up from an early initcall. No need
for horrible hackery in the init code.
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Cc: Jiang Liu <jiang.liu@...ux.intel.com>
Cc: Joerg Roedel <joro@...tes.org>
Cc: Tony Luck <tony.luck@...el.com>
Cc: Borislav Petkov <bp@...en8.de>
Link: http://lkml.kernel.org/r/20150115211703.827943883@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
+------------------------------------------+------------+------------+------------+
| | e714a91f92 | 30b8b0066c | f7583d17c1 |
+------------------------------------------+------------+------------+------------+
| boot_successes | 60 | 0 | 0 |
| boot_failures | 0 | 20 | 12 |
| BUG:unable_to_handle_kernel | 0 | 20 | 12 |
| Oops | 0 | 20 | 12 |
| RIP:mp_set_gsi_attr | 0 | 20 | 12 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 20 | 12 |
| backtrace:acpi_get_devices | 0 | 20 | 12 |
| backtrace:pnpacpi_init | 0 | 20 | 12 |
| backtrace:kernel_init_freeable | 0 | 20 | 12 |
+------------------------------------------+------------+------------+------------+
[ 0.234534] AppArmor: AppArmor Filesystem Enabled
[ 0.235562] pnp: PnP ACPI init
[ 0.235562] pnp: PnP ACPI init
[ 0.236228] BUG: unable to handle kernel
[ 0.236228] BUG: unable to handle kernel NULL pointer dereferenceNULL pointer dereference at 00000000000000ac
at 00000000000000ac
[ 0.236527] IP:
[ 0.236527] IP: [<ffffffff81023c1e>] mp_set_gsi_attr+0x6c/0xc0
[<ffffffff81023c1e>] mp_set_gsi_attr+0x6c/0xc0
[ 0.236527] PGD 0
[ 0.236527] PGD 0
[ 0.236527] Oops: 0000 [#1]
[ 0.236527] Oops: 0000 [#1]
[ 0.236527] CPU: 0 PID: 1 Comm: swapper Not tainted 3.19.0-rc4-00037-g30b8b00 #174
[ 0.236527] CPU: 0 PID: 1 Comm: swapper Not tainted 3.19.0-rc4-00037-g30b8b00 #174
[ 0.236527] task: ffff880012860000 ti: ffff88001284c000 task.ti: ffff88001284c000
[ 0.236527] task: ffff880012860000 ti: ffff88001284c000 task.ti: ffff88001284c000
[ 0.236527] RIP: 0010:[<ffffffff81023c1e>]
[ 0.236527] RIP: 0010:[<ffffffff81023c1e>] [<ffffffff81023c1e>] mp_set_gsi_attr+0x6c/0xc0
[<ffffffff81023c1e>] mp_set_gsi_attr+0x6c/0xc0
[ 0.236527] RSP: 0000:ffff88001284fb08 EFLAGS: 00010286
[ 0.236527] RSP: 0000:ffff88001284fb08 EFLAGS: 00010286
[ 0.236527] RAX: ffff880012860000 RBX: 00000000000000a0 RCX: ffffffff81023c06
[ 0.236527] RAX: ffff880012860000 RBX: 00000000000000a0 RCX: ffffffff81023c06
[ 0.236527] RDX: 0000000000000006 RSI: ffff880012860698 RDI: 0000000000000246
[ 0.236527] RDX: 0000000000000006 RSI: ffff880012860698 RDI: 0000000000000246
[ 0.236527] RBP: ffff88001284fb38 R08: 000000000000d1c0 R09: ffffffff828df270
[ 0.236527] RBP: ffff88001284fb38 R08: 000000000000d1c0 R09: ffffffff828df270
[ 0.236527] R10: ffffffff82c77a80 R11: 00000000000008f4 R12: 00000000ffffffff
[ 0.236527] R10: ffffffff82c77a80 R11: 00000000000008f4 R12: 00000000ffffffff
[ 0.236527] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 0.236527] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 0.236527] FS: 0000000000000000(0000) GS:ffffffff81dbc000(0000) knlGS:0000000000000000
[ 0.236527] FS: 0000000000000000(0000) GS:ffffffff81dbc000(0000) knlGS:0000000000000000
[ 0.236527] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 0.236527] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 0.236527] CR2: 00000000000000ac CR3: 0000000001dad000 CR4: 00000000000006f0
[ 0.236527] CR2: 00000000000000ac CR3: 0000000001dad000 CR4: 00000000000006f0
[ 0.236527] Stack:
[ 0.236527] Stack:
[ 0.236527] 0000000000000000
[ 0.236527] 0000000000000000 0000000000000008 0000000000000008 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 0.236527] 0000000000000001
[ 0.236527] 0000000000000001 0000000000000000 0000000000000000 ffff88001284fb78 ffff88001284fb78 ffffffff8101f4c5 ffffffff8101f4c5
[ 0.236527] ffff88001284fb88
[ 0.236527] ffff88001284fb88 ffffffff81022f5c ffffffff81022f5c 0000000000000000 0000000000000000 0000000000000008 0000000000000008
[ 0.236527] Call Trace:
[ 0.236527] Call Trace:
[ 0.236527] [<ffffffff8101f4c5>] acpi_register_gsi_ioapic+0x49/0x8b
[ 0.236527] [<ffffffff8101f4c5>] acpi_register_gsi_ioapic+0x49/0x8b
[ 0.236527] [<ffffffff81022f5c>] ? acpi_get_override_irq+0x5c/0xc3
[ 0.236527] [<ffffffff81022f5c>] ? acpi_get_override_irq+0x5c/0xc3
[ 0.236527] [<ffffffff8101f591>] acpi_register_gsi+0xa/0xc
[ 0.236527] [<ffffffff8101f591>] acpi_register_gsi+0xa/0xc
[ 0.236527] [<ffffffff8152ef27>] acpi_dev_get_irqresource+0xc0/0xf2
[ 0.236527] [<ffffffff8152ef27>] acpi_dev_get_irqresource+0xc0/0xf2
[ 0.236527] [<ffffffff8155b33d>] ? pnpacpi_type_resources+0x3f/0x3f
[ 0.236527] [<ffffffff8155b33d>] ? pnpacpi_type_resources+0x3f/0x3f
[ 0.236527] [<ffffffff8155b33d>] ? pnpacpi_type_resources+0x3f/0x3f
[ 0.236527] [<ffffffff8155b33d>] ? pnpacpi_type_resources+0x3f/0x3f
[ 0.236527] [<ffffffff8152eff4>] acpi_dev_resource_interrupt+0x9b/0xa3
[ 0.236527] [<ffffffff8152eff4>] acpi_dev_resource_interrupt+0x9b/0xa3
[ 0.236527] [<ffffffff8155b3a4>] pnpacpi_allocated_resource+0x67/0x22e
[ 0.236527] [<ffffffff8155b3a4>] pnpacpi_allocated_resource+0x67/0x22e
[ 0.236527] [<ffffffff8155b33d>] ? pnpacpi_type_resources+0x3f/0x3f
[ 0.236527] [<ffffffff8155b33d>] ? pnpacpi_type_resources+0x3f/0x3f
[ 0.236527] [<ffffffff8154b3ed>] acpi_walk_resource_buffer+0x48/0x80
[ 0.236527] [<ffffffff8154b3ed>] acpi_walk_resource_buffer+0x48/0x80
[ 0.236527] [<ffffffff8155b33d>] ? pnpacpi_type_resources+0x3f/0x3f
[ 0.236527] [<ffffffff8155b33d>] ? pnpacpi_type_resources+0x3f/0x3f
[ 0.236527] [<ffffffff8154b497>] acpi_walk_resources+0x72/0x8d
[ 0.236527] [<ffffffff8154b497>] acpi_walk_resources+0x72/0x8d
[ 0.236527] [<ffffffff8155b5c5>] pnpacpi_parse_allocated_resource+0x5a/0x82
[ 0.236527] [<ffffffff8155b5c5>] pnpacpi_parse_allocated_resource+0x5a/0x82
[ 0.236527] [<ffffffff820865cb>] pnpacpi_add_device_handler+0x180/0x21e
[ 0.236527] [<ffffffff820865cb>] pnpacpi_add_device_handler+0x180/0x21e
[ 0.236527] [<ffffffff81546e95>] acpi_ns_get_device_callback+0x13a/0x149
[ 0.236527] [<ffffffff81546e95>] acpi_ns_get_device_callback+0x13a/0x149
[ 0.236527] [<ffffffff810aea51>] ? up+0x34/0x39
[ 0.236527] [<ffffffff810aea51>] ? up+0x34/0x39
[ 0.236527] [<ffffffff81546cab>] acpi_ns_walk_namespace+0xda/0x18a
[ 0.236527] [<ffffffff81546cab>] acpi_ns_walk_namespace+0xda/0x18a
[ 0.236527] [<ffffffff81546d5b>] ? acpi_ns_walk_namespace+0x18a/0x18a
[ 0.236527] [<ffffffff81546d5b>] ? acpi_ns_walk_namespace+0x18a/0x18a
[ 0.236527] [<ffffffff82086669>] ? pnpacpi_add_device_handler+0x21e/0x21e
[ 0.236527] [<ffffffff82086669>] ? pnpacpi_add_device_handler+0x21e/0x21e
[ 0.236527] [<ffffffff8154730c>] acpi_get_devices+0x56/0x6c
[ 0.236527] [<ffffffff8154730c>] acpi_get_devices+0x56/0x6c
[ 0.236527] [<ffffffff8208644b>] ? ispnpidacpi+0x84/0x84
[ 0.236527] [<ffffffff8208644b>] ? ispnpidacpi+0x84/0x84
[ 0.236527] [<ffffffff820866bb>] pnpacpi_init+0x52/0x74
[ 0.236527] [<ffffffff820866bb>] pnpacpi_init+0x52/0x74
[ 0.236527] [<ffffffff8205d050>] do_one_initcall+0xe6/0x176
[ 0.236527] [<ffffffff8205d050>] do_one_initcall+0xe6/0x176
[ 0.236527] [<ffffffff8205d1d3>] kernel_init_freeable+0xf3/0x180
[ 0.236527] [<ffffffff8205d1d3>] kernel_init_freeable+0xf3/0x180
[ 0.236527] [<ffffffff8198d351>] ? rest_init+0x131/0x131
[ 0.236527] [<ffffffff8198d351>] ? rest_init+0x131/0x131
[ 0.236527] [<ffffffff8198d35a>] kernel_init+0x9/0xd0
[ 0.236527] [<ffffffff8198d35a>] kernel_init+0x9/0xd0
[ 0.236527] [<ffffffff819a023a>] ret_from_fork+0x7a/0xb0
[ 0.236527] [<ffffffff819a023a>] ret_from_fork+0x7a/0xb0
[ 0.236527] [<ffffffff8198d351>] ? rest_init+0x131/0x131
[ 0.236527] [<ffffffff8198d351>] ? rest_init+0x131/0x131
[ 0.236527] Code:
[ 0.236527] Code: 48 48 c7 c7 c7 c7 80 80 02 02 dd dd 81 81 48 48 6b 6b db db 14 14 49 49 03 03 9f 9f 80 80 95 95 14 14 82 82 45 45 85 85 f6 f6 41 41 0f 0f 95 95 c6 c6 45 45 85 85 ed ed 41 41 0f 0f 95 95 c5 c5 31 31 f6 f6 45 45 0f 0f b6 b6 f6 f6 e8 e8 0e 0e 88 88 97 97 00 00 <83> <83> 7b 7b 0c 0c 00 00 45 45 0f 0f b6 b6 ed ed 75 75 17 17 44 44 89 89 63 63 08 08 44 44 89 89 33 33 45 45 31 31 e4 e4 44 44
[ 0.236527] RIP
[ 0.236527] RIP [<ffffffff81023c1e>] mp_set_gsi_attr+0x6c/0xc0
[<ffffffff81023c1e>] mp_set_gsi_attr+0x6c/0xc0
[ 0.236527] RSP <ffff88001284fb08>
[ 0.236527] RSP <ffff88001284fb08>
[ 0.236527] CR2: 00000000000000ac
[ 0.236527] CR2: 00000000000000ac
[ 0.236527] ---[ end trace f4788ccc4af3e9af ]---
[ 0.236527] ---[ end trace f4788ccc4af3e9af ]---
git bisect start f7583d17c1181f394952659bdb04f635bb6abe18 ec6f34e5b552fb0a52e6aae1a5afbbb1605cc6cc --
git bisect bad d11b8889d23030180ec8fa21509d9f84b8b31640 # 23:25 0- 20 Merge 'btrfs/integration' into devel-lkp-ib04-smoke-201501222255
git bisect bad 7580f6230f1c5194103f2a713c3ae36a86d75081 # 23:31 0- 20 Merge 'tip/x86/apic' into devel-lkp-ib04-smoke-201501222255
git bisect good 4b99f8a4003883db713f3b62a16e8faf8d8288aa # 23:57 20+ 0 0day base guard for 'devel-lkp-ib04-smoke-201501222255'
git bisect good bfb050702990d6a2033d072cb2af583aee5c6fc5 # 00:15 20+ 0 x86/apic: Move x2apic code to one place
git bisect good 8686608336e11276d72d020cb0b67bee70d9a5cd # 00:28 20+ 0 x86/ioapic: Provide stub functions for IOAPIC%3Dn
git bisect bad 30b8b0066cafef274fc92462578ee346211ce7cb # 00:47 0- 20 init: Get rid of x86isms
git bisect good 35e4c6d30e6f69745d77afd5f63203ad440bed12 # 04:24 20+ 0 x86/apic: Sanitize ioapic handling
git bisect good e714a91f92ca59f7e71e7332b8ec2aa2944f629e # 04:33 20+ 0 x86/apic: Move apic_init_uniprocessor code
# first bad commit: [30b8b0066cafef274fc92462578ee346211ce7cb] init: Get rid of x86isms
git bisect good e714a91f92ca59f7e71e7332b8ec2aa2944f629e # 04:36 60+ 0 x86/apic: Move apic_init_uniprocessor code
# extra tests with DEBUG_INFO
git bisect good 30b8b0066cafef274fc92462578ee346211ce7cb # 04:49 60+ 0 init: Get rid of x86isms
# extra tests on HEAD of linux-devel/devel-lkp-ib04-smoke-201501222255
git bisect bad f7583d17c1181f394952659bdb04f635bb6abe18 # 04:49 0- 12 0day head guard for 'devel-lkp-ib04-smoke-201501222255'
# extra tests on tree/branch tip/x86/apic
git bisect bad 2f82c9dc608a03913acc04e990b31fec22b2c0b7 # 08:40 0- 52 x86/acpi: Make acpi_[un]register_gsi_ioapic() depend on CONFIG_X86_LOCAL_APIC
# extra tests on tree/branch tip/master
git bisect good 575b1177447b596fd64e0d5efc3f989104476f73 # 08:42 60+ 0 Merge branch 'linus'
# extra tests on tree/branch linus/master
git bisect good f8de05ca38b7bce4079b52002a6817e9582e3e01 # 11:39 60+ 0 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
# extra tests on tree/branch next/master
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
kvm=(
qemu-system-x86_64
-cpu kvm64
-enable-kvm
-kernel $kernel
-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-ivb41-121:20150123004628:x86_64-randconfig-ib0-01222027:3.19.0-rc4-00037-g30b8b00:174" of type "text/plain" (58128 bytes)
View attachment "config-3.19.0-rc4-00037-g30b8b00" of type "text/plain" (82802 bytes)
_______________________________________________
LKP mailing list
LKP@...ux.intel.com
Powered by blists - more mailing lists