[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZAXJHbHAhD42o36F@shell.armlinux.org.uk>
Date: Mon, 6 Mar 2023 11:06:05 +0000
From: "Russell King (Oracle)" <linux@...linux.org.uk>
To: Jungseung Lee <js07.lee@...sung.com>
Cc: linus.walleij@...aro.org, amit.kachhap@....com, ardb@...nel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
keescook@...omium.org, js07.lee@...il.com
Subject: Re: [PATCH 1/2] arm/mm : omit [_text, _stext) from kernel code region
On Mon, Mar 06, 2023 at 02:51:54PM +0900, Jungseung Lee wrote:
> The resource reservations in /proc/iomem made for the kernel code did
> not reflect the gaps between pagetable and text.
>
> In particular, if the CONFIG_STRICT_KERNEL_RWX option is turned on,
> the wrong area is shown as the kernel code area.
>
> Fix it by removing [_text, _stext) from kernel code region.
>
> Before:
> 04000000-2f7fffff : System RAM
> 04008000-04cfffff : Kernel code
> 04e00000-05369a27 : Kernel data
>
> After :
> 04000000-2f7fffff : System RAM
> 04100000-04cfffff : Kernel code
> 04e00000-05369a27 : Kernel data
And why do you think this is correct? Isn't the head text, which
isn't discarded and is located at 0x04008000, still part of kernel
code?
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
Powered by blists - more mailing lists