From: Andrey Ryabinin <aryabinin@virtuozzo.com>
To: Vegard Nossum <vegard.nossum@oracle.com>, Ingo Molnar <mingo@kernel.org>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] kasan: use \n with pr_emerg
Date: Tue, 12 Jul 2016 17:27:26 +0300 [thread overview]
Message-ID: <5784FE4E.3000404@virtuozzo.com> (raw)
In-Reply-To: <1468333008-21930-1-git-send-email-vegard.nossum@oracle.com>
On 07/12/2016 05:16 PM, Vegard Nossum wrote:
> I'm seeing this in the kernel log:
>
> kasan: CONFIG_KASAN_INLINE enabled
> kasan: GPF could be caused by NULL-ptr deref or user memory accessgeneral protection fault: 0000 [#1] KASAN
> CPU: 0 PID: 56 Comm: ext4.exe Not tainted 4.7.0-rc6 #1
>
> We really ought to be using \n with pr_*() so the 'general protection
> fault...' starts on a line of its own. With this patch it looks better:
>
> kasan: CONFIG_KASAN_INLINE enabled
> kasan: GPF could be caused by NULL-ptr deref or user memory access
> general protection fault: 0000 [#1] KASAN
> CPU: 0 PID: 56 Comm: ext4.exe Not tainted 4.7.0-rc7+ #650
>
Dmitry fixed that already: http://lkml.kernel.org/g/<1467294357-98002-1-git-send-email-dvyukov@google.com>
> Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
> Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
> ---
> arch/x86/mm/kasan_init_64.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/x86/mm/kasan_init_64.c b/arch/x86/mm/kasan_init_64.c
> index 1b1110f..0493c17 100644
> --- a/arch/x86/mm/kasan_init_64.c
> +++ b/arch/x86/mm/kasan_init_64.c
> @@ -54,8 +54,8 @@ static int kasan_die_handler(struct notifier_block *self,
> void *data)
> {
> if (val == DIE_GPF) {
> - pr_emerg("CONFIG_KASAN_INLINE enabled");
> - pr_emerg("GPF could be caused by NULL-ptr deref or user memory access");
> + pr_emerg("CONFIG_KASAN_INLINE enabled\n");
> + pr_emerg("GPF could be caused by NULL-ptr deref or user memory access\n");
> }
> return NOTIFY_OK;
> }
>
next prev parent reply other threads:[~2016-07-12 14:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-12 14:16 [PATCH] kasan: use \n with pr_emerg Vegard Nossum
2016-07-12 14:27 ` Andrey Ryabinin [this message]
2016-07-12 14:32 ` Vegard Nossum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5784FE4E.3000404@virtuozzo.com \
--to=aryabinin@virtuozzo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=vegard.nossum@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox