Page MenuHomeFreeBSD

Don't directly access userspace memory.
ClosedPublic

Authored by brooks on Apr 13 2020, 11:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 20, 1:54 PM
Unknown Object (File)
Thu, Nov 20, 1:53 PM
Unknown Object (File)
Thu, Nov 20, 1:47 PM
Unknown Object (File)
Thu, Nov 20, 1:45 PM
Unknown Object (File)
Wed, Nov 19, 3:14 AM
Unknown Object (File)
Tue, Oct 28, 9:27 PM
Unknown Object (File)
Oct 17 2025, 10:33 PM
Unknown Object (File)
Oct 17 2025, 10:33 PM
Subscribers
None

Details

Summary

Rather then using the racy useracc() followed by direct access to userspace
memory, perform a copyin() and use the result if it succeeds.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30480
Build 28234: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Apr 15 2020, 3:41 PM
This revision was automatically updated to reflect the committed changes.
In D24410#537510, @imp wrote:

Yikes!

Yeah, I'm not convinced this should even exist, but making it less lame seemed like a good idea even if we remove it. Sorry I raced your review with my commit.

There's one more useracc in this file that I don't understand yet.