linux-stable/arch/microblaze
Arnd Bergmann 3fa8114be4 uaccess: fix nios2 and microblaze get_user_8()
[ Upstream commit a97b693c37 ]

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 <hch@lst.de>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:18 +02:00
..
boot xsysace: Remove SYSACE driver 2021-03-23 10:27:38 -06:00
configs
include uaccess: fix nios2 and microblaze get_user_8() 2022-04-08 14:23:18 +02:00
kernel Merge branch 'akpm' (patches from Andrew) 2021-09-03 10:08:28 -07:00
lib microblaze: use generic strncpy/strnlen from_user 2021-07-27 23:01:13 +02:00
mm microblaze: simplify pte_alloc_one_kernel() 2021-09-03 09:58:15 -07:00
pci
Kbuild microblaze: move core-y in arch/microblaze/Makefile to arch/microblaze/Kbuild 2021-08-25 09:56:10 +02:00
Kconfig tracing: Refactor TRACE_IRQFLAGS_SUPPORT in Kconfig 2021-08-16 11:37:21 -04:00
Kconfig.debug tracing: Refactor TRACE_IRQFLAGS_SUPPORT in Kconfig 2021-08-16 11:37:21 -04:00
Kconfig.platform
Makefile microblaze: move core-y in arch/microblaze/Makefile to arch/microblaze/Kbuild 2021-08-25 09:56:10 +02:00