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: <20210721075937.696811-1-alex@ghiti.fr>
Date:   Wed, 21 Jul 2021 09:59:34 +0200
From:   Alexandre Ghiti <alex@...ti.fr>
To:     Paul Walmsley <paul.walmsley@...ive.com>,
        Palmer Dabbelt <palmer@...belt.com>,
        Albert Ou <aou@...s.berkeley.edu>,
        linux-riscv@...ts.infradead.org, linux-kernel@...r.kernel.org
Cc:     Alexandre Ghiti <alex@...ti.fr>
Subject: [PATCH -fixes 0/3] Fixes regarding CONFIG_PHYS_RAM_BASE 

The following commits: 

7094e6acaf7a ("riscv: Simplify xip and !xip kernel address conversion macros")
9b79878ced8f ("riscv: Remove CONFIG_PHYS_RAM_BASE_FIXED")

expose CONFIG_PHYS_RAM_BASE for all kernel types whereas this value is
implementation-specific, so that breaks the kernel genericity.

The first patch in this patchset removes the usage of CONFIG_PHYS_RAM_BASE
by introducing a new global variable that holds this value.

The second patch reverts 9b79878ced8f ("riscv: Remove 
CONFIG_PHYS_RAM_BASE_FIXED").

The last patch is an optimization 'symmetrical' to the one introduced in
the first patch: this is not a fix, then it is not necessary to pull
this into -fixes.

Alexandre Ghiti (3):
  riscv: Get rid of CONFIG_PHYS_RAM_BASE in kernel physical address
    conversion
  Revert "riscv: Remove CONFIG_PHYS_RAM_BASE_FIXED"
  riscv: Optimize kernel virtual address conversion macro

 arch/riscv/Kconfig            |  6 ++++++
 arch/riscv/include/asm/page.h |  9 +++++----
 arch/riscv/mm/init.c          | 17 ++++++++++++-----
 3 files changed, 23 insertions(+), 9 deletions(-)

-- 
2.30.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ