Skip to content

Commit

Permalink
powerpc/book3e: Fix check for linear mapping in TLB miss handler
Browse files Browse the repository at this point in the history
The previous code added wrong TLBs and causes machine check errors if
a driver accessed passed the end of the linear mapping instead of
a clean page fault.

Signed-off-by: Ralph E. Bellofatto <ralphbel@us.ibm.com>
Signed-off-by: Benjamin Krill <ben@codiert.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Benjamin Krill authored and ozbenh committed Mar 7, 2014
1 parent eb3b80f commit 60b9622
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/mm/tlb_low_64e.S
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,8 @@ tlb_load_linear:
ld r11,PACATOC(r13)
ld r11,linear_map_top@got(r11)
ld r10,0(r11)
cmpld cr0,r10,r16
tovirt(10,10)
cmpld cr0,r16,r10
bge tlb_load_linear_fault

/* MAS1 need whole new setup. */
Expand Down

0 comments on commit 60b9622

Please sign in to comment.