Re: [PATCH] arm64: kernel: Add module symbols _text, _etext.

From: Christoph Hellwig
Date: Thu Jul 09 2020 - 07:01:14 EST


On Thu, Jul 09, 2020 at 10:49:51AM +0100, Will Deacon wrote:
> On Thu, Jul 09, 2020 at 05:23:45PM +0900, sanggil2.kim@xxxxxxxxxxx wrote:
> > From: Sanggil Kim <sanggil2.kim@xxxxxxxxxxx>
> >
> > We have a solution to protect kernel code section(autually from _text to
> > _etext) by not MMU. In order to do this, we have to know the addresses
> > of _text and _etext at runtime.
>
> Interesting! Can you post patches so that we can implement this solution
> upstream? Without an in-tree user, we won't be exporting these symbols.

And even with that I'm pretty sure the code doing the 'protection'
should be built-in and not modular..