mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
kasan: add newline to messages
Currently GPF messages with KASAN look as follows: kasan: GPF could be caused by NULL-ptr deref or user memory accessgeneral protection fault: 0000 [#1] SMP DEBUG_PAGEALLOC KASAN Add newlines. Link: http://lkml.kernel.org/r/1467294357-98002-1-git-send-email-dvyukov@google.com Signed-off-by: Dmitry Vyukov <dvyukov@google.com> Acked-by: Andrey Ryabinin <aryabinin@virtuozzo.com> Cc: Alexander Potapenko <glider@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
a46cbf3bc5
commit
2ba78056ac
1 changed files with 2 additions and 2 deletions
|
@ -54,8 +54,8 @@ static int kasan_die_handler(struct notifier_block *self,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
if (val == DIE_GPF) {
|
if (val == DIE_GPF) {
|
||||||
pr_emerg("CONFIG_KASAN_INLINE enabled");
|
pr_emerg("CONFIG_KASAN_INLINE enabled\n");
|
||||||
pr_emerg("GPF could be caused by NULL-ptr deref or user memory access");
|
pr_emerg("GPF could be caused by NULL-ptr deref or user memory access\n");
|
||||||
}
|
}
|
||||||
return NOTIFY_OK;
|
return NOTIFY_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue