Skip to content
Commit 9b026058 authored by David S. Miller's avatar David S. Miller
Browse files

sparc64: Kill bogus TPC/address truncation during 32-bit faults.

This builds upon eeabac73


("sparc64: Validate kernel generated fault addresses on sparc64.")

Upon further consideration, we actually should never see any
fault addresses for 32-bit tasks with the upper 32-bits set.

If it does every happen, by definition it's a bug.  Whatever
context created that fault would only have that fault satisfied
if we used the full 64-bit address.  If we truncate it, we'll
always fault the wrong address and we'll always loop faulting
forever.

So catch such conditions and mark them as errors always.  Log
the error and fail the fault.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 47a4a0e7
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