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]
Message-ID: <20140114133125.GB26942@localhost>
Date:	Tue, 14 Jan 2014 21:31:25 +0800
From:	Fengguang Wu <fengguang.wu@...el.com>
To:	Kees Cook <keescook@...omium.org>
Cc:	"H. Peter Anvin" <hpa@...ux.intel.com>,
	linux-kernel@...r.kernel.org
Subject: [x86, kaslr] BUG: kernel boot hang

Greetings,

I got the below dmesg and the first bad commit is

commit 82fa9637a2ba285bcc7c5050c73010b2c1b3d803
Author:     Kees Cook <keescook@...omium.org>
AuthorDate: Thu Oct 10 17:18:16 2013 -0700
Commit:     H. Peter Anvin <hpa@...ux.intel.com>
CommitDate: Sun Oct 13 03:12:19 2013 -0700

    x86, kaslr: Select random position from e820 maps
    
    Counts available alignment positions across all e820 maps, and chooses
    one randomly for the new kernel base address, making sure not to collide
    with unsafe memory areas.
    
    Signed-off-by: Kees Cook <keescook@...omium.org>
    Link: http://lkml.kernel.org/r/1381450698-28710-5-git-send-email-keescook@chromium.org
    Signed-off-by: H. Peter Anvin <hpa@...ux.intel.com>

Note that there are many other warning/errors and it's not very
reproducible, so this report might be wrong.

===================================================
PARENT COMMIT NOT CLEAN. LOOK OUT FOR WRONG BISECT!
===================================================

+-----------------------------------------------------------+--------------+--------------+
|                                                           | 5bfce5ef55cb | 1955a14a5ba6 |
+-----------------------------------------------------------+--------------+--------------+
| boot_successes                                            | 3948         | 0            |
| boot_failures                                             | 52           | 89           |
| page_allocation_failure:order:,mode                       | 48           | 2            |
| Out_of_memory:Kill_process                                | 7            |              |
| BUG:kernel_early_hang_without_any_printk_output           | 1            |              |
| BUG:soft_lockup-CPU_stuck_for_s                           | 1            |              |
| WARNING:CPU:PID:at_kernel/locking/lockdep.c:check_flags() | 0            | 85           |
| general_protection_fault:SMP_SMP                          | 0            | 1            |
| RIP:__lock_acquire                                        | 0            | 1            |
| Kernel_panic-not_syncing:Fatal_exception                  | 0            | 1            |
| BUG:kernel_boot_hang                                      | 0            | 2            |
| BUG:kernel_boot_crashed                                   | 0            | 1            |
+-----------------------------------------------------------+--------------+--------------+

The last dmesg is

[    0.803796] Initramfs unpacking failed: junk in compressed archive
[    0.803796] Initramfs unpacking failed: junk in compressed archive

or in some cases

[    0.000000] Base memory trampoline at [ffff880000099000] 99000 size 24576
[    0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
[    0.000000]  [mem 0x00000000-0x000fffff] page 4k
[    0.000000] BRK [0x07886000, 0x07886fff] PGTABLE
[    0.000000] BRK [0x07887000, 0x07887fff] PGTABLE
[    0.000000] BRK [0x07888000, 0x07888fff] PGTABLE
PANIC: early exception 0e rip 10:ffffffff86204c6e error 0 cr2 ffffffff81972b28
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.12.0-rc4-00008-g6e6a493 #614
PANIC: early exception 0e rip 10:ffffffff86204f22 error 0 cr2 ffffffff81972b28

git bisect start 7ddcdb2ccdcae0838a39b1bf7b0773c5540da847 v3.12 --
git bisect good c537aba00e3f1df8ce6c7c9fcb98b82c0c2d1d2c  # 06:55    790+     10  Merge git://git.kvack.org/~bcrl/aio-next
git bisect good a707271a8180eb60edc3bd9dc3cb425c7547fd76  # 11:26    790+      9  Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
git bisect good e0e8fc3148e0e142079611f82089258fb3b46f00  # 16:33    790+     16  Merge remote-tracking branch 'thermal/next'
git bisect good f7f483b7c64695af05e1ce58cc23001631281fe4  # 21:08    790+     14  Merge remote-tracking branch 'vfio/next'
git bisect  bad 19eee7a401b4a2316f1ebcdc7e66b44d6d7ea963  # 21:39     36-      1  Merge remote-tracking branch 'leds/for-next'
git bisect  bad aa3a911ccf01099f146cda01793bad03d970bc0f  # 21:56     54-      1  Merge remote-tracking branch 'edac-amd/for-next'
git bisect good a11acbbed1bf2fd3204027d2b2ac6246daf14445  # 00:27    790+      8  Merge remote-tracking branch 'dt-rh/for-next'
git bisect  bad b8057368d6c29db538ff259266a4375200c3d029  # 01:09     66-      3  Merge remote-tracking branch 'tip/auto-latest'
git bisect good 592410b1ba9daf61c3bde92762a43eac58000850  # 06:02    790+     15  Merge remote-tracking branch 'spi/for-next'
git bisect good fa6e8e5f7cbf85f364ebd5a90525dbbe9de2083b  # 11:29    790+      9  Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
git bisect good 230d47dedb5763acfaf6842c85d9d24f97fc3ee2  # 16:02    790+     16  Merge branch 'sched/core'
git bisect good c0ffb3570ae6e152490abcf1a0241e0924db3176  # 20:38    790+     14  manual merge of x86/efi
git bisect  bad 88ec17ea98ebac2a6306bc14810046493c96e27f  # 21:09    102-      3  Merge branch 'x86/kaslr'
git bisect good 939379960e3fcd81cb8b709b67afe4c7f097dcc8  # 02:19   1000+     14  Merge branch 'x86/efi-kexec'
git bisect  bad 6e6a4932b0f569b1a5bb4fcbf5dde1b1a42f01bb  # 02:38      0-      3  x86, boot: Rename get_flags() and check_flags() to *_cpuflags()
git bisect good 5bfce5ef55cbe78ee2ee6e97f2e26a8a582008f3  # 07:35   1000+     11  x86, kaslr: Provide randomness functions
git bisect  bad f32360ef6608434a032dc7ad262d45e9693c27f3  # 07:48      0-      4  x86, kaslr: Report kernel offset on panic
git bisect  bad 82fa9637a2ba285bcc7c5050c73010b2c1b3d803  # 08:00      1-      2  x86, kaslr: Select random position from e820 maps
# first bad commit: [82fa9637a2ba285bcc7c5050c73010b2c1b3d803] x86, kaslr: Select random position from e820 maps
git bisect good 5bfce5ef55cbe78ee2ee6e97f2e26a8a582008f3  # 20:21   3000+     52  x86, kaslr: Provide randomness functions
git bisect  bad 1955a14a5ba6e3c3b11117812d11dc550ccc37ae  # 20:21      0-     89  Add linux-next specific files for 20140110
git bisect good a815a5e98e7bf4d75b2515fd08f464ca24f52c85  # 08:40   3000+   3000  Revert "x86, kaslr: Select random position from e820 maps"
git bisect good a6da83f98267bc8ee4e34aa899169991eb0ceb93  # 19:21   3000+     41  Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
git bisect  bad cf1c1d193e37b9f79eedddc6bbd71b9f5f9751e5  # 19:51     99-    100  Add linux-next specific files for 20140114

Thanks,
Fengguang

View attachment "dmesg-quantal-xgwo-5:20140110182546:x86_64-randconfig-s1-01101738:3.13.0-rc7-next-20140110-08732-g1955a14:1" of type "text/plain" (61132 bytes)

Download attachment "x86_64-randconfig-s1-01101738-1955a14a5ba6e3c3b11117812d11dc550ccc37ae-BUG:-kernel-boot-hang-21372.log" of type "application/octet-stream" (61931 bytes)

View attachment "config-3.13.0-rc7-next-20140110-08732-g1955a14" of type "text/plain" (76529 bytes)

View attachment "dmesg-yocto-xian-38:20140113065540:x86_64-randconfig-s1-01101738:3.12.0-rc4-00008-g6e6a493:614" of type "text/plain" (4515 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ