arm64: kernel: check mode for get_user in undefinstr
authorPeng Du <pdu@nvidia.com>
Wed, 23 Jul 2014 18:40:33 +0000 (11:40 -0700)
committerGreg Hackmann <ghackmann@google.com>
Sat, 13 Sep 2014 00:29:43 +0000 (17:29 -0700)
commitb3987a9c4664d18b8c8af6d43e6ae1904c8febce
tree366998894cbabe788b4f94e9606c1e88ec7175cc
parentbc97ba4de74958ead0d40d44d1b4516e7f3de8dd
arm64: kernel: check mode for get_user in undefinstr

get_user() should be called only for user_mode undef instruction.

Change-Id: Ia654783de0cf72abac6847ac9630236f9f0d6ebb
Signed-off-by: Peng Du <pdu@nvidia.com>
Reviewed-on: http://git-master/r/441348
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
arch/arm64/kernel/traps.c