[Haiku-bugs] [Haiku] #3261: multi_audio KDL: page fault with interrupts disabled
korli
trac at haiku-os.org
Thu Jan 8 16:07:35 CET 2009
#3261: multi_audio KDL: page fault with interrupts disabled
---------------------------+------------------------------------------------
Reporter: umccullough | Owner: korli
Type: bug | Status: new
Priority: normal | Milestone: R1
Component: Drivers/Audio | Version: R1 development
Blockedby: | Platform: All
Blocking: |
---------------------------+------------------------------------------------
Comment(by korli):
Replying to [comment:7 axeld]:
> > Maybe it's a bad idea to copy to userland with interrupts disabled.
>
> I can assure that this is indeed a bad idea. You either need to lock the
memory (using lock_memory()) before copying (and turning off interrupts),
or use user_memcpy() with enabled interrupts.
I can do that, but I don't see many drivers which use user_memcpy(). This
might need be reviewed globally then. What do you think ?
--
Ticket URL: <http://dev.haiku-os.org/ticket/3261#comment:8>
Haiku <http://dev.haiku-os.org>
The Haiku operating system.
More information about the Haiku-bugs
mailing list