[PATCH 2/2] arm/mm : Report actual image regions in /proc/iomem
Jungseung Lee
js07.lee at samsung.com
Mon Mar 6 04:14:23 PST 2023
Hi, Russell
> -----Original Message-----
> From: Russell King (Oracle) <linux at armlinux.org.uk>
> Sent: Monday, March 6, 2023 8:10 PM
> To: Jungseung Lee <js07.lee at samsung.com>
> Cc: linus.walleij at linaro.org; amit.kachhap at arm.com; ardb at kernel.org;
> linux-arm-kernel at lists.infradead.org; linux-kernel at vger.kernel.org;
> keescook at chromium.org; js07.lee at gmail.com
> Subject: Re: [PATCH 2/2] arm/mm : Report actual image regions in
> /proc/iomem
>
> On Mon, Mar 06, 2023 at 02:51:55PM +0900, Jungseung Lee wrote:
> > The resource reservations in /proc/iomem made for the kernel image
> > did not reflect the gaps between text, rodata, and data.
> > Add the "rodata" resource and update the start/end calculations.
> >
> > Before :
> > 04000000-2f7fffff : System RAM
> > 04100000-04cfffff : Kernel code
> > 04e00000-05369a27 : Kernel data
> >
> > After :
> > 04000000-2f7fffff : System RAM
> > 04100000-049fffff : Kernel code
> > 04a00000-04cb2fff : Kernel rodata
> > 04e00000-05369a27 : Kernel data
>
> NAK. This is API, and programs do read and parse this file. It is
> important that this file reports these parameters in a similar way to
> other architectures. Other architectures do not split up the
> individual regions.
>
Sounds like an important point, but I failed to find which programs use it
as an API. Could you tell me which program uses it as an API?
In fact, x86 architecture also split up the individual regions in this way.
In addition, most architectures separate the "Kernel bss" area, but arm does
not.
> --
> RMK's Patch system: https://protect2.fireeye.com/v1/url?k=e44d6839-
> 85c67d00-e44ce376-000babffae10-dcec955b544dea43&q=1&e=b53fe1bc-de29-
> 4c29-a20d-
> e39d10be6f3e&u=https%3A%2F%2Fwww.armlinux.org.uk%2Fdeveloper%2Fpatches
> %2F
> FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
More information about the linux-arm-kernel
mailing list