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: <20241026171441.3047904-1-samuel.holland@sifive.com>
Date: Sat, 26 Oct 2024 10:13:52 -0700
From: Samuel Holland <samuel.holland@...ive.com>
To: Palmer Dabbelt <palmer@...belt.com>,
	linux-kernel@...r.kernel.org,
	linux-riscv@...ts.infradead.org
Cc: Andrew Morton <akpm@...ux-foundation.org>,
	Arnd Bergmann <arnd@...db.de>,
	Alexandre Ghiti <alexghiti@...osinc.com>,
	Samuel Holland <samuel.holland@...ive.com>
Subject: [PATCH 0/6] riscv: Relocatable NOMMU kernels

Currently, RISC-V NOMMU kernels are linked at CONFIG_PAGE_OFFSET, and
since they are not relocatable, must be loaded at this address as well.
CONFIG_PAGE_OFFSET is not a user-visible Kconfig option, so its value is
not obvious, and users must patch the kernel source if they want to load
it at a different address.

Make NOMMU kernels more portable by making them relocatable by default.
This allows a single kernel binary to work when loaded at any address.


Samuel Holland (6):
  riscv: Remove duplicate CONFIG_PAGE_OFFSET definition
  riscv: Allow NOMMU kernels to access all of RAM
  riscv: Support CONFIG_RELOCATABLE on NOMMU
  asm-generic: Always define Elf_Rel and Elf_Rela
  riscv: Support CONFIG_RELOCATABLE on riscv32
  riscv: Remove CONFIG_PAGE_OFFSET

 arch/riscv/Kconfig               | 10 +---
 arch/riscv/Makefile              |  1 -
 arch/riscv/include/asm/page.h    | 27 ++++-----
 arch/riscv/include/asm/pgtable.h |  6 +-
 arch/riscv/mm/init.c             | 97 ++++++++++++++++----------------
 include/asm-generic/module.h     |  8 ---
 6 files changed, 68 insertions(+), 81 deletions(-)

-- 
2.45.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ