[haiku-bugs] Re: [Haiku] #18133: page fault in _kern_write

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 13 Dec 2022 22:02:23 -0000

#18133: page fault in _kern_write
----------------------------+-------------------------
  Reporter:  jessicah       |      Owner:  nobody
      Type:  bug            |     Status:  new
  Priority:  normal         |  Milestone:  Unscheduled
 Component:  System/Kernel  |    Version:  R1/beta4
Resolution:                 |   Keywords:
Blocked By:                 |   Blocking:
  Platform:  All            |
----------------------------+-------------------------
Comment (by waddlesplash):

 One possibility is adding a huge buffer to the top of {{{_user_write}}}
 (i.e. over a page in size) and see if this fixes the crash. That would
 indicate a stack overflow. Then you should be able to use {{{mprotect}}}
 to make the page un-writeable and catch where the overflow happens.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/18133#comment:5>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: