Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: fix COMPAT_SHMLBA definition for large pages

ARM glibc uses (4 * __getpagesize()) for SHMLBA, which is correct for
4KB pages and works fine for 64KB pages, but the kernel uses a hardcoded
16KB that is too small for 64KB page based kernels. This changes the
definition to what user space sees when using 64KB pages.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Yury Norov <ynorov@caviumnetworks.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>

authored by

Yury Norov and committed by
Will Deacon
b9b7aebb a7c61a34

+1 -1
+1 -1
arch/arm64/include/asm/shmparam.h
··· 21 21 * alignment value. Since we don't have aliasing D-caches, the rest of 22 22 * the time we can safely use PAGE_SIZE. 23 23 */ 24 - #define COMPAT_SHMLBA 0x4000 24 + #define COMPAT_SHMLBA (4 * PAGE_SIZE) 25 25 26 26 #include <asm-generic/shmparam.h> 27 27