Commit 35a472de authored by Olof Johansson's avatar Olof Johansson Committed by Greg Kroah-Hartman

[PATCH] powerpc: Clear HID0 attention enable on PPC970 at boot time (CVE-2006-4093)

Clear HID0[en_attn] at CPU init time on PPC970.  Closes CVE-2006-4093.
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent d246e8b2
...@@ -94,6 +94,8 @@ _GLOBAL(__setup_cpu_ppc970) ...@@ -94,6 +94,8 @@ _GLOBAL(__setup_cpu_ppc970)
mfspr r0,SPRN_HID0 mfspr r0,SPRN_HID0
li r11,5 /* clear DOZE and SLEEP */ li r11,5 /* clear DOZE and SLEEP */
rldimi r0,r11,52,8 /* set NAP and DPM */ rldimi r0,r11,52,8 /* set NAP and DPM */
li r11,0
rldimi r0,r11,32,31 /* clear EN_ATTN */
mtspr SPRN_HID0,r0 mtspr SPRN_HID0,r0
mfspr r0,SPRN_HID0 mfspr r0,SPRN_HID0
mfspr r0,SPRN_HID0 mfspr r0,SPRN_HID0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment