kernel_optimize_test/arch/microblaze/include/asm
Arnd Bergmann 7ce3e6e103 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-08 14:40:08 +02:00
..
asm-compat.h
asm-offsets.h
atomic.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
cmpxchg.h microblaze: Use asm generic cmpxchg.h for !SMP case 2020-02-25 12:33:31 +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: Convert headers to SPDX license 2020-02-25 12:33:19 +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: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
fixmap.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
flat.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
ftrace.h
futex.h futex: arch_futex_atomic_op_inuser() calling conventions change 2020-03-27 23:58:51 -04:00
hash.h
highmem.h kmap: consolidate kmap_prot definitions 2020-06-04 19:06:22 -07:00
io.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +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
Kbuild local64.h: make <asm/local64.h> mandatory 2021-01-12 20:18:16 +01:00
kgdb.h
mmu_context_mm.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
mmu_context.h
mmu.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
module.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
page.h mm/vma: define a default value for VM_DATA_DEFAULT_FLAGS 2020-04-10 15:36:21 -07:00
pci-bridge.h
pci.h
pgalloc.h asm-generic: pgalloc: provide generic pgd_free() 2020-08-07 11:33:26 -07:00
pgtable.h mm: consolidate pte_index() and pte_offset_*() definitions 2020-06-09 09:39:14 -07:00
processor.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01: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: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
seccomp.h
sections.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
setup.h microblaze: Remove unused boot_cpuid variable 2020-02-25 12:33:19 +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
thread_info.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
timex.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
tlbflush.h mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
uaccess.h uaccess: fix nios2 and microblaze get_user_8() 2022-04-08 14:40:08 +02:00
unaligned.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01: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