mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Palmer <daniel@thingy.jp>
To: geert@linux-m68k.org, schmitzmic@gmail.com, gerg@kernel.org,
	linux-m68k@lists.linux-m68k.org
Cc: linux-kernel@vger.kernel.org, Daniel Palmer <daniel@thingy.jp>
Subject: [PATCH v2 0/2] kernel memory protection for m68k, 030 users too!
Date: Thu, 20 Nov 2025 19:38:52 +0900	[thread overview]
Message-ID: <20251120103854.1630306-1-daniel@thingy.jp> (raw)

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


             reply	other threads:[~2025-11-20 10:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-20 10:38 Daniel Palmer [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251120103854.1630306-1-daniel@thingy.jp \
    --to=daniel@thingy.jp \
    --cc=geert@linux-m68k.org \
    --cc=gerg@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@lists.linux-m68k.org \
    --cc=schmitzmic@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®