WSL2-Linux-Kernel/arch/microblaze/include/asm
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
..
Kbuild locking/atomic: microblaze: use asm-generic exclusively 2021-05-26 13:20:49 +02:00
asm-compat.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
asm-offsets.h
barrier.h microblaze: Define microblaze barrier 2020-02-25 12:33:19 +01:00
cache.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
cacheflush.h microblaze: use asm-generic/cacheflush.h 2020-06-08 11:05:57 -07:00
checksum.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
cpuinfo.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
current.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
delay.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
dma.h microblaze: Remove noMMU code 2020-11-26 16:39:35 +01:00
elf.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
entry.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
exceptions.h microblaze: Remove noMMU code 2020-11-26 16:39:35 +01:00
fixmap.h microblaze/mm/highmem: Switch to generic kmap atomic 2020-11-06 23:14:56 +01:00
flat.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
ftrace.h tracing: Fix various typos in comments 2021-03-23 14:08:18 -04:00
futex.h futex: arch_futex_atomic_op_inuser() calling conventions change 2020-03-27 23:58:51 -04:00
hash.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
highmem.h microblaze/mm/highmem: Switch to generic kmap atomic 2020-11-06 23:14:56 +01:00
io.h microblaze: Remove noMMU code 2020-11-26 16:39:35 +01:00
irq.h Two reverts addressing regressions of the Xilinx interrupt controller 2020-04-05 11:57:12 -07:00
irqflags.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
kgdb.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mmu.h microblaze: Remove noMMU code 2020-11-26 16:39:35 +01:00
mmu_context.h microblaze: Remove noMMU code 2020-11-26 16:39:35 +01:00
mmu_context_mm.h microblaze: use asm-generic/mmu_context.h for no-op implementations 2020-10-27 16:02:36 +01:00
module.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
page.h mm/page_alloc: always initialize memory map for the holes 2021-09-03 09:58:15 -07:00
pci-bridge.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
pci.h PCI: Convert pci_resource_to_user() to a weak function 2019-08-08 15:12:07 -05:00
pgalloc.h mm/thp: define default pmd_pgtable() 2021-07-01 11:06:03 -07:00
pgtable.h microblaze: simplify pte_alloc_one_kernel() 2021-09-03 09:58:15 -07:00
processor.h Microblaze patches for 5.11-rc1 2020-12-16 12:04:39 -08:00
ptrace.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
pvr.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
registers.h microblaze: Remove noMMU code 2020-11-26 16:39:35 +01:00
seccomp.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sections.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
setup.h microblaze: Remove noMMU code 2020-11-26 16:39:35 +01:00
string.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
switch_to.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
syscall.h audit/stable-5.2 PR 20190507 2019-05-07 19:06:04 -07:00
thread_info.h microblaze: add support for TIF_NOTIFY_SIGNAL 2020-11-10 18:07:09 +01:00
timex.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
tlbflush.h microblaze: Remove noMMU code 2020-11-26 16:39:35 +01:00
uaccess.h uaccess: fix nios2 and microblaze get_user_8() 2022-04-08 14:23:18 +02:00
unistd.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
unwind.h microblaze: add loglvl to microblaze_unwind() 2020-06-09 09:39:11 -07:00
vmalloc.h mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00