[haiku-bugs] Re: [Haiku] #15015: Race condition in BFS initialization leads to KDL when volume is not mountable.

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 23 Apr 2019 03:00:51 -0000

#15015: Race condition in BFS initialization leads to KDL when volume is not
mountable.
--------------------------------+----------------------------
   Reporter:  pulkomandy        |      Owner:  axeld
       Type:  bug               |     Status:  new
   Priority:  normal            |  Milestone:  Unscheduled
  Component:  File Systems/BFS  |    Version:  R1/Development
 Resolution:                    |   Keywords:
 Blocked By:                    |   Blocking:
Has a Patch:  0                 |   Platform:  All
--------------------------------+----------------------------

Comment (by waddlesplash):

 Ownership transfer just changes the thread_id of the lock holder:
 http://xref.plausible.coop/source/xref/haiku/headers/private/kernel/lock.h#273

 So if the thread_id is valid, that should be OK. recursive_lock usually
 panic()s if you try to unlock it from the wrong thread.

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

Other related posts: