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>] [day] [month] [year] [list]
Date:   Tue, 6 Jun 2017 19:08:00 +0800
From:   Yisheng Xie <xieyisheng1@...wei.com>
To:     <linux@...linux.org.uk>, <matthias.bgg@...il.com>,
        Al Viro <viro@...iv.linux.org.uk>
CC:     <linux-arm-kernel@...ts.infradead.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Hanjun Guo <guohanjun@...wei.com>, <wangfangpeng1@...wei.com>,
        Yisheng Xie <xieyisheng1@...wei.com>
Subject: [BUG] boot fail with ARM_LPAE and VMSPLIT_3G_OPT

Hi all,

I find when both enable CONFIG_ARM_LPAE=y and CONFIG_VMSPLIT_3G_OPT=y,
which mean use PAGE_OFFSET=0xB0000000 with ARM_LPE, the kernel will boot fail.
it stop after uncompressed:
--------
  Starting kernel ...

  Uart base = 0x20001000
  watchdog reg = 0x20013000
  dtb addr = 0x80840308
  Uncompressing Linux... done, booting the kernel.

--------

Meanwhile, I also tried to use CONFIG_VMSPLIT_2G/CONFIG_VMSPLIT_1G with ARM_LPAE,
it can boot successfully.

Is that a limitation of ARM_LPAE, which I not do get any info about this from spec?
If it do have the limitation, then we should be:
--------
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 4c1a35f..c0fcab6 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1416,6 +1416,7 @@ choice
        config VMSPLIT_3G
                bool "3G/1G user/kernel split"
        config VMSPLIT_3G_OPT
+               depends on !ARM_LPAE
                bool "3G/1G user/kernel split (for full 1G low memory)"
        config VMSPLIT_2G
                bool "2G/2G user/kernel split"



Any comment is more than welcome!

Thanks
Yisheng Xie

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ