public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] kernel: enable CONFIG_RANDOMIZE_MEMORY on i586 aarch64 and, armv5tel
@ 2020-06-09 17:15 Peter Müller
  2020-06-10 14:33 ` Arne Fitzenreiter
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Müller @ 2020-06-09 17:15 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1927 bytes --]

Fixes: #12364

Cc: Arne Fitzenreiter <arne.fitzenreiter(a)ipfire.org>
Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org>
---
 config/kernel/kernel.config.aarch64-ipfire        | 2 ++
 config/kernel/kernel.config.armv5tel-ipfire-multi | 2 ++
 config/kernel/kernel.config.i586-ipfire           | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/config/kernel/kernel.config.aarch64-ipfire b/config/kernel/kernel.config.aarch64-ipfire
index e0f2f6df8..b3c397a3c 100644
--- a/config/kernel/kernel.config.aarch64-ipfire
+++ b/config/kernel/kernel.config.aarch64-ipfire
@@ -519,6 +519,8 @@ CONFIG_ARM64_VA_BITS=39
 CONFIG_SCHED_MC=y
 CONFIG_SCHED_SMT=y
 CONFIG_NR_CPUS=8
+CONFIG_RANDOMIZE_MEMORY=y
+CONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING=0x0
 CONFIG_HOTPLUG_CPU=y
 # CONFIG_NUMA is not set
 CONFIG_HOLES_IN_ZONE=y
diff --git a/config/kernel/kernel.config.armv5tel-ipfire-multi b/config/kernel/kernel.config.armv5tel-ipfire-multi
index 15183300f..a314baa73 100644
--- a/config/kernel/kernel.config.armv5tel-ipfire-multi
+++ b/config/kernel/kernel.config.armv5tel-ipfire-multi
@@ -776,6 +776,8 @@ CONFIG_VMSPLIT_3G=y
 # CONFIG_VMSPLIT_1G is not set
 CONFIG_PAGE_OFFSET=0xC0000000
 CONFIG_NR_CPUS=8
+CONFIG_RANDOMIZE_MEMORY=y
+CONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING=0x0
 CONFIG_HOTPLUG_CPU=y
 CONFIG_ARM_PSCI=y
 CONFIG_ARCH_NR_GPIO=512
diff --git a/config/kernel/kernel.config.i586-ipfire b/config/kernel/kernel.config.i586-ipfire
index 578931497..a86a76c05 100644
--- a/config/kernel/kernel.config.i586-ipfire
+++ b/config/kernel/kernel.config.i586-ipfire
@@ -628,6 +628,8 @@ CONFIG_RELOCATABLE=y
 CONFIG_RANDOMIZE_BASE=y
 CONFIG_X86_NEED_RELOCS=y
 CONFIG_PHYSICAL_ALIGN=0x400000
+CONFIG_RANDOMIZE_MEMORY=y
+CONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING=0x0
 CONFIG_HOTPLUG_CPU=y
 # CONFIG_BOOTPARAM_HOTPLUG_CPU0 is not set
 # CONFIG_DEBUG_HOTPLUG_CPU0 is not set
-- 
2.26.2

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

* Re: [PATCH] kernel: enable CONFIG_RANDOMIZE_MEMORY on i586 aarch64 and, armv5tel
  2020-06-09 17:15 [PATCH] kernel: enable CONFIG_RANDOMIZE_MEMORY on i586 aarch64 and, armv5tel Peter Müller
@ 2020-06-10 14:33 ` Arne Fitzenreiter
  0 siblings, 0 replies; 2+ messages in thread
From: Arne Fitzenreiter @ 2020-06-10 14:33 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 2252 bytes --]

This patch will not work. You cannot simply add an Option.
The next make will remove it because it is not supported!

RAMDOMZE_MEMORY is not supported if there is no
# CONFIG_RANDOMIZE_MEMORY is not set
that you can change to "Y"

Arne



Am 2020-06-09 19:15, schrieb Peter Müller:
> Fixes: #12364
> 
> Cc: Arne Fitzenreiter <arne.fitzenreiter(a)ipfire.org>
> Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org>
> ---
>  config/kernel/kernel.config.aarch64-ipfire        | 2 ++
>  config/kernel/kernel.config.armv5tel-ipfire-multi | 2 ++
>  config/kernel/kernel.config.i586-ipfire           | 2 ++
>  3 files changed, 6 insertions(+)
> 
> diff --git a/config/kernel/kernel.config.aarch64-ipfire
> b/config/kernel/kernel.config.aarch64-ipfire
> index e0f2f6df8..b3c397a3c 100644
> --- a/config/kernel/kernel.config.aarch64-ipfire
> +++ b/config/kernel/kernel.config.aarch64-ipfire
> @@ -519,6 +519,8 @@ CONFIG_ARM64_VA_BITS=39
>  CONFIG_SCHED_MC=y
>  CONFIG_SCHED_SMT=y
>  CONFIG_NR_CPUS=8
> +CONFIG_RANDOMIZE_MEMORY=y
> +CONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING=0x0
>  CONFIG_HOTPLUG_CPU=y
>  # CONFIG_NUMA is not set
>  CONFIG_HOLES_IN_ZONE=y
> diff --git a/config/kernel/kernel.config.armv5tel-ipfire-multi
> b/config/kernel/kernel.config.armv5tel-ipfire-multi
> index 15183300f..a314baa73 100644
> --- a/config/kernel/kernel.config.armv5tel-ipfire-multi
> +++ b/config/kernel/kernel.config.armv5tel-ipfire-multi
> @@ -776,6 +776,8 @@ CONFIG_VMSPLIT_3G=y
>  # CONFIG_VMSPLIT_1G is not set
>  CONFIG_PAGE_OFFSET=0xC0000000
>  CONFIG_NR_CPUS=8
> +CONFIG_RANDOMIZE_MEMORY=y
> +CONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING=0x0
>  CONFIG_HOTPLUG_CPU=y
>  CONFIG_ARM_PSCI=y
>  CONFIG_ARCH_NR_GPIO=512
> diff --git a/config/kernel/kernel.config.i586-ipfire
> b/config/kernel/kernel.config.i586-ipfire
> index 578931497..a86a76c05 100644
> --- a/config/kernel/kernel.config.i586-ipfire
> +++ b/config/kernel/kernel.config.i586-ipfire
> @@ -628,6 +628,8 @@ CONFIG_RELOCATABLE=y
>  CONFIG_RANDOMIZE_BASE=y
>  CONFIG_X86_NEED_RELOCS=y
>  CONFIG_PHYSICAL_ALIGN=0x400000
> +CONFIG_RANDOMIZE_MEMORY=y
> +CONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING=0x0
>  CONFIG_HOTPLUG_CPU=y
>  # CONFIG_BOOTPARAM_HOTPLUG_CPU0 is not set
>  # CONFIG_DEBUG_HOTPLUG_CPU0 is not set

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

end of thread, other threads:[~2020-06-10 14:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-09 17:15 [PATCH] kernel: enable CONFIG_RANDOMIZE_MEMORY on i586 aarch64 and, armv5tel Peter Müller
2020-06-10 14:33 ` Arne Fitzenreiter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox