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

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sat, 09 Jan 2021 04:12:00 -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
Resolution:                 |   Keywords:
Blocked By:                 |   Blocking:
  Platform:  All            |
----------------------------+-------------------------
Changes (by waddlesplash):

 * cc: korli (added)

Comment:

 CC'ing korli: I've always wondered if we should not be using set/clear_ac
 but always go through user_memcpy (I am pretty sure PulkoMandy implied we
 would have to for SPARC, and possibly other architectures anyway?). It
 seems strange that the user_thread pointer is incorrect here, but
 user_memcpy should solve the problem either way.

 It also looks like _user_unblock_thread does not actually call
 thread_check_permissions, either. Wonder how I missed that one.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16736#comment:1>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: