Commit 25add7ec authored by Andrey Konovalov's avatar Andrey Konovalov Committed by Linus Torvalds
Browse files

kasan: update log messages

We decided to use KASAN as the short name of the tool and
KernelAddressSanitizer as the full one.  Update log messages according to

Signed-off-by: default avatarAndrey Konovalov <>
Cc: Andrey Ryabinin <>
Cc: Dmitry Vyukov <>
Cc: Alexander Potapenko <>
Cc: Konstantin Serebryany <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent cdf6a273
......@@ -126,5 +126,5 @@ void __init kasan_init(void)
init_task.kasan_depth = 0;
pr_info("Kernel address sanitizer initialized\n");
pr_info("KernelAddressSanitizer initialized\n");
......@@ -518,7 +518,7 @@ static int kasan_mem_notifier(struct notifier_block *nb,
static int __init kasan_memhotplug_init(void)
pr_err("WARNING: KASan doesn't support memory hot-add\n");
pr_err("WARNING: KASAN doesn't support memory hot-add\n");
pr_err("Memory hot-add will be disabled\n");
hotplug_memory_notifier(kasan_mem_notifier, 0);
......@@ -91,7 +91,7 @@ static void print_error_description(struct kasan_access_info *info)
pr_err("BUG: KASan: %s in %pS at addr %p\n",
pr_err("BUG: KASAN: %s in %pS at addr %p\n",
bug_type, (void *)info->ip,
pr_err("%s of size %zu by task %s/%d\n",
......@@ -224,7 +224,7 @@ static void kasan_report_error(struct kasan_access_info *info)
bug_type = "user-memory-access";
bug_type = "wild-memory-access";
pr_err("BUG: KASan: %s on address %p\n",
pr_err("BUG: KASAN: %s on address %p\n",
bug_type, info->access_addr);
pr_err("%s of size %zu by task %s/%d\n",
info->is_write ? "Write" : "Read",
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment