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>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 30 Jul 2014 22:05:07 +0800
From:	Fengguang Wu <fengguang.wu@...el.com>
To:	Andy Lutomirski <luto@...capital.net>
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,kaslr] [ 0.000000] general protection fault: 0000 [#1] SMP
 DEBUG_PAGEALLOC

Greetings,

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

commit d07c7f1ed61789e175fa975134855be32263be2c
Author:     Andy Lutomirski <luto@...capital.net>
AuthorDate: Tue Jul 15 18:34:20 2014 -0700
Commit:     Andy Lutomirski <luto@...capital.net>
CommitDate: Wed Jul 16 10:01:27 2014 -0700

    x86,kaslr: Use MSR_KVM_GET_RNG_SEED for KASLR if available
    
    It's considerably better than any of the alternatives on KVM.
    
    Rather than reinventing all of the cpu feature query code, this fixes
    native_cpuid to work in PIC objects.
    
    I haven't combined it with boot/cpuflags.c's cpuid implementation:
    including asm/processor.h from boot/cpuflags.c results in a flood of
    unrelated errors, and fixing it might be messy.
    
    Signed-off-by: Andy Lutomirski <luto@...capital.net>

+------------------------------------------+------------+------------+
|                                          | c6f07a6360 | d07c7f1ed6 |
+------------------------------------------+------------+------------+
| boot_successes                           | 705        | 124        |
| boot_failures                            | 0          | 111        |
| general_protection_fault                 | 0          | 111        |
| RIP:setup_init_fpu_buf                   | 0          | 111        |
| Kernel_panic-not_syncing:Fatal_exception | 0          | 111        |
| backtrace:setup_init_fpu_buf             | 0          | 111        |
| backtrace:xstate_enable_boot_cpu         | 0          | 111        |
| backtrace:xsave_init                     | 0          | 111        |
| backtrace:fpu_init                       | 0          | 111        |
| backtrace:cpu_init                       | 0          | 111        |
| backtrace:trap_init                      | 0          | 111        |
+------------------------------------------+------------+------------+

[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: hung_task_panic=1 earlyprintk=ttyS0,115200 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=10 softlockup_panic=1 nmi_watchdog=panic  prompt_ramdisk=0 console=ttyS0,115200 console=tty0 vga=normal  root=/dev/ram0 rw link=/kbuild-tests/run-queue/kvm/x86_64-randconfig-s0-07170233/linux-devel:devel-hourly-2014071701:d07c7f1ed61789e175fa975134855be32263be2c:bisect-linux0/.vmlinuz-d07c7f1ed61789e175fa975134855be32263be2c-20140717182236-14-kbuild branch=linux-devel/devel-hourly-2014071701 BOOT_IMAGE=/kernel/x86_64-randconfig-s0-07170233/d07c7f1ed61789e175fa975134855be32263be2c/vmlinuz-3.16.0-rc5-00004-gd07c7f1 drbd.minor_count=8
[    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[    0.000000] general protection fault: 0000 [#1] SMP DEBUG_PAGEALLOC
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.16.0-rc5-00004-gd07c7f1 #1
[    0.000000] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[    0.000000] task: ffffffff81c10490 ti: ffffffff81c00000 task.ti: ffffffff81c00000
[    0.000000] RIP: 0010:[<ffffffff81e9757c>]  [<ffffffff81e9757c>] setup_init_fpu_buf+0x104/0x122
[    0.000000] RSP: 0000:ffffffff81c03e30  EFLAGS: 00010086
[    0.000000] RAX: 00000000ffffffff RBX: 0000000000000003 RCX: 0000000000000000
[    0.000000] RDX: 00000000ffffffff RSI: ffffffff81c03e34 RDI: ffff880013ff9000
[    0.000000] RBP: ffffffff81c03e68 R08: 0000000000000040 R09: ffffffff81c03e38
[    0.000000] R10: ffffffff81c03e3c R11: 0000000000000040 R12: ffffffff81c03e3c
[    0.000000] R13: ffffffff81c03e38 R14: ffffffff81c03e34 R15: ffffffff81c03e30
[    0.000000] FS:  0000000000000000(0000) GS:ffff880011000000(0000) knlGS:0000000000000000
[    0.000000] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.000000] CR2: ffff8800127ff000 CR3: 0000000001c0b000 CR4: 00000000000406a0
[    0.000000] Stack:
[    0.000000]  0000000000000000 0000000000000000 ffffffff81c03e80 ffffffff81c03e84
[    0.000000]  ffffffff81c03e7c ffffffff81c03e78 0000000000000000 ffffffff81c03ea8
[    0.000000]  ffffffff81e97711 0000000000000007 0000034000000340 0000000000000008
[    0.000000] Call Trace:
[    0.000000]  [<ffffffff81e97711>] xstate_enable_boot_cpu+0x177/0x1f6
[    0.000000]  [<ffffffff8100c13e>] xsave_init+0x26/0x28
[    0.000000]  [<ffffffff8100b0c2>] fpu_init+0x96/0x9d
[    0.000000]  [<ffffffff810111e9>] cpu_init+0x2bc/0x2f3
[    0.000000]  [<ffffffff81e93b06>] trap_init+0x543/0x5eb
[    0.000000]  [<ffffffff81e91c2f>] start_kernel+0x1e2/0x3e6
[    0.000000]  [<ffffffff81e917c2>] ? set_init_arg+0x55/0x55
[    0.000000]  [<ffffffff81e91120>] ? early_idt_handlers+0x120/0x120
[    0.000000]  [<ffffffff81e91471>] x86_64_start_reservations+0x2a/0x2c
[    0.000000]  [<ffffffff81e91561>] x86_64_start_kernel+0xee/0xfb
[    0.000000] Code: cc 48 8b 15 d7 a3 0d 00 48 63 c3 ff c3 89 0c 82 48 8b 15 c0 a3 0d 00 8b 4d c8 89 0c 82 eb bc 83 c8 ff 48 8b 3d 96 a3 0d 00 89 c2 <48> 0f ae 2f 48 8b 3d 89 a3 0d 00 89 c2 48 0f ae 27 58 5a 5b 41 
[    0.000000] RIP  [<ffffffff81e9757c>] setup_init_fpu_buf+0x104/0x122
[    0.000000]  RSP <ffffffff81c03e30>
[    0.000000] ---[ end trace 9ac76427702d2536 ]---
[    0.000000] Kernel panic - not syncing: Fatal exception

git bisect start 5e60c2af7a8bde5cfaee8ffd77cfc5b62db0a04e 1795cd9b3a91d4b5473c97f491d63892442212ab --
git bisect good bc1f2f93f68bccd988af7e6f73384860ac241b78  # 09:45    135+      0  Merge 'socfpga-nex/nios2-upstream' into devel-hourly-2014071701
git bisect  bad 0d7e1ca40ef16fce5297579121717fc793761b38  # 09:45      0-      8  Merge 'dynticks/nohz/sysidle' into devel-hourly-2014071701
git bisect good 33c13bf2487a42efa1ac9bcce5623ab74a375c93  # 09:48    135+      0  Merge 'ubifs/linux-next' into devel-hourly-2014071701
git bisect good 1032f73a32951d7f14ed7fdadedb0fef3c6d0f49  # 09:50    135+      0  Merge 'spi/for-next' into devel-hourly-2014071701
git bisect  bad 1f2859f0786338fe4c2a18ea518a5b2a2f1b5491  # 09:51      0-      2  Merge 'shawnguo/for-next' into devel-hourly-2014071701
git bisect good 73c47688a039158a6d395629d3ab32e606e13d1a  # 09:53    235+      0  Merge 'regulator/for-next' into devel-hourly-2014071701
git bisect  bad b973fdf5e6e6fe84b51f79919e5dc8574ae859da  # 09:53      0-      8  Merge 'luto/sync_rand_seed' into devel-hourly-2014071701
git bisect good 5778e65d5ca52bebbaa023e177d863e44f098e96  # 10:16    235+      0  random,x86: Add arch_get_slow_rng_u64
git bisect  bad d07c7f1ed61789e175fa975134855be32263be2c  # 10:23      0-     50  x86,kaslr: Use MSR_KVM_GET_RNG_SEED for KASLR if available
git bisect good c6f07a63601fbb36c09bf250b5538abb47b51e44  # 10:35    235+      0  random: Seed pools from arch_get_slow_rng_u64 at startup
# first bad commit: [d07c7f1ed61789e175fa975134855be32263be2c] x86,kaslr: Use MSR_KVM_GET_RNG_SEED for KASLR if available
git bisect good c6f07a63601fbb36c09bf250b5538abb47b51e44  # 10:47    705+      0  random: Seed pools from arch_get_slow_rng_u64 at startup
git bisect  bad 5e60c2af7a8bde5cfaee8ffd77cfc5b62db0a04e  # 10:47      0-      4  0day head guard for 'devel-hourly-2014071701'
git bisect good b6603fe574af289dbe9eb9fb4c540bca04f5a053  # 12:16    705+      0  Merge tag 'for-linus-20140716' of git://git.infradead.org/linux-mtd
git bisect good d4f4d1d45cd1b9aa60e61c2eab25a5d9a79a26f3  # 12:42    705+      0  Add linux-next specific files for 20140716


This script may reproduce the error.

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

kernel=$1

kvm=(
	qemu-system-x86_64
	-enable-kvm
	-cpu Haswell,+smep,+smap
	-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=10
	softlockup_panic=1
	nmi_watchdog=panic
	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-kbuild-1:20140717102049:x86_64-randconfig-s0-07170233:3.16.0-rc5-00004-gd07c7f1:1" of type "text/plain" (12619 bytes)

Download attachment "x86_64-randconfig-s0-07170233-5e60c2af7a8bde5cfaee8ffd77cfc5b62db0a04e-general-protection-fault:------81892.log" of type "application/octet-stream" (75499 bytes)

View attachment "config-3.16.0-rc5-00004-gd07c7f1" of type "text/plain" (83046 bytes)

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

Powered by blists - more mailing lists