[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251120103854.1630306-1-daniel@thingy.jp>
Date: Thu, 20 Nov 2025 19:38:52 +0900
From: Daniel Palmer <daniel@...ngy.jp>
To: geert@...ux-m68k.org,
schmitzmic@...il.com,
gerg@...nel.org,
linux-m68k@...ts.linux-m68k.org
Cc: linux-kernel@...r.kernel.org,
Daniel Palmer <daniel@...ngy.jp>
Subject: [PATCH v2 0/2] kernel memory protection for m68k, 030 users too!
This implements kernel memory protection for m68k.
Changes since v1:
- Add a patch to split the early termination that the tail of the ro
data is on 020/030 so that we can get at the juicy pages on the inside.
- Since __ex_table is RO after init we can just mark from the start of
the kernel to the end of the ro data in one pass so do that.
- While setting the WP bit if we find that we'd be marking too much
memory, warn and abort.
Daniel Palmer (2):
m68k: mm: motorola: Split the early term containing the end of the RO
region
m68k: Implement kernel memory protection
arch/m68k/Kconfig | 1 +
arch/m68k/mm/init.c | 73 +++++++++++++++++++++++++++++++++++++++++
arch/m68k/mm/motorola.c | 47 ++++++++++++++++++++------
3 files changed, 111 insertions(+), 10 deletions(-)
--
2.51.0
Powered by blists - more mailing lists