mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-06 17:36:40 +07:00
1bdfac19b3
This avoids an information leak to userspace. Signed-off-by: Andy Lutomirski <luto@mit.edu> Link: http://lkml.kernel.org/r/a63380a3c58a0506a2f5a18ba1b12dbde1f25e58.1312378163.git.luto@mit.edu Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
23 lines
444 B
ArmAsm
23 lines
444 B
ArmAsm
#include <asm/page_types.h>
|
|
#include <linux/linkage.h>
|
|
#include <linux/init.h>
|
|
|
|
__PAGE_ALIGNED_DATA
|
|
|
|
.globl vdso_start, vdso_end
|
|
.align PAGE_SIZE
|
|
vdso_start:
|
|
.incbin "arch/x86/vdso/vdso.so"
|
|
vdso_end:
|
|
.align PAGE_SIZE /* extra data here leaks to userspace. */
|
|
|
|
.previous
|
|
|
|
.globl vdso_pages
|
|
.bss
|
|
.align 8
|
|
.type vdso_pages, @object
|
|
vdso_pages:
|
|
.zero (vdso_end - vdso_start + PAGE_SIZE - 1) / PAGE_SIZE * 8
|
|
.size vdso_pages, .-vdso_pages
|