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-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAFr9PXkF4CUYUNaYQGuadAm5fCn65hMJDdGo=zwcPDaq4zOxSQ@mail.gmail.com>
Date: Tue, 18 Nov 2025 07:01:32 +0900
From: Daniel Palmer <daniel@...ngy.jp>
To: Michael Schmitz <schmitzmic@...il.com>
Cc: Greg Ungerer <gerg@...nel.org>, geert@...ux-m68k.org, linux-m68k@...ts.linux-m68k.org, 
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] m68k: Implement kernel memory protection

Hi Michael,

On Tue, 18 Nov 2025 at 02:41, Michael Schmitz <schmitzmic@...il.com> wrote:
>
> Daniel,
>
> take a look at arch/m68k/kernel/head.S - 030 MMU setup uses early
> termination descriptors for kernel memory, _not_ regular page tables.

Yeah, so when setting write protect on the last bit of either the text
or the rodata the end is getting rounded up to the next 256KB and
write protecting too much.
I worked that out and adding some alignment in the linker script so
that everything after the places getting write protected is pushed off
to the next 256KB does fix it but wastes some memory.
Looking at the manual for the 68030 it seems like early termination
descriptors can have a limit so I could set the alignment, fix up the
limit and then give the wasted memory back. But we are using the short
format that doesn't have the limit field.

Cheers,

Daniel

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ