[<prev] [next>] [day] [month] [year] [list]
Date: Fri, 12 Dec 2014 12:33:32 -0800
From: Fengguang Wu <fengguang.wu@...el.com>
To: Fenghua Yu <fenghua.yu@...el.com>
Cc: LKP <lkp@...org>, linux-kernel@...r.kernel.org
Subject: [x86-32] BUG: unable to handle kernel NULL pointer dereference at
0000000000000880
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
https://github.com/fyu1/linux.git test
commit da12e1dc716f77937779215f74bfbfe42c5b3709
Author: Fenghua Yu <fenghua.yu@...el.com>
AuthorDate: Wed Dec 10 14:00:44 2014 -0800
Commit: Fenghua Yu <fenghua.yu@...el.com>
CommitDate: Thu Dec 11 10:40:03 2014 -0800
x86-32: Allocate pgd in paravirt for XEN
In non-XEN or non-PAE case, still allocate 4KB pgd.
For other cases
Signed-off-by: Fenghua Yu <fenghua.yu@...el.com>
+------------------------------------------+------------+------------+------------+
| | 92a578b064 | da12e1dc71 | 4263d929cf |
+------------------------------------------+------------+------------+------------+
| boot_successes | 63 | 0 | 0 |
| boot_failures | 2 | 20 | 12 |
| BUG:kernel_boot_hang | 1 | | |
| BUG:kernel_test_crashed | 1 | | |
| BUG:unable_to_handle_kernel | 0 | 20 | 12 |
| Oops | 0 | 20 | 12 |
| RIP:pgd_alloc | 0 | 20 | 12 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 15 | 7 |
| backtrace:mm_init | 0 | 15 | 7 |
| backtrace:do_execve | 0 | 15 | 7 |
| backtrace:run_init_process | 0 | 15 | 7 |
+------------------------------------------+------------+------------+------------+
[ 42.296661] Write protecting the kernel read-only data: 28672k
[ 42.382977] Freeing unused kernel memory: 700K (ffff880005951000 - ffff880005a00000)
[ 42.563098] Freeing unused kernel memory: 988K (ffff880006109000 - ffff880006200000)
[ 42.773320] BUG: unable to handle kernel NULL pointer dereference at 0000000000000880
[ 42.774231] IP: [<ffffffff84644a52>] pgd_alloc+0x52/0x1f0
[ 42.774231] PGD 0
[ 42.774231] Oops: 0002 [#1] PREEMPT
[ 42.774231] CPU: 0 PID: 1 Comm: swapper Not tainted 3.18.0-gda12e1d #29
[ 42.774231] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014
[ 42.774231] task: ffff880012458000 ti: ffff880012460000 task.ti: ffff880012460000
[ 42.774231] RIP: 0010:[<ffffffff84644a52>] [<ffffffff84644a52>] pgd_alloc+0x52/0x1f0
[ 42.774231] RSP: 0000:ffff880012463e78 EFLAGS: 00010293
[ 42.774231] RAX: 000000000664e067 RBX: 0000000000000000 RCX: fffffffffffffff8
[ 42.774231] RDX: 0000000080000000 RSI: ffffffff8620e880 RDI: 0000000000000888
[ 42.774231] RBP: ffff880012463e88 R08: ffffffff85f50f13 R09: ffff880011ff2300
[ 42.774231] R10: 0000000000000090 R11: 0000000000000000 R12: ffff880013348000
[ 42.774231] R13: ffffffff862151c0 R14: ffffffff86215080 R15: 00000000132c5a00
[ 42.774231] FS: 0000000000000000(0000) GS:ffffffff8621f000(0000) knlGS:0000000000000000
[ 42.774231] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 42.774231] CR2: 0000000000000880 CR3: 000000000620e000 CR4: 00000000000006f0
[ 42.774231] Stack:
[ 42.774231] ffff880013348000 ffff880012458000 ffff880012463ea8 ffffffff8469bff9
[ 42.774231] ffff880013351000 ffff8800132c5900 ffff880012463eb8 ffffffff8469c2cb
[ 42.774231] ffff880012463f28 ffffffff84762920 ffff880012463f08 ffffffff847654e9
[ 42.774231] Call Trace:
[ 42.774231] [<ffffffff8469bff9>] mm_init+0x139/0x1b0
[ 42.774231] [<ffffffff8469c2cb>] mm_alloc+0x5b/0x70
[ 42.774231] [<ffffffff84762920>] do_execve+0x1e0/0x5f0
[ 42.774231] [<ffffffff847654e9>] ? getname_kernel+0x39/0x80
[ 42.774231] [<ffffffff8594e607>] ? bad_gs+0x265/0x81e
[ 42.774231] [<ffffffff85927fd0>] ? rest_init+0x80/0x80
[ 42.774231] [<ffffffff84602026>] run_init_process+0x26/0x30
[ 42.774231] [<ffffffff85928008>] kernel_init+0x38/0xf0
[ 42.774231] [<ffffffff8594c7ba>] ret_from_fork+0x7a/0xb0
[ 42.774231] [<ffffffff85927fd0>] ? rest_init+0x80/0x80
[ 42.774231] Code: 79 07 00 48 8b 05 4f 9e bc 01 48 8d bb 88 08 00 00 48 8d 8b 80 08 00 00 48 c7 c6 80 e8 20 86 ba 00 00 00 80 48 83 e7 f8 48 29 f9 <48> 89 83 80 08 00 00 48 8b 05 98 a5 bc 01 48 29 ce 81 c1 80 07
[ 42.774231] RIP [<ffffffff84644a52>] pgd_alloc+0x52/0x1f0
[ 42.774231] RSP <ffff880012463e78>
[ 42.774231] CR2: 0000000000000880
[ 42.774231] ---[ end trace 486b1714a42d9464 ]---
[ 42.774231] Kernel panic - not syncing: Fatal exception
git bisect start 4263d929cffaef10489f2e8077a2a0d0fdff4701 b2776bf7149bddd1f4161f14f79520f17fc1d71d --
git bisect bad b248a1a8129e68ec740e7d70af6b97ccfa0eea49 # 03:08 0- 1 Merge 'cgroup/tmp' into devel-lkp-nhm1-smoke-201412130236
git bisect good 2a54451092753dbe3f345ca624c0239af3ab4fe2 # 03:24 20+ 0 Merge 'microblaze/xnext/fpga-v4' into devel-lkp-nhm1-smoke-201412130236
git bisect good 6464a271776a1650eda1b52a5b98f9fc40e497af # 03:32 20+ 0 Merge 'pm/master' into devel-lkp-nhm1-smoke-201412130236
git bisect bad 33e2b62d1e5656f0ff104ea405191dcd2be9add1 # 03:36 0- 1 Merge 'fenghua/test' into devel-lkp-nhm1-smoke-201412130236
git bisect bad 2b0da4faea14f23879f9ca704c11f763129a1283 # 03:43 0- 3 x86-32: Different pgd allocation for Xen Dom0 and DomU in PAE mode
git bisect bad da12e1dc716f77937779215f74bfbfe42c5b3709 # 03:54 0- 20 x86-32: Allocate pgd in paravirt for XEN
# first bad commit: [da12e1dc716f77937779215f74bfbfe42c5b3709] x86-32: Allocate pgd in paravirt for XEN
git bisect good 92a578b064d0227a3a7fbbdb9e29dbab7f8d400e # 03:59 60+ 2 Merge tag 'pm+acpi-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
# extra tests on HEAD of linux-devel/devel-lkp-nhm1-smoke-201412130236
git bisect bad 4263d929cffaef10489f2e8077a2a0d0fdff4701 # 03:59 0- 12 0day head guard for 'devel-lkp-nhm1-smoke-201412130236'
# extra tests on tree/branch fenghua/test
git bisect bad 2b0da4faea14f23879f9ca704c11f763129a1283 # 03:59 0- 20 x86-32: Different pgd allocation for Xen Dom0 and DomU in PAE mode
# extra tests on tree/branch linus/master
git bisect good 6ce4436c9cbe903af935291aa219fd6f4c85722d # 04:08 60+ 0 Merge tag 'please-pull-morepstore' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux
# extra tests on tree/branch next/master
git bisect good f4aec88d2134e8ace530be28db614e383961b9c8 # 04:13 60+ 0 Add linux-next specific files for 20141212
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=quantal-core-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 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-client8-16:20141213035415:x86_64-randconfig-n0-12082301:3.18.0-gda12e1d:29" of type "text/plain" (31895 bytes)
_______________________________________________
LKP mailing list
LKP@...ux.intel.com
Powered by blists - more mailing lists