[haiku-bugs] Re: [Haiku] #4293: Kcore: Page Fault: while compiling Haiku on a Haiku

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sun, 16 Dec 2018 22:26:50 -0000

#4293: Kcore: Page Fault: while compiling Haiku on a Haiku
--------------------------------------------+---------------------------
   Reporter:  apn4m3rdrock                  |      Owner:  nobody
       Type:  bug                           |     Status:  closed
   Priority:  normal                        |  Milestone:  R1
  Component:  Drivers/Network/broadcom440x  |    Version:  R1/pre-alpha1
 Resolution:  fixed                         |   Keywords:
 Blocked By:                                |   Blocking:
Has a Patch:  0                             |   Platform:  All
--------------------------------------------+---------------------------
Changes (by waddlesplash):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 Fixed (again) in hrev52653, as mmu_man fixed it some years ago first in
 https://github.com/haiku/haiku/commit/cad8f65d222396aa33e00673bf3d03fb315edb0a.

In FreeBSD, kernel allocations obviously cannot fail. I'm not sure how
 they achieve this (probably by killing apps in the worst case), but it's
 obvious that this is not yet done in Haiku.

 They absolutely can fail except when passed the "use reserve memory flag,"
 which is not done anywhere here, and what's more it specifically passes
 M_NOWAIT which indicates that it shouldn't spend any extra time creating a
 new buffer if one isn't immediately available.

 FreeBSD fixed the bug (though not in time for 11.0) in
 
https://github.com/freebsd/freebsd/commit/e25a5b6a7c7e0ee0bca364c3888265e953c03bb8.

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/4293#comment:11>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: