[PATCH 2/4] PR28824, relro security issues, x86 keep COMMONPAGESIZE relro
H.J. Lu
hjl.tools@gmail.com
Mon Feb 14 03:13:27 GMT 2022
On Sun, Feb 13, 2022 at 6:18 PM Alan Modra <amodra@gmail.com> wrote:
>
> On Tue, Feb 08, 2022 at 11:38:31AM +1030, Alan Modra wrote:
> > x86 treats MAXPAGESIZE as a memory optimisation parameter, actual
> > hardware paging is always COMMPAGESIZE of 4k. Use COMMONPAGESIZE for
> > the end of the relro segment alignment.
>
> HJ, you may like to revert this patch and make x86 also align the end
> of the relro segment to MAXPAGESIZE. That's why I extracted this part
> into a separate patch. I'm not anywhere near 100% sure about my claim
> that x86 always uses (or can use) 4k hardware memory pages.
I will take a look tomorrow.
Thanks.
--
H.J.
More information about the Binutils
mailing list