x86, vdso: Zero-pad the VVAR page
[cascardo/linux.git] / arch / x86 / kernel / vmlinux.lds.S
index 1d4897b..49edf2d 100644 (file)
@@ -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);