android_kernel_motorola_sm6375/arch/nios2
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Arnd Bergmann a975000e7a uaccess: fix nios2 and microblaze get_user_8()
[ Upstream commit a97b693c3712f040c5802f32b2d685352e08cefa ]

These two architectures implement 8-byte get_user() through
a memcpy() into a four-byte variable, which won't fit.

Use a temporary 64-bit variable instead here, and use a double
cast the way that risc-v and openrisc do to avoid compile-time
warnings.

Fixes: 6a090e9797 ("arch/microblaze: support get_user() of size 8 bytes")
Fixes: 5ccc6af5e8 ("nios2: Memory management")
Reviewed-by: Christoph Hellwig <[email protected]>
Acked-by: Dinh Nguyen <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2022-04-15 14:18:08 +02:00
..
boot
configs
include uaccess: fix nios2 and microblaze get_user_8() 2022-04-15 14:18:08 +02:00
kernel
lib
mm
platform
Kconfig
Kconfig.debug
Makefile