linux-stable/arch/arm64/kernel/pi
Zenghui Yu ecc54006f1 arm64: Clear the initial ID map correctly before remapping
In the attempt to clear and recreate the initial ID map for LPA2, we
wrongly use 'start - end' as the map size and make the memset() almost a
nop.

Fix it by passing the correct map size.

Fixes: 9684ec186f ("arm64: Enable LPA2 at boot if supported by the system")
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240621092809.162-1-yuzenghui@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
2024-06-24 12:37:46 +01:00
..
.gitignore arm64: gitignore: ignore relacheck 2024-02-22 21:57:52 +00:00
idreg-override.c ARM: 2024-05-15 14:46:43 -07:00
kaslr_early.c arm64: head: Move early kernel mapping routines into C code 2024-02-16 12:42:33 +00:00
Makefile Makefile: remove redundant tool coverage variables 2024-05-14 23:35:48 +09:00
map_kernel.c arm64: Clear the initial ID map correctly before remapping 2024-06-24 12:37:46 +01:00
map_range.c arm64: Enable LPA2 at boot if supported by the system 2024-02-16 12:42:40 +00:00
patch-scs.c arm64: head: Move early kernel mapping routines into C code 2024-02-16 12:42:33 +00:00
pi.h arm64: Enable LPA2 at boot if supported by the system 2024-02-16 12:42:40 +00:00
relacheck.c arm64: kernel: Manage absolute relocations in code built under pi/ 2024-02-16 12:42:28 +00:00
relocate.c arm64: head: Move early kernel mapping routines into C code 2024-02-16 12:42:33 +00:00