Skip to content

Commit 5b2f3e2

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 a2d0f8e commit 5b2f3e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/Kconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ config ARCH_MMAP_RND_BITS
10501050
int "Number of bits to use for ASLR of mmap base address" if EXPERT
10511051
range ARCH_MMAP_RND_BITS_MIN ARCH_MMAP_RND_BITS_MAX
10521052
default ARCH_MMAP_RND_BITS_DEFAULT if ARCH_MMAP_RND_BITS_DEFAULT
1053-
default ARCH_MMAP_RND_BITS_MIN
1053+
default ARCH_MMAP_RND_BITS_MAX
10541054
depends on HAVE_ARCH_MMAP_RND_BITS
10551055
help
10561056
This value can be used to select the number of bits to use to
@@ -1084,7 +1084,7 @@ config ARCH_MMAP_RND_COMPAT_BITS
10841084
int "Number of bits to use for ASLR of mmap base address for compatible applications" if EXPERT
10851085
range ARCH_MMAP_RND_COMPAT_BITS_MIN ARCH_MMAP_RND_COMPAT_BITS_MAX
10861086
default ARCH_MMAP_RND_COMPAT_BITS_DEFAULT if ARCH_MMAP_RND_COMPAT_BITS_DEFAULT
1087-
default ARCH_MMAP_RND_COMPAT_BITS_MIN
1087+
default ARCH_MMAP_RND_COMPAT_BITS_MAX
10881088
depends on HAVE_ARCH_MMAP_RND_COMPAT_BITS
10891089
help
10901090
This value can be used to select the number of bits to use to

0 commit comments

Comments
 (0)