Skip to contentSkip to conversation

kasan: add newline to messages

PATCH Applied Dmitry Vyukov 5 participants 5 messages Jun 30, 2016 – Jan 30, 2017

Subsystems (4)
lore
Share & tools
lore

Dmitry Vyukov

author reviewer
#0 lore raw

PATCH 1/1 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.

---
 arch/x86/mm/kasan_init_64.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/mm/kasan_init_64.c +2 -2
index 1b1110f..0493c17 100644
@@ -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;
 }
Signature · 7 lines
2.8.0.rc3.226.g39d4020

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Dmitry Vyukov

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.

Quoted 10 lines
---
 arch/x86/mm/kasan_init_64.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/mm/kasan_init_64.c +0 -0
index 1b1110f..0493c17 100644

arch/x86/mm/kasan_init_64.c static int kasan_die_handler(struct notifier_block *self, · line 61

Quoted 10 lines
arch/x86/mm/kasan_init_64.c +2 -2
@@ -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;
 }

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#2 lore raw
Quoted 29 lines · Andrey Ryabinin
Quoted 5 lines · Dmitry Vyukov

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.

Quoted 20 lines
---
 arch/x86/mm/kasan_init_64.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/mm/kasan_init_64.c +2 -2
index 1b1110f..0493c17 100644
@@ -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;
 }
Quoted 29 lines · Andrey Ryabinin
Quoted 5 lines · Dmitry Vyukov

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.

Quoted 20 lines
---
 arch/x86/mm/kasan_init_64.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/mm/kasan_init_64.c +2 -2
index 1b1110f..0493c17 100644
@@ -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;
 }
#3 lore raw
Quoted 72 lines · On Tuesday, August 30, 2016 at 9:07:23 PM UTC-5, [email protected] wrote:
Quoted 3 lines · Andrey Ryabinin
Quoted 2 lines · Dmitry Vyukov

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

Quoted 10 lines
Quoted 3 lines

Add newlines.

Signed-off-by Dmitry Vyukov <[email protected] <javascript:>>
Acked-by Andrey Ryabinin <[email protected] <javascript:>>
Quoted 4 lines
---
 arch/x86/mm/kasan_init_64.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 5 lines

arch/x86/mm/kasan_init_64.c static int kasan_die_handler(struct notifier_block

Quoted 5 lines
arch/x86/mm/kasan_init_64.c +0 -0
index 1b1110f..0493c17 100644
@@ -54,8 +54,8 @@ static int kasan_die_handler(struct notifier_block 

*self,

Quoted 5 lines

arch/x86/mm/kasan_init_64.c static int kasan_die_handler(struct notifier_block *self,

Quoted 5 lines
arch/x86/mm/kasan_init_64.c +0 -2
                              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");

Quoted 2 lines

arch/x86/mm/kasan_init_64.c static int kasan_die_handler(struct notifier_block · line 58

Quoted 2 lines
arch/x86/mm/kasan_init_64.c +2 -0
+                pr_emerg("CONFIG_KASAN_INLINE enabled\n");
+                pr_emerg("GPF could be caused by NULL-ptr deref or 

user memory access\n");

Quoted 4 lines
Quoted 4 lines
arch/x86/mm/kasan_init_64.c +0 -0
         }
         return NOTIFY_OK;
 }
Quoted 3 lines · Andrey Ryabinin
Quoted 2 lines · Dmitry Vyukov

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

Quoted 10 lines
Quoted 3 lines

Add newlines.

Signed-off-by Dmitry Vyukov <[email protected] <javascript:>>
Acked-by Andrey Ryabinin <[email protected] <javascript:>>
Quoted 4 lines
---
 arch/x86/mm/kasan_init_64.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 5 lines

arch/x86/mm/kasan_init_64.c static int kasan_die_handler(struct notifier_block

Quoted 5 lines
arch/x86/mm/kasan_init_64.c +0 -0
index 1b1110f..0493c17 100644
@@ -54,8 +54,8 @@ static int kasan_die_handler(struct notifier_block 

*self,

Quoted 5 lines

arch/x86/mm/kasan_init_64.c static int kasan_die_handler(struct notifier_block *self,

Quoted 5 lines
arch/x86/mm/kasan_init_64.c +0 -2
                              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");

Quoted 2 lines

arch/x86/mm/kasan_init_64.c static int kasan_die_handler(struct notifier_block · line 58

Quoted 2 lines
arch/x86/mm/kasan_init_64.c +2 -0
+                pr_emerg("CONFIG_KASAN_INLINE enabled\n");
+                pr_emerg("GPF could be caused by NULL-ptr deref or 

user memory access\n");

Quoted 4 lines
Quoted 4 lines
arch/x86/mm/kasan_init_64.c +0 -0
         }
         return NOTIFY_OK;
 }
#4 lore raw
In reply to Dmitry Vyukov
Quoted 26 lines · dvyukov

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.

---
 arch/x86/mm/kasan_init_64.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/mm/kasan_init_64.c +2 -2
index 1b1110f..0493c17 100644
@@ -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;
 }
Signature · 1 line
2.8.0.rc3.226.g39d4020