[PATCH] ARM: KASan: fix up memblock prints
Linus Walleij
linus.walleij at linaro.org
Mon Oct 19 05:56:23 EDT 2020
The end address prints are not working, skip this and just
indicate where the memory block starts.
Suggested-by: Ard Biesheuvel <ardb at kernel.org>
Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
---
arch/arm/mm/kasan_init.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/arch/arm/mm/kasan_init.c b/arch/arm/mm/kasan_init.c
index 8afd5c017b7f..4b575f58c40b 100644
--- a/arch/arm/mm/kasan_init.c
+++ b/arch/arm/mm/kasan_init.c
@@ -245,13 +245,12 @@ void __init kasan_init(void)
/* Do not attempt to shadow highmem */
if (reg->base >= arm_lowmem_limit) {
- pr_info("Skip highmem block %pap-%pap\n",
- ®->base, ®->base + reg->size);
+ pr_info("Skip highmem block at %pap\n", ®->base);
continue;
}
if (reg->base + reg->size > arm_lowmem_limit) {
- pr_info("Truncating shadow for %pap-%pap to lowmem region\n",
- ®->base, ®->base + reg->size);
+ pr_info("Truncating shadow for %pap memory block to lowmem region\n",
+ ®->base);
end = __va(arm_lowmem_limit);
}
if (start >= end) {
--
2.26.2
More information about the linux-arm-kernel
mailing list