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>] [day] [month] [year] [list]
Date:	Tue, 30 Sep 2014 15:57:51 +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, xen-devel@...ts.xenproject.org
Subject: [x86_64,vsyscall] Kernel panic - not syncing: Attempted to kill
 init! exitcode=0x0000000b

Hi Andy,

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

git://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git x86/vsyscall

commit caae204be184a575af2c02b837d818278f921323
Author:     Andy Lutomirski <luto@...capital.net>
AuthorDate: Mon Jun 16 18:50:12 2014 -0700
Commit:     Andy Lutomirski <luto@...capital.net>
CommitDate: Tue Sep 23 10:02:10 2014 -0700

    x86_64,vsyscall: Make vsyscall emulation configurable
    
    This adds CONFIG_X86_VSYSCALL_EMULATION, guarded by CONFIG_EXPERT.
    Turning it off completely disables vsyscall emulation, saving ~3.5k
    for vsyscall_64.c, 4k for vsyscall_emu_64.S (the fake vsyscall
    page), some tiny amount of core mm code that supports a gate area,
    and possibly 4k for a wasted pagetable.  The latter is because the
    vsyscall addresses are misaligned and fit poorly in the fixmap.
    
    Signed-off-by: Andy Lutomirski <luto@...capital.net>

+-----------------------------------------------------------+------------+------------+------------------+
|                                                           | 2df87bdfa6 | caae204be1 | v3.17-rc6_092402 |
+-----------------------------------------------------------+------------+------------+------------------+
| boot_successes                                            | 156        | 27         | 47               |
| boot_failures                                             | 0          | 25         | 264              |
| Kernel_panic-not_syncing:Attempted_to_kill_init_exitcode= | 0          | 25         | 264              |
+-----------------------------------------------------------+------------+------------+------------------+

[    5.248382] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
[    5.356741] init[1]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007fff5e2eecf8 error 15
[    5.357984] init[1]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007fff5e2ee1b8 error 15
[    5.359253] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    5.359253] 
[    5.360439] CPU: 0 PID: 1 Comm: init Not tainted 3.17.0-rc1-00169-gcaae204 #1
[    5.361364] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[    5.362114]  0000000000000000 ffff88001284fcb0 ffffffff814a2ce5 ffff88001284fd30
[    5.363152]  ffffffff814a1c51 0000000000000010 ffff88001284fd40 ffff88001284fcd8
[    5.363611]  ffff88001284fd78 000000000000000b 0000000000000000 ffff880012848740
[    5.363611] Call Trace:
[    5.363611]  [<ffffffff814a2ce5>] dump_stack+0x19/0x1b
[    5.363611]  [<ffffffff814a1c51>] panic+0xc4/0x1ef
[    5.363611]  [<ffffffff81090d2c>] do_exit+0x3bb/0x81e
[    5.363611]  [<ffffffff811198c5>] ? __kmem_cache_free+0x11/0x2e
[    5.363611]  [<ffffffff8111992c>] ? kmem_cache_free+0x31/0x33
[    5.363611]  [<ffffffff810962eb>] ? __sigqueue_free+0x33/0x36
[    5.363611]  [<ffffffff81091e90>] do_group_exit+0x45/0xbf
[    5.363611]  [<ffffffff81098df9>] get_signal+0x53d/0x568
[    5.363611]  [<ffffffff81043039>] ? bad_area_nosemaphore+0xe/0x10
[    5.363611]  [<ffffffff81028218>] do_signal+0x23/0x885
[    5.363611]  [<ffffffff814a0000>] ? free_area_init_node+0xac/0x36e
[    5.363611]  [<ffffffff81028a96>] do_notify_resume+0x1c/0x75
[    5.363611]  [<ffffffff814a927b>] retint_signal+0x48/0x8d
[    5.363611] Kernel Offset: 0x0 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffff9fffffff)

Elapsed time: 10

git bisect start ddc5057b07ef7126431d5df5f5b176154896f560 0f33be009b89d2268e94194dc4fd01a7851b6d51 --
git bisect good ca66f746334c4a3abf469f758c9b0633987bc876  # 19:56     21+      0  Merge 'linuxtv-media/devel-3.17-rc6' into devel-hourly-2014092402
git bisect good 46eba17a40aaafce6a606447c1fba1f316c331f7  # 20:09     21+      0  Merge 'xen-tip/devel/for-linus-3.18' into devel-hourly-2014092402
git bisect good c68691d04897b6ecdeea62d994db0442388df6ff  # 20:59     21+      0  Merge 'pinctrl/devel' into devel-hourly-2014092402
git bisect  bad 4c8c7dc7eaee7651e7f551879bcbf4bf47accc3d  # 21:24     16-      5  Merge 'kgene-samsung/for-next' into devel-hourly-2014092402
git bisect good 351b6700979b25afd3bf9bac32ebad2d0d89a696  # 21:34     52+      0  Merge 'pinctrl/for-next' into devel-hourly-2014092402
git bisect  bad 34e91dce5b5a0df1dea8628d0ab8a349128a5d78  # 21:46      0-     52  Merge 'luto/x86/vsyscall' into devel-hourly-2014092402
git bisect good fcfee6f8749af14d96373a9e2656354ad0b95499  # 21:59     52+      0  x86_64,vdso: Remove jiffies from the vvar page
git bisect good 2dee11c0eb4eb9a767fa87764c91fda18d14eff1  # 22:07     52+      0  x86_64,vsyscall: Turn vsyscalls all the way off when vsyscall=none
git bisect  bad caae204be184a575af2c02b837d818278f921323  # 22:14      0-      2  x86_64,vsyscall: Make vsyscall emulation configurable
git bisect good 2df87bdfa6ac9076ed80bb83764b8b0f3ec396bd  # 22:22     52+      0  x86_64,vsyscall: Rewrite comment and clean up headers in vsyscall code
# first bad commit: [caae204be184a575af2c02b837d818278f921323] x86_64,vsyscall: Make vsyscall emulation configurable
git bisect good 2df87bdfa6ac9076ed80bb83764b8b0f3ec396bd  # 22:24    156+      0  x86_64,vsyscall: Rewrite comment and clean up headers in vsyscall code
git bisect  bad ddc5057b07ef7126431d5df5f5b176154896f560  # 22:24      0-    264  0day head guard for 'devel-hourly-2014092402'
git bisect good f4cb707e7ad9727a046b463232f2de166e327d3e  # 23:06    156+      0  Merge tag 'pm+acpi-3.17-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
git bisect good 4d8426f9ac601db2a64fa7be64051d02b9c9fe01  # 23:22    156+      0  Add linux-next specific files for 20140926


This script may reproduce the error.

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

kernel=$1
initrd=yocto-minimal-x86_64.cgz

wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/raw/master/initrd/$initrd

kvm=(
	qemu-system-x86_64
	-enable-kvm
	-cpu Haswell,+smep,+smap
	-kernel $kernel
	-initrd $initrd
	-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-kbuild-29:20140926221247:x86_64-randconfig-s1-09240351:3.17.0-rc1-00169-gcaae204:1" of type "text/plain" (33069 bytes)

Download attachment "x86_64-randconfig-s1-09240351-ddc5057b07ef7126431d5df5f5b176154896f560-Kernel-panic---not-syncing:-Attempted-to-kill----exitcode--92847.log" of type "application/octet-stream" (83516 bytes)

View attachment "config-3.17.0-rc1-00169-gcaae204" of type "text/plain" (85330 bytes)

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ