• D
    sparc64: Kill bogus TPC/address truncation during 32-bit faults. · 9b026058
    David S. Miller 提交于
    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: NDavid S. Miller <davem@davemloft.net>
    9b026058
fault_64.c 11.9 KB