diff options
author | 2024-06-21 21:54:50 +0300 | |
---|---|---|
committer | 2024-06-21 12:40:01 -0700 | |
commit | 2a97388a807b6ab5538aa8f8537b2463c6988bd2 (patch) | |
tree | d35cca0b7bd050979227c8da15643798da5ac93d /scripts/lib/kdoc/kdoc_parser.py | |
parent | exec: Add KUnit test for bprm_stack_limits() (diff) | |
download | wireguard-linux-2a97388a807b6ab5538aa8f8537b2463c6988bd2.tar.xz wireguard-linux-2a97388a807b6ab5538aa8f8537b2463c6988bd2.zip |
ELF: fix kernel.randomize_va_space double read
ELF loader uses "randomize_va_space" twice. It is sysctl and can change
at any moment, so 2 loads could see 2 different values in theory with
unpredictable consequences.
Issue exactly one load for consistent value across one exec.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Link: https://lore.kernel.org/r/3329905c-7eb8-400a-8f0a-d87cff979b5b@p183
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions