Skip to content

Commit fec4baf

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 ac72431 commit fec4baf

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
@@ -1033,7 +1033,7 @@ config ARCH_MMAP_RND_BITS
10331033
int "Number of bits to use for ASLR of mmap base address" if EXPERT
10341034
range ARCH_MMAP_RND_BITS_MIN ARCH_MMAP_RND_BITS_MAX
10351035
default ARCH_MMAP_RND_BITS_DEFAULT if ARCH_MMAP_RND_BITS_DEFAULT
1036-
default ARCH_MMAP_RND_BITS_MIN
1036+
default ARCH_MMAP_RND_BITS_MAX
10371037
depends on HAVE_ARCH_MMAP_RND_BITS
10381038
help
10391039
This value can be used to select the number of bits to use to
@@ -1067,7 +1067,7 @@ config ARCH_MMAP_RND_COMPAT_BITS
10671067
int "Number of bits to use for ASLR of mmap base address for compatible applications" if EXPERT
10681068
range ARCH_MMAP_RND_COMPAT_BITS_MIN ARCH_MMAP_RND_COMPAT_BITS_MAX
10691069
default ARCH_MMAP_RND_COMPAT_BITS_DEFAULT if ARCH_MMAP_RND_COMPAT_BITS_DEFAULT
1070-
default ARCH_MMAP_RND_COMPAT_BITS_MIN
1070+
default ARCH_MMAP_RND_COMPAT_BITS_MAX
10711071
depends on HAVE_ARCH_MMAP_RND_COMPAT_BITS
10721072
help
10731073
This value can be used to select the number of bits to use to

0 commit comments

Comments
 (0)