All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Arch: x86_32, fix fault_msg nul termination
@ 2008-03-12 13:53 Jiri Slaby
  2008-03-12 13:53 ` [PATCH] Mark early_printk as asmlinkage Jiri Slaby
  2008-03-21 11:50 ` [PATCH] Arch: x86_32, fix fault_msg nul termination Ingo Molnar
  0 siblings, 2 replies; 9+ messages in thread
From: Jiri Slaby @ 2008-03-12 13:53 UTC (permalink / raw)
  To: mingo
  Cc: linux-kernel, Andrew Morton, Jiri Slaby, Thomas Gleixner,
	H. Peter Anvin

The fault_msg text is not explictly nul terminated now in startup
assembly. Do so by converting .ascii to .asciz.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
---
 arch/x86/kernel/head_32.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S
index 9e7e015..826988a 100644
--- a/arch/x86/kernel/head_32.S
+++ b/arch/x86/kernel/head_32.S
@@ -657,7 +657,7 @@ int_msg:
 	.asciz "Unknown interrupt or fault at EIP %p %p %p\n"
 
 fault_msg:
-	.ascii								\
+	.asciz								\
 /* fault info: */	"BUG: Int %d: CR2 %p\n"				\
 /* pusha regs: */	"     EDI %p  ESI %p  EBP %p  ESP %p\n"		\
 			"     EBX %p  EDX %p  ECX %p  EAX %p\n"		\
-- 
1.5.4.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-03-21 12:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-12 13:53 [PATCH] Arch: x86_32, fix fault_msg nul termination Jiri Slaby
2008-03-12 13:53 ` [PATCH] Mark early_printk as asmlinkage Jiri Slaby
2008-03-12 14:04   ` H. Peter Anvin
2008-03-12 14:07     ` Jiri Slaby
2008-03-12 14:21       ` H. Peter Anvin
2008-03-14 18:04     ` Pavel Machek
2008-03-14 18:39       ` H. Peter Anvin
2008-03-21 12:25         ` Ingo Molnar
2008-03-21 11:50 ` [PATCH] Arch: x86_32, fix fault_msg nul termination Ingo Molnar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.