[PATCH v3 0/3] xtensa: fix {get,put}_user() for 64bit values

From: Max Filippov
Date: Mon Oct 14 2019 - 17:25:41 EST


Hello,

this series fixes return value, out-of-bound stack access and value
truncation in xtensa implementation of {get,put}_user() for 64bit
values. It also cleans up naming of assembly parameters in
__{get,put}_user_asm and __check_align_{1,2,4}.

Changes v2->v3:
- fix assembly argument constraint for error code
- rearrange result zero-initialization for error paths in __get_user_asm

Changes v1->v2:
- initialize result when access_ok check fails in __get_user_check
- initialize result in __get_user_asm for unaligned access

Al Viro (1):
xtensa: fix {get,put}_user() for 64bit values

Max Filippov (2):
xtensa: clean up assembly arguments in uaccess macros
xtensa: fix type conversion in __get_user_[no]check

arch/xtensa/include/asm/uaccess.h | 94 +++++++++++++++++--------------
1 file changed, 53 insertions(+), 41 deletions(-)

--
2.20.1