[haiku-bugs] Re: [Haiku] #5118: Haiku panics on HDA sound card

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Sun, 13 Dec 2009 21:41:27 -0000

#5118: Haiku panics on HDA sound card
---------------------------+------------------------------------------------
 Reporter:  flaggy         |       Owner:  nobody        
     Type:  bug            |      Status:  new           
 Priority:  normal         |   Milestone:  Unscheduled   
Component:  Audio & Video  |     Version:  R1/Development
 Keywords:                 |   Blockedby:                
 Platform:  x86            |    Blocking:                
---------------------------+------------------------------------------------

Comment(by anevilyak):

 Replying to [comment:4 stippi]:
 > I may have been looking at the wrong ioctl(), but how can a driver copy
 something to a pointer that points to memory in the user land process? The
 same address will point to completely unrelated kernel memory from the
 driver's point of view, no?

 Was it not using user_memcpy() ? That function's designed to deal with
 precisely that case, where a pointer has to be resolved using the calling
 team's address space map rather than the kernel's.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5118#comment:5>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: