linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: Revert "arm64: kaslr: fix breakage with CONFIG_MODVERSIONS=y"
@ 2017-02-06 15:02 Ard Biesheuvel
  2017-02-06 19:03 ` Will Deacon
  0 siblings, 1 reply; 4+ messages in thread
From: Ard Biesheuvel @ 2017-02-06 15:02 UTC (permalink / raw)
  To: linux-arm-kernel

This reverts commit 9c0e83c371cf4696926c95f9c8c77cd6ea803426, which
is no longer needed now that the modversions code plays nice with
relocatable PIE kernels.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
---
This simply removes some dead code, so this patch can wait for v4.12 if
preferred. (The modversions fixes were only queued for -rc7)

 arch/arm64/include/asm/module.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/arch/arm64/include/asm/module.h b/arch/arm64/include/asm/module.h
index 06ff7fd9e81f..e12af6754634 100644
--- a/arch/arm64/include/asm/module.h
+++ b/arch/arm64/include/asm/module.h
@@ -17,7 +17,6 @@
 #define __ASM_MODULE_H
 
 #include <asm-generic/module.h>
-#include <asm/memory.h>
 
 #define MODULE_ARCH_VERMAGIC	"aarch64"
 
@@ -33,10 +32,6 @@ u64 module_emit_plt_entry(struct module *mod, const Elf64_Rela *rela,
 			  Elf64_Sym *sym);
 
 #ifdef CONFIG_RANDOMIZE_BASE
-#ifdef CONFIG_MODVERSIONS
-#define ARCH_RELOCATES_KCRCTAB
-#define reloc_start 		(kimage_vaddr - KIMAGE_VADDR)
-#endif
 extern u64 module_alloc_base;
 #else
 #define module_alloc_base	((u64)_etext - MODULES_VSIZE)
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] arm64: Revert "arm64: kaslr: fix breakage with CONFIG_MODVERSIONS=y"
  2017-02-06 15:02 [PATCH] arm64: Revert "arm64: kaslr: fix breakage with CONFIG_MODVERSIONS=y" Ard Biesheuvel
@ 2017-02-06 19:03 ` Will Deacon
  2017-03-22 19:06   ` Ard Biesheuvel
  2017-03-23 13:15   ` Catalin Marinas
  0 siblings, 2 replies; 4+ messages in thread
From: Will Deacon @ 2017-02-06 19:03 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Feb 06, 2017 at 03:02:42PM +0000, Ard Biesheuvel wrote:
> This reverts commit 9c0e83c371cf4696926c95f9c8c77cd6ea803426, which
> is no longer needed now that the modversions code plays nice with
> relocatable PIE kernels.
> 
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> ---
> This simply removes some dead code, so this patch can wait for v4.12 if
> preferred. (The modversions fixes were only queued for -rc7)

Yeah, probably best to leave this one until 4.12 given that for-next/core
is based on -rc3.

Will

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] arm64: Revert "arm64: kaslr: fix breakage with CONFIG_MODVERSIONS=y"
  2017-02-06 19:03 ` Will Deacon
@ 2017-03-22 19:06   ` Ard Biesheuvel
  2017-03-23 13:15   ` Catalin Marinas
  1 sibling, 0 replies; 4+ messages in thread
From: Ard Biesheuvel @ 2017-03-22 19:06 UTC (permalink / raw)
  To: linux-arm-kernel

On 6 February 2017 at 19:03, Will Deacon <will.deacon@arm.com> wrote:
> On Mon, Feb 06, 2017 at 03:02:42PM +0000, Ard Biesheuvel wrote:
>> This reverts commit 9c0e83c371cf4696926c95f9c8c77cd6ea803426, which
>> is no longer needed now that the modversions code plays nice with
>> relocatable PIE kernels.
>>
>> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
>> ---
>> This simply removes some dead code, so this patch can wait for v4.12 if
>> preferred. (The modversions fixes were only queued for -rc7)
>
> Yeah, probably best to leave this one until 4.12 given that for-next/core
> is based on -rc3.
>

I think this is good to go now

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] arm64: Revert "arm64: kaslr: fix breakage with CONFIG_MODVERSIONS=y"
  2017-02-06 19:03 ` Will Deacon
  2017-03-22 19:06   ` Ard Biesheuvel
@ 2017-03-23 13:15   ` Catalin Marinas
  1 sibling, 0 replies; 4+ messages in thread
From: Catalin Marinas @ 2017-03-23 13:15 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Feb 06, 2017 at 07:03:38PM +0000, Will Deacon wrote:
> On Mon, Feb 06, 2017 at 03:02:42PM +0000, Ard Biesheuvel wrote:
> > This reverts commit 9c0e83c371cf4696926c95f9c8c77cd6ea803426, which
> > is no longer needed now that the modversions code plays nice with
> > relocatable PIE kernels.
> > 
> > Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> > ---
> > This simply removes some dead code, so this patch can wait for v4.12 if
> > preferred. (The modversions fixes were only queued for -rc7)
> 
> Yeah, probably best to leave this one until 4.12 given that for-next/core
> is based on -rc3.

I queued it for 4.12. Thanks.

-- 
Catalin

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-23 13:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-06 15:02 [PATCH] arm64: Revert "arm64: kaslr: fix breakage with CONFIG_MODVERSIONS=y" Ard Biesheuvel
2017-02-06 19:03 ` Will Deacon
2017-03-22 19:06   ` Ard Biesheuvel
2017-03-23 13:15   ` Catalin Marinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).