[haiku-bugs] [Haiku] #16736: Kernel Panic on user_unblock_thread Syscall

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sat, 09 Jan 2021 02:01:14 -0000

#16736: Kernel Panic on user_unblock_thread Syscall
---------------------------+--------------------------
 Reporter:  thosewhowork   |       Owner:  nobody
     Type:  bug            |      Status:  new
 Priority:  normal         |   Milestone:  Unscheduled
Component:  System/Kernel  |     Version:  R1/beta2
 Keywords:                 |  Blocked By:
 Blocking:                 |    Platform:  All
---------------------------+--------------------------
 Hello,

 I've noticed that invoking the user_unblock_thread syscall (via
 _kern_unblock_thread in libroot.so) can cause a kernel panic for certain
 thread_id and status values.

 In this specific case, it happened when invoking it for a thread_id
 belonging to the launch daemon. The status passed was non-zero and matched
 the thread_id. It is also reproducible for other daemons.

 After looking at the disassembly of the kernel, it looks like the exact
 source line that it's happening on is here:
 https://github.com/haiku/haiku/blob/r1beta2/src/system/kernel/thread.cpp#L2984

 System Details

 Haiku Version: Haiku R1/Beta2

 Guest Machine: VMWare Fusion 8.5.3

 Host Machine: Mac OS Mojave

 I've attached the backtrace and thread details from the kernel debugger.

 Thank you for your hard work and please let me know if I can provide any
 other details.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16736>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: