Re: [PATCH v5 23/27] x86/modules: Adapt module loading for PIE support

From: Randy Dunlap
Date: Mon Jun 25 2018 - 19:51:39 EST


On 06/25/18 15:39, Thomas Garnier wrote:
> Adapt module loading to support PIE relocations. Generate dynamic GOT if
> a symbol requires it but no entry exists in the kernel GOT.

Hi,

This patch description (and a few others with the same sentence) is a little
confusing to me:

> Position Independent Executable (PIE) support will allow to extend the
> KASLR randomization range 0xffffffff80000000.

Is there a word missing after "range"? May "below"?
As is, it seems to imply "range by 0xffffffff80000000."


thanks.

>
> Signed-off-by: Thomas Garnier <thgarnie@xxxxxxxxxx>
> ---
> arch/x86/Makefile | 4 +
> arch/x86/include/asm/module.h | 11 ++
> arch/x86/include/asm/sections.h | 4 +
> arch/x86/kernel/module.c | 181 +++++++++++++++++++++++++++++++-
> arch/x86/kernel/module.lds | 3 +
> 5 files changed, 198 insertions(+), 5 deletions(-)
> create mode 100644 arch/x86/kernel/module.lds


--
~Randy