Revert "arm64: determine stack entropy based on mmap entropy"

This reverts commit df64e52e41.
This commit is contained in:
Ksawlii 2024-12-13 19:44:19 +01:00
parent 9bd906b03d
commit ece840ae37

View file

@ -193,10 +193,10 @@ extern int arch_setup_additional_pages(struct linux_binprm *bprm,
/* 1GB of VA */ /* 1GB of VA */
#ifdef CONFIG_COMPAT #ifdef CONFIG_COMPAT
#define STACK_RND_MASK (test_thread_flag(TIF_32BIT) ? \ #define STACK_RND_MASK (test_thread_flag(TIF_32BIT) ? \
((1UL << mmap_rnd_compat_bits) - 1) >> (PAGE_SHIFT - 12) : \ 0x7ff >> (PAGE_SHIFT - 12) : \
((1UL << mmap_rnd_bits) - 1) >> (PAGE_SHIFT - 12)) 0x3ffff >> (PAGE_SHIFT - 12))
#else #else
#define STACK_RND_MASK (((1UL << mmap_rnd_bits) - 1) >> (PAGE_SHIFT - 12)) #define STACK_RND_MASK (0x3ffff >> (PAGE_SHIFT - 12))
#endif #endif
#ifdef __AARCH64EB__ #ifdef __AARCH64EB__