Cc: Bron Gondwana <brong@...>, Linux Kernel Mailing List <linux-kernel@...>, Nick Piggin <npiggin@...>, Andrew Morton <akpm@...>, Rob Mueller <robm@...>, Ingo Molnar <mingo@...>
Loads are not supposed to fault in copy_to_user(). Only stores are.
The way it works is that it assumes that either loads fault (when used
as copy_from_user) or stores (copy_to_user), but never both.
If your patch fixes something then the main wrong thing is the caller
who passes a faulting source address.
And again it always breaks the other case.
-Andi
--