kernel_optimize_test/arch/arm64
Tong Tiangen 018ebe4c18 arm64: fix types in copy_highpage()
[ Upstream commit 921d161f15d6b090599f6a8c23f131969edbd1fa ]

In copy_highpage() the `kto` and `kfrom` local variables are pointers to
struct page, but these are used to hold arbitrary pointers to kernel memory
. Each call to page_address() returns a void pointer to memory associated
with the relevant page, and copy_page() expects void pointers to this
memory.

This inconsistency was introduced in commit 2563776b41 ("arm64: mte:
Tags-aware copy_{user_,}highpage() implementations") and while this
doesn't appear to be harmful in practice it is clearly wrong.

Correct this by making `kto` and `kfrom` void pointers.

Fixes: 2563776b41 ("arm64: mte: Tags-aware copy_{user_,}highpage() implementations")
Signed-off-by: Tong Tiangen <tongtiangen@huawei.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Link: https://lore.kernel.org/r/20220420030418.3189040-3-tongtiangen@huawei.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-09 10:21:06 +02:00
..
boot arm64: dts: qcom: msm8994: Fix BLSP[12]_DMA channels count 2022-06-09 10:20:57 +02:00
configs arm64: defconfig: build imx-sdma as a module 2022-04-08 14:40:34 +02:00
crypto crypto: poly1305 - fix poly1305_core_setkey() declaration 2021-05-14 09:50:13 +02:00
include arm[64]/memremap: don't abuse pfn_valid() to ensure presence of linear map 2022-05-18 10:23:48 +02:00
kernel arm64: compat: Do not treat syscall number as ESR_ELx for a bad syscall 2022-06-09 10:20:53 +02:00
kvm arm64: kvm: Fix copy-and-paste error in bhb templates for v5.10 stable 2022-03-19 13:44:46 +01:00
lib arm64: clear_page() shouldn't use DC ZVA when DCZID_EL0.DZP == 1 2022-01-27 10:53:54 +01:00
mm arm64: fix types in copy_highpage() 2022-06-09 10:21:06 +02:00
net bpf, arm64: Feed byte-offset into bpf line info 2022-04-08 14:40:18 +02:00
xen
Kbuild
Kconfig arm64: Mitigate spectre style branch history side channels 2022-03-11 12:11:53 +01:00
Kconfig.debug
Kconfig.platforms irqchip/exiu: Fix acknowledgment of edge triggered interrupts 2022-06-09 10:21:05 +02:00
Makefile