[haiku-bugs] Re: [Haiku] #10259: CDDA-related KDL: ASCII string corrupts kernel structures

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Wed, 27 Nov 2013 22:17:13 -0000

#10259: CDDA-related KDL: ASCII string corrupts kernel structures
-------------------------+----------------------------
   Reporter:  ttcoder    |      Owner:  nobody
       Type:  bug        |     Status:  new
   Priority:  normal     |  Milestone:  R1
  Component:  - General  |    Version:  R1/Development
 Resolution:             |   Keywords:
 Blocked By:             |   Blocking:
Has a Patch:  0          |   Platform:  All
-------------------------+----------------------------

Comment (by ttcoder):

 Regarding that part of the backtrace,
 {{{
 _user_stop_notifying + 0x84
 }}}
 I'm getting the feeling that the code has "gone into the weeds". It makes
 no sense that it would take 130+ bytes of machine code to implement a two-
 line C function when it takes less than 60 bytes for stop_watching(), and
 reading the disassembly for stop_watching() makes sense to me (with some
 effort) whereas the disassembly for the purported user_stop_notifying()
 makes no sense at all; so that would support the "gone crazy" idea but
 maybe I'm missing something..

 If reg.IP has gone to the weeds then nothing can be trusted in the
 registers and the stack pointer ..etc and it will be very difficult to
 determine what went wrong from this KDL... and I'm fscked again, sigh.

--
Ticket URL: <http://dev.haiku-os.org/ticket/10259#comment:4>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: