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)
Tue, Jun 2, 6:31 PM
Unknown Object (File)
Sat, May 23, 8:08 PM
Unknown Object (File)
Tue, May 19, 12:25 PM
Unknown Object (File)
Wed, May 6, 10:28 PM
Unknown Object (File)
May 3 2026, 7:06 PM
Unknown Object (File)
May 2 2026, 11:27 AM
Unknown Object (File)
Apr 28 2026, 11:53 PM
Unknown Object (File)
Apr 26 2026, 4:53 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

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.