Skip to content

Commit 00c8cea

Browse files
committed
arch/Kconfig: Default to maximum amount of ASLR bits
To mitigate https://zolutal.github.io/aslrnt/; do this with a patch to avoid having to enable `CONFIG_EXPERT`.
1 parent abe3106 commit 00c8cea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ config ARCH_MMAP_RND_BITS
10321032
int "Number of bits to use for ASLR of mmap base address" if EXPERT
10331033
range ARCH_MMAP_RND_BITS_MIN ARCH_MMAP_RND_BITS_MAX
10341034
default ARCH_MMAP_RND_BITS_DEFAULT if ARCH_MMAP_RND_BITS_DEFAULT
1035-
default ARCH_MMAP_RND_BITS_MIN
1035+
default ARCH_MMAP_RND_BITS_MAX
10361036
depends on HAVE_ARCH_MMAP_RND_BITS
10371037
help
10381038
This value can be used to select the number of bits to use to
@@ -1066,7 +1066,7 @@ config ARCH_MMAP_RND_COMPAT_BITS
10661066
int "Number of bits to use for ASLR of mmap base address for compatible applications" if EXPERT
10671067
range ARCH_MMAP_RND_COMPAT_BITS_MIN ARCH_MMAP_RND_COMPAT_BITS_MAX
10681068
default ARCH_MMAP_RND_COMPAT_BITS_DEFAULT if ARCH_MMAP_RND_COMPAT_BITS_DEFAULT
1069-
default ARCH_MMAP_RND_COMPAT_BITS_MIN
1069+
default ARCH_MMAP_RND_COMPAT_BITS_MAX
10701070
depends on HAVE_ARCH_MMAP_RND_COMPAT_BITS
10711071
help
10721072
This value can be used to select the number of bits to use to

0 commit comments

Comments
 (0)