mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] kernel memory protection for m68k, 030 users too!
@ 2025-11-20 10:38 Daniel Palmer
  2025-11-20 10:38 ` [PATCH v2 1/2] m68k: mm: motorola: Split the early term containing the end of the RO region Daniel Palmer
  2025-11-20 10:38 ` [PATCH v2 2/2] m68k: Implement kernel memory protection Daniel Palmer
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Palmer @ 2025-11-20 10:38 UTC (permalink / raw)
  To: geert, schmitzmic, gerg, linux-m68k; +Cc: linux-kernel, Daniel Palmer

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-11-20 10:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-20 10:38 [PATCH v2 0/2] kernel memory protection for m68k, 030 users too! Daniel Palmer
2025-11-20 10:38 ` [PATCH v2 1/2] m68k: mm: motorola: Split the early term containing the end of the RO region Daniel Palmer
2025-11-20 10:38 ` [PATCH v2 2/2] m68k: Implement kernel memory protection Daniel Palmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®