Re: [PATCH v2 01/28] x86/boot/compressed: Disable relocation relaxation

2020-09-04 Thread Nathan Chancellor
On Thu, Sep 03, 2020 at 07:42:15PM -0400, Arvind Sankar wrote: > On Thu, Sep 03, 2020 at 02:44:41PM -0700, Kees Cook wrote: > > On Thu, Sep 03, 2020 at 01:30:26PM -0700, Sami Tolvanen wrote: > > > From: Arvind Sankar > > > > > > Patch series [4] is a solution to allow the compressed kernel to be

Re: [PATCH v2 01/28] x86/boot/compressed: Disable relocation relaxation

2020-09-03 Thread Arvind Sankar
On Thu, Sep 03, 2020 at 02:44:41PM -0700, Kees Cook wrote: > On Thu, Sep 03, 2020 at 01:30:26PM -0700, Sami Tolvanen wrote: > > From: Arvind Sankar > > > > Patch series [4] is a solution to allow the compressed kernel to be > > linked with -pie unconditionally, but even if merged is unlikely to b

Re: [PATCH v2 01/28] x86/boot/compressed: Disable relocation relaxation

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:26PM -0700, Sami Tolvanen wrote: > From: Arvind Sankar > > The x86-64 psABI [0] specifies special relocation types > (R_X86_64_[REX_]GOTPCRELX) for indirection through the Global Offset > Table, semantically equivalent to R_X86_64_GOTPCREL, which the linker > can tak

[PATCH v2 01/28] x86/boot/compressed: Disable relocation relaxation

2020-09-03 Thread Sami Tolvanen
From: Arvind Sankar The x86-64 psABI [0] specifies special relocation types (R_X86_64_[REX_]GOTPCRELX) for indirection through the Global Offset Table, semantically equivalent to R_X86_64_GOTPCREL, which the linker can take advantage of for optimization (relaxation) at link time. This is supporte