• David S. Miller's avatar
    [SPARC64]: Simplify user fault fixup handling. · efdc1e20
    David S. Miller authored
    Instead of doing byte-at-a-time user accesses to figure
    out where the fault occurred, read the saved fault_address
    from the current thread structure.
    
    For the sake of defensive programming, if the fault_address
    does not fall into the user buffer range, simply assume the
    whole area faulted.  This will cause the fixup for
    copy_from_user() to clear the entire kernel side buffer.
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    efdc1e20
user_fixup.c 1.63 KB