lkml.org 
[lkml]   [2008]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Arch: x86_32, fix fault_msg nul termination

* Jiri Slaby <jirislaby@gmail.com> wrote:

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

thanks Jiri, applied.

> 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" \

i guess in practice we were saved by a NIL following this string, but
there's no guarantee indeed.

Ingo


\
 
 \ /
  Last update: 2008-03-21 12:53    [W:0.084 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site