Skip to content

Commit

Permalink
[POWERPC] powerpc: Clear HID0 attention enable on PPC970 at boot time
Browse files Browse the repository at this point in the history
Clear HID0[en_attn] at CPU init time on PPC970.  Closes CVE-2006-4093.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Olof Johansson authored and Paul Mackerras committed Aug 17, 2006
1 parent e5c14ce commit 9a936a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/kernel/cpu_setup_power4.S
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ _GLOBAL(__setup_cpu_ppc970)
mfspr r0,SPRN_HID0
li r11,5 /* clear DOZE and SLEEP */
rldimi r0,r11,52,8 /* set NAP and DPM */
li r11,0
rldimi r0,r11,32,31 /* clear EN_ATTN */
mtspr SPRN_HID0,r0
mfspr r0,SPRN_HID0
mfspr r0,SPRN_HID0
Expand Down

0 comments on commit 9a936a2

Please sign in to comment.