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>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 29 Apr 2015 21:28:17 +0800
From:	Fengguang Wu <fengguang.wu@...el.com>
To:	Mel Gorman <mgorman@...e.de>
Cc:	fengguang.wu@...el.com, LKP <lkp@...org>, linux-mm@...ck.org,
	linux-kernel@...r.kernel.org
Subject: [mm/meminit] PANIC: early exception 06 rip 10:ffffffff811bfa9a error
 0 cr2 ffff88000fbff000

Greetings,

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

git://git.kernel.org/pub/scm/linux/kernel/git/mel/linux-balancenuma mm-deferred-meminit-v6r1

commit 285c36ab5b3e59865a0f4d79f4c1758455e684f7
Author:     Mel Gorman <mgorman@...e.de>
AuthorDate: Mon Sep 29 14:54:01 2014 +0100
Commit:     Mel Gorman <mgorman@...e.de>
CommitDate: Wed Apr 22 19:48:15 2015 +0100

    mm: meminit: Reduce number of times pageblocks are set during struct page init
    
    During parallel sturct page initialisation, ranges are checked for every
    PFN unnecessarily which increases boot times. This patch alters when the
    ranges are checked.
    
    Signed-off-by: Mel Gorman <mgorman@...e.de>

+------------------------------------------------+------------+------------+------------+
|                                                | 47391c7fae | 285c36ab5b | 87531bc9b8 |
+------------------------------------------------+------------+------------+------------+
| boot_successes                                 | 80         | 0          | 0          |
| boot_failures                                  | 2          | 20         | 12         |
| IP-Config:Auto-configuration_of_network_failed | 2          |            |            |
| PANIC:early_exception                          | 0          | 20         | 12         |
| BUG:kernel_boot_hang                           | 0          | 20         | 12         |
| backtrace:set_pageblock_migratetype            | 0          | 20         | 12         |
| backtrace:memmap_init_zone                     | 0          | 20         | 12         |
| backtrace:free_area_init_node                  | 0          | 20         | 12         |
| backtrace:free_area_init_nodes                 | 0          | 20         | 12         |
| backtrace:zone_sizes_init                      | 0          | 20         | 12         |
| backtrace:paging_init                          | 0          | 20         | 12         |
+------------------------------------------------+------------+------------+------------+

[    0.000000] page:ffffea0000040000 count:0 mapcount:1 mapping:          (null) index:0x0
[    0.000000] flags: 0x0()
[    0.000000] page dumped because: VM_BUG_ON_PAGE(!zone_spans_pfn(zone, pfn))
PANIC: early exception 06 rip 10:ffffffff811bfa9a error 0 cr2 ffff88000fbff000
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.0.0-00012-g285c36a #5
[    0.000000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014
[    0.000000]  0000000000000002 ffffffff82003c40 ffffffff81937569 00000000000003f8
[    0.000000]  ffffea0000040000 ffffffff82003d08 ffffffff821ca1b0 5f4e4f5f4755425f
[    0.000000]  0000000000000001 0000000000000000 0000000000000001 0000000000000001
[    0.000000] Call Trace:
[    0.000000]  [<ffffffff81937569>] dump_stack+0x4c/0x65
[    0.000000]  [<ffffffff821ca1b0>] early_idt_handler+0x90/0xb7
[    0.000000]  [<ffffffff811bfa9a>] ? set_pfnblock_flags_mask+0x12a/0x130
[    0.000000]  [<ffffffff811bfa9a>] ? set_pfnblock_flags_mask+0x12a/0x130
[    0.000000]  [<ffffffff811bfb0f>] set_pageblock_migratetype+0x6f/0x80
[    0.000000]  [<ffffffff82222386>] memmap_init_zone+0x97/0x160
[    0.000000]  [<ffffffff82222826>] free_area_init_node+0x3d7/0x3fe
[    0.000000]  [<ffffffff821ecc4f>] free_area_init_nodes+0x586/0x603
[    0.000000]  [<ffffffff821dd96d>] zone_sizes_init+0x50/0x52
[    0.000000]  [<ffffffff821dde05>] paging_init+0x28/0x2a
[    0.000000]  [<ffffffff821ce73c>] setup_arch+0x84b/0x8f8
[    0.000000]  [<ffffffff821ca120>] ? early_idt_handlers+0x120/0x120
[    0.000000]  [<ffffffff821cabb9>] start_kernel+0xa5/0x4c0
[    0.000000]  [<ffffffff821ca120>] ? early_idt_handlers+0x120/0x120
[    0.000000]  [<ffffffff821ca4b3>] x86_64_start_reservations+0x2a/0x2c
[    0.000000]  [<ffffffff821ca602>] x86_64_start_kernel+0x14d/0x15c
[    0.000000] RIP 0x1

BUG: kernel boot hang
Elapsed time: 305
qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap -kernel /kernel/x86_64-randconfig-ib0-04102124/285c36ab5b3e59865a0f4d79f4c1758455e684f7/vmlinuz-4.0.0-00012-g285c36a -append 'hung_task_panic=1 earlyprintk=ttyS0,115200 rd.udev.log-priority=err systemd.log_target=journal systemd.log_level=warning 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 link=/kbuild-tests/run-queue/kvm/x86_64-randconfig-ib0-04102124/linux-devel:devel-lkp-ib04-smoke-201504230337:285c36ab5b3e59865a0f4d79f4c1758455e684f7:bisect-linux/.vmlinuz-285c36ab5b3e59865a0f4d79f4c1758455e684f7-20150428075714-16-kbuild branch=linux-devel/devel-lkp-ib04-smoke-201504230337 BOOT_IMAGE=/kernel/x86_64-randconfig-ib0-04102124/285c36ab5b3e59865a0f4d79f4c1758455e684f7/vmlinuz-4.0.0-00012-g285c36a drbd.minor_count=8'  -initrd /kernel-tests/initrd/yocto-minimal-x86_64.cgz -m 256 -smp 1 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -drive file=/fs/sdd1/disk0-yocto-kbuild-1,media=disk,if=virtio -drive file=/fs/sdd1/disk1-yocto-kbuild-1,media=disk,if=virtio -drive file=/fs/sdd1/disk2-yocto-kbuild-1,media=disk,if=virtio -drive file=/fs/sdd1/disk3-yocto-kbuild-1,media=disk,if=virtio -drive file=/fs/sdd1/disk4-yocto-kbuild-1,media=disk,if=virtio -drive file=/fs/sdd1/disk5-yocto-kbuild-1,media=disk,if=virtio -drive file=/fs/sdd1/disk6-yocto-kbuild-1,media=disk,if=virtio -pidfile /dev/shm/kboot/pid-yocto-kbuild-1 -serial file:/dev/shm/kboot/serial-yocto-kbuild-1 -daemonize -display none -monitor null 

git bisect start 87531bc9b8e14e27cafc72113e23a3dd8e329599 39a8804455fb23f09157341d3ba7db6d7ae6ee76 --
git bisect good ea9ffe871553dced04d763bf2c9495e9ff1aac94  # 03:50     20+      2  Merge 'x86-mpx/mpx-v20' into devel-lkp-ib04-smoke-201504230337
git bisect  bad 89182f2be5924cad5707d8210c574c6857d4140c  # 04:07      0-      3  Merge 'balancenuma/mm-deferred-meminit-v6r1' into devel-lkp-ib04-smoke-201504230337
git bisect good 3a7731f195d77f95fa36918225bcd5823944923a  # 06:58     20+      1  mm: meminit: Only a subset of struct pages if CONFIG_DEFERRED_STRUCT_PAGE_INIT is set
git bisect good 13c2e6e0490b55f5e2bda3a0461d112eade2d87a  # 07:51     20+      0  x86: mm: Enable deferred struct page initialisation on x86-64
git bisect  bad 285c36ab5b3e59865a0f4d79f4c1758455e684f7  # 08:03      0-      2  mm: meminit: Reduce number of times pageblocks are set during struct page init
git bisect good 47391c7fae3df9cb332311c9fdd27917784496c5  # 09:05     20+      2  mm: meminit: Free pages in large chunks where possible
# first bad commit: [285c36ab5b3e59865a0f4d79f4c1758455e684f7] mm: meminit: Reduce number of times pageblocks are set during struct page init
git bisect good 47391c7fae3df9cb332311c9fdd27917784496c5  # 12:37     60+      2  mm: meminit: Free pages in large chunks where possible
# extra tests with DEBUG_INFO
# extra tests on HEAD of linux-devel/devel-lkp-ib04-smoke-201504230337
git bisect  bad 87531bc9b8e14e27cafc72113e23a3dd8e329599  # 13:33      0-     12  0day head guard for 'devel-lkp-ib04-smoke-201504230337'
# extra tests on tree/branch balancenuma/mm-deferred-meminit-v6r1
git bisect  bad 00f83fc5a6488216e3eabdb8fb34f72177c89beb  # 15:12      0-      1  mm: meminit: Remove mminit_verify_page_links
# extra tests with first bad commit reverted
# extra tests on tree/branch linus/master
git bisect good 2decb2682f80759f631c8332f9a2a34a02150a03  # 23:44     60+      0  Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
# extra tests on tree/branch next/master
git bisect good 63382678150626a85e694031769496d58245d430  # 02:20     60+      0  Add linux-next specific files for 20150428


This script may reproduce the error.

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

kernel=$1

kvm=(
	qemu-system-x86_64
	-enable-kvm
	-cpu Haswell,+smep,+smap
	-kernel $kernel
	-m 256
	-smp 1
	-device e1000,netdev=net0
	-netdev user,id=net0
	-boot order=nc
	-no-reboot
	-watchdog i6300esb
	-rtc base=localtime
	-serial stdio
	-display none
	-monitor null 
)

append=(
	hung_task_panic=1
	earlyprintk=ttyS0,115200
	rd.udev.log-priority=err
	systemd.log_target=journal
	systemd.log_level=warning
	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-kbuild-1:20150428002112:x86_64-randconfig-ib0-04102124:4.0.0-00012-g285c36a:5" of type "text/plain" (9240 bytes)

Powered by blists - more mailing lists