Skip to content

Commit 312a108

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 acbbfec commit 312a108

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
@@ -1137,7 +1137,7 @@ config ARCH_MMAP_RND_BITS
11371137
int "Number of bits to use for ASLR of mmap base address" if EXPERT
11381138
range ARCH_MMAP_RND_BITS_MIN ARCH_MMAP_RND_BITS_MAX
11391139
default ARCH_MMAP_RND_BITS_DEFAULT if ARCH_MMAP_RND_BITS_DEFAULT
1140-
default ARCH_MMAP_RND_BITS_MIN
1140+
default ARCH_MMAP_RND_BITS_MAX
11411141
depends on HAVE_ARCH_MMAP_RND_BITS
11421142
help
11431143
This value can be used to select the number of bits to use to
@@ -1171,7 +1171,7 @@ config ARCH_MMAP_RND_COMPAT_BITS
11711171
int "Number of bits to use for ASLR of mmap base address for compatible applications" if EXPERT
11721172
range ARCH_MMAP_RND_COMPAT_BITS_MIN ARCH_MMAP_RND_COMPAT_BITS_MAX
11731173
default ARCH_MMAP_RND_COMPAT_BITS_DEFAULT if ARCH_MMAP_RND_COMPAT_BITS_DEFAULT
1174-
default ARCH_MMAP_RND_COMPAT_BITS_MIN
1174+
default ARCH_MMAP_RND_COMPAT_BITS_MAX
11751175
depends on HAVE_ARCH_MMAP_RND_COMPAT_BITS
11761176
help
11771177
This value can be used to select the number of bits to use to

0 commit comments

Comments
 (0)