Page MenuHomeFreeBSD

Don't directly access userspace memory.
ClosedPublic

Authored by brooks on Apr 13 2020, 11:56 PM.
Tags
None
Referenced Files
F153520742: D24410.id70606.diff
Tue, Apr 21, 2:47 PM
F153450765: D24410.diff
Tue, Apr 21, 6:10 AM
Unknown Object (File)
Mon, Apr 20, 11:29 AM
Unknown Object (File)
Wed, Apr 15, 8:01 AM
Unknown Object (File)
Mon, Apr 13, 9:48 AM
Unknown Object (File)
Sun, Apr 12, 3:49 PM
Unknown Object (File)
Thu, Apr 9, 6:44 PM
Unknown Object (File)
Thu, Apr 9, 3:52 AM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.