linux/arch/nios2
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 <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-15 14:18:08 +02:00
..
boot treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 201 2019-05-30 11:29:52 -07:00
configs nios2: configs: Remove useless UEVENT_HELPER_PATH 2019-07-04 13:35:38 +08:00
include uaccess: fix nios2 and microblaze get_user_8() 2022-04-15 14:18:08 +02:00
kernel nios2: force the string buffer NULL-terminated 2019-09-20 14:55:57 +08:00
lib treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
mm nios2: use the generic uncached segment support in dma-direct 2019-06-25 14:28:06 +02:00
platform nios2: Make NIOS2_DTB_SOURCE_BOOL depend on !COMPILE_TEST 2021-11-02 19:46:14 +01:00
Kconfig nios2: use the generic uncached segment support in dma-direct 2019-06-25 14:28:06 +02:00
Kconfig.debug nios2: remove pointless second entry for CONFIG_TRACE_IRQFLAGS_SUPPORT 2019-07-04 11:32:09 +08:00
Makefile kbuild: consolidate Devicetree dtb build rules 2018-10-02 09:23:21 -05:00