projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86, vdso: Zero-pad the VVAR page
[cascardo/linux.git]
/
arch
/
x86
/
kernel
/
vmlinux.lds.S
diff --git
a/arch/x86/kernel/vmlinux.lds.S
b/arch/x86/kernel/vmlinux.lds.S
index
1d4897b
..
49edf2d
100644
(file)
--- a/
arch/x86/kernel/vmlinux.lds.S
+++ b/
arch/x86/kernel/vmlinux.lds.S
@@
-164,6
+164,11
@@
SECTIONS
#undef __VVAR_KERNEL_LDS
#undef EMIT_VVAR
+ /*
+ * Pad the rest of the page with zeros. Otherwise the loader
+ * can leave garbage here.
+ */
+ . = __vvar_beginning_hack + PAGE_SIZE;
} :data
. = ALIGN(__vvar_page + PAGE_SIZE, PAGE_SIZE);