Opened 13 years ago

Closed 7 months ago

Last modified 7 months ago

#315 closed bug (fixed)

device read/writes don't lock memory

Reported by: axeld Owned by: nobody
Priority: critical Milestone: R1
Component: System/Kernel Version: R1/Development
Keywords: Cc: diver
Blocked By: Blocking:
Has a Patch: no Platform: All

Description (last modified by waddlesplash)

BeOS made sure the memory buffer passed to a device read/write was safe to be written to. Haiku currently requires the drivers to use user_memcpy() to access those buffers, which is not compatible to how the old driver interface works.

Also, the new file system interface doesn't solve this issue yet, either...

Change History (7)

comment:1 Changed 13 years ago by diver

Cc: diver added

comment:2 Changed 5 years ago by waddlesplash

Platform: All
Version: R1/Development

Still an issue?

comment:3 Changed 4 years ago by michaelvoliveira

ping

comment:4 Changed 2 years ago by axeld

Owner: changed from axeld to nobody
Status: newassigned

comment:5 Changed 7 months ago by waddlesplash

Description: modified (diff)
Resolution: fixed
Status: assignedclosed

Now the use of user_memcpy is mandatory thanks to SMAP, and all drivers have been converted to use it. Closing as fixed.

comment:6 Changed 7 months ago by korli

I think Wacom is still pending. Probably a ticket for it.

comment:7 Changed 7 months ago by waddlesplash

Yes, #14589. But since that's a KDL and just one driver, that doesn't warrant leaving this ticket open.

Note: See TracTickets for help on using tickets.