Skip to content

Commit a14d18c

Browse files
committedNov 22, 2024
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 1dacd26 commit a14d18c

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
@@ -1089,7 +1089,7 @@ config ARCH_MMAP_RND_BITS
10891089
int "Number of bits to use for ASLR of mmap base address" if EXPERT
10901090
range ARCH_MMAP_RND_BITS_MIN ARCH_MMAP_RND_BITS_MAX
10911091
default ARCH_MMAP_RND_BITS_DEFAULT if ARCH_MMAP_RND_BITS_DEFAULT
1092-
default ARCH_MMAP_RND_BITS_MIN
1092+
default ARCH_MMAP_RND_BITS_MAX
10931093
depends on HAVE_ARCH_MMAP_RND_BITS
10941094
help
10951095
This value can be used to select the number of bits to use to
@@ -1123,7 +1123,7 @@ config ARCH_MMAP_RND_COMPAT_BITS
11231123
int "Number of bits to use for ASLR of mmap base address for compatible applications" if EXPERT
11241124
range ARCH_MMAP_RND_COMPAT_BITS_MIN ARCH_MMAP_RND_COMPAT_BITS_MAX
11251125
default ARCH_MMAP_RND_COMPAT_BITS_DEFAULT if ARCH_MMAP_RND_COMPAT_BITS_DEFAULT
1126-
default ARCH_MMAP_RND_COMPAT_BITS_MIN
1126+
default ARCH_MMAP_RND_COMPAT_BITS_MAX
11271127
depends on HAVE_ARCH_MMAP_RND_COMPAT_BITS
11281128
help
11291129
This value can be used to select the number of bits to use to

0 commit comments

Comments
 (0)
Please sign in to comment.