From: Linus Torvalds Date: Mon, 20 May 2013 18:36:03 +0000 (-0700) Subject: x86: Fix bit corruption at CPU resume time X-Git-Tag: v3.10-rc2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e427ec2d066b48a5c27b3a5a3315f7e4e729077;p=pandora-kernel.git x86: Fix bit corruption at CPU resume time In commit 78d77df71510 ("x86-64, init: Do not set NX bits on non-NX capable hardware") we added the early_pmd_flags that gets the NX bit set when a CPU supports NX. However, the new variable was marked __initdata, because the main _use_ of this is in an __init routine. However, the bit setting happens from secondary_startup_64(), which is called not only at bootup, but on every secondary CPU start. Including resuming from STR and at CPU hotplug time. So the value cannot be __initdata. Reported-bisected-and-tested-by: Michal Hocko Cc: stable@vger.kernel.org # v3.9 Acked-by: Peter Anvin Cc: Fernando Luis Vázquez Cao Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed