Skip to content

Commit 91b031e

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 691bf29 commit 91b031e

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
@@ -1025,7 +1025,7 @@ config ARCH_MMAP_RND_BITS
10251025
int "Number of bits to use for ASLR of mmap base address" if EXPERT
10261026
range ARCH_MMAP_RND_BITS_MIN ARCH_MMAP_RND_BITS_MAX
10271027
default ARCH_MMAP_RND_BITS_DEFAULT if ARCH_MMAP_RND_BITS_DEFAULT
1028-
default ARCH_MMAP_RND_BITS_MIN
1028+
default ARCH_MMAP_RND_BITS_MAX
10291029
depends on HAVE_ARCH_MMAP_RND_BITS
10301030
help
10311031
This value can be used to select the number of bits to use to
@@ -1059,7 +1059,7 @@ config ARCH_MMAP_RND_COMPAT_BITS
10591059
int "Number of bits to use for ASLR of mmap base address for compatible applications" if EXPERT
10601060
range ARCH_MMAP_RND_COMPAT_BITS_MIN ARCH_MMAP_RND_COMPAT_BITS_MAX
10611061
default ARCH_MMAP_RND_COMPAT_BITS_DEFAULT if ARCH_MMAP_RND_COMPAT_BITS_DEFAULT
1062-
default ARCH_MMAP_RND_COMPAT_BITS_MIN
1062+
default ARCH_MMAP_RND_COMPAT_BITS_MAX
10631063
depends on HAVE_ARCH_MMAP_RND_COMPAT_BITS
10641064
help
10651065
This value can be used to select the number of bits to use to

0 commit comments

Comments
 (0)